:root {
    --primary-color: #007bff;
    /* Medical Blue */
    --secondary-color: #28a745;
    /* Medical Green */
    --accent-color: #17a2b8;
    /* Cyan */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 15px auto 0;
}

/* Header & Nav */
.header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header.sticky {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo span strong {
    color: var(--secondary-color);
}


.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 25px !important;
    background: var(--secondary-color) !important;
    color: white !important;
    border-radius: 25px;
}

.btn-nav:hover {
    background: #218838 !important;
    color: white !important;
}

.btn-nav::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    height: 100vh;
    width: 100%;
    position: relative;
    /* margin-top: 80px; If header is fixed, we might need padding or simple overlay */
}

/* Swiper Styles */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* Slider Overlay Modification */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient instead of solid dark color for better visibility */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.slide-content {
    position: relative;
    /* Above overlay */
    z-index: 2;
    text-align: left;
    color: #fff;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Stronger text shadow for readability */
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    bottom: 0;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-btns {
    display: flex;
    gap: 20px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Welcome Section */
.welcome-section {
    padding-top: 100px;
    /* Space for content below 100vh hero */
    background: #fff;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer p,
.footer li {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer a {
    color: #aaa;
}

.footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

.copyright {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: auto;
        padding: 40px 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 4px solid var(--primary-color);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slide-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .row {
        flex-direction: column;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--secondary-color);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background: #e6f7ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .icon {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Why Choose Us / Stats */
.why-choose-us {
    position: relative;
    z-index: 1;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

/* Page Header */
.page-header {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 80px;
    /* Offset for fixed header */
}

.page-header .container {
    position: relative;
    z-index: 2;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

.page-header p {
    font-size: 1.2rem;
    color: #f0f0f0;
}

/* Doctor Card */
.doctor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.doctor-img {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.1);
}

.social-links {
    position: absolute;
    bottom: -50px;
    /* Hidden initially */
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(40, 167, 69, 0.9);
    /* Green overlay */
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: bottom 0.3s ease;
}

.doctor-card:hover .social-links {
    bottom: 0;
}

.social-links a {
    color: white;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--dark-color);
}

.doctor-info {
    padding: 25px;
}

.doctor-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.doctor-info span {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.doctor-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    min-height: 40px;
    /* Align buttons */
}

.btn-sm {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-sm:hover {
    background: var(--primary-color);
    color: white;
    transform: none;
    /* Reset base btn transform if unwanted */
}

/* Contact Form */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea.form-control {
    resize: none;
}

/* Hover Overlay Animation Styles */
.hover-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.hover-wrapper img {
    transition: transform 0.6s ease;
}

.hover-wrapper:hover img {
    transform: scale(1.1);
}

.hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hover-wrapper:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay h4 {
    color: #fff;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin: 0;
    text-align: center;
}

.hover-wrapper:hover .hover-overlay h4 {
    transform: translateY(0);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.float-btn:hover {
    transform: scale(1.1);
}

.map-btn {
    background-color: #4285F4;
    /* Google Maps Blue */
    animation-delay: 0.1s;
}

.whatsapp-btn {
    background-color: #25D366;
    /* WhatsApp Green */
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}