:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-color: #334155;
    --text-light: #64748b;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    font-size: 112.5%;
    /* Increased base size (approx 18px) for better readability for all ages */
}


body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);

    /* Ensure only X is hidden and Y is auto for scrolling */
    overflow-x: hidden;
    overflow-y: auto;

    /* Prevent locking */
    height: auto;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Button Styles */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.trust-badge i {
    color: #ffd700;
    /* Gold checkmark/star */
}

/* Highlight Text Gradient */
.highlight-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    /* Make it bold */
    position: relative;
    display: inline-block;
}

/* Add a subtle underline decoration */
.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-color);
    opacity: 0.2;
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.btn-primary {
    overflow: hidden;
    /* Ensure shine stays inside */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    transform: skewX(-20deg);
}

.btn-primary:hover::before {
    left: 100%;
    /* Sweep effect on hover */
    transition: 0.7s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transform: translateY(-3px);
}

/* Featured nav button pulse effect */
.btn-featured {
    background: linear-gradient(135deg, var(--accent-color), #fcd34d);
    color: var(--secondary-color) !important;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Floating Animation for Hero Image */
.floating-img {
    animation: floatUpDown 4s ease-in-out infinite;
    max-width: 80%;
    /* Ensure it fits nicely */
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    /* Soft edges */
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2);
    /* Glowing effect */
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Navbar */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 9999;
    /* Boost z-index to ensure it stays on top */
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}


.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
    /* Push nav to right */
    margin-right: 2rem;
    /* Space between nav and controls */
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Language Toggle */
.lang-toggle {
    /* margin-left: 1rem; Remove automatic margin */
    padding: 6px 14px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: white;
}


/* Hero Section */
.hero {
    background: radial-gradient(86.7% 84.31% at 98.44% 43.17%, #0a87f8 0, #00004e 88.65%);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    color: white;
    /* Ensure text is white by default in hero */
}

/* Floating Shapes for Hero Background */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(245, 158, 11, 0.2));
    filter: blur(60px);
    z-index: 1;
    animation: floatShape 20s infinite alternate;
}

.hero::before {
    top: -100px;
    left: -100px;
}

.hero::after {
    bottom: -50px;
    right: -50px;
    animation-delay: -10s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(180deg);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: #e2e8f0;
    /* Light gray for readability */
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero .btn-outline {
    color: white;
    border-color: white;
}

.hero .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    /* mask-image: linear-gradient(to bottom, black 80%, transparent 100%); */
}

/* Features */
.features {
    padding: 4rem 0;
    background: var(--bg-white);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(81.05deg, #001e79 -.81%, #358ef7 104.2%);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border for dark bg */
    color: white;
    /* Ensure text is readable */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-box {
    margin-bottom: 1.5rem;
}

.icon-box img {
    width: 60px;
    margin: 0 auto;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: white;
}

/* Services */
.services {
    padding: 6rem 0;
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #000428, #004e92, #000428, #0a1930);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative floating shapes in background */
.services::before,
.services::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: floatShape 25s infinite alternate;
}

.services::before {
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00d4ff, transparent);
}

.services::after {
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #004e92, transparent);
    animation-delay: -5s;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.services .section-title {
    color: white;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.services .section-title::after {
    background-color: #00d4ff;
    /* Bright accent for underline */
    width: 80px;
}

.services-grid {
    display: grid;
    /* Responsive grid */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.service-item {
    background: rgba(255, 255, 255, 0.03);
    /* More transparent glass */
    padding: 2rem 1rem;
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Fainter border */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow initially */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* Default state for animation */
    animation: floatCard 6s ease-in-out infinite;
}

/* Stagger animations for a wave effect */
.service-item:nth-child(even) {
    animation-delay: 1s;
}

.service-item:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Services */
/* ... existing services styles ... */

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: var(--bg-light);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 Layout by default */
    gap: 1.5rem;
    max-width: 800px;
    /* Limit width to keep photos looking nice */
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    /* Standard photo aspect ratio */
}

/* Highlight Image (News) Styles */
.gallery-item.highlight-img {
    grid-column: 1 / -1;
    /* Span all columns (full width) */
    aspect-ratio: auto;
    /* Remove fixed aspect ratio */
    height: auto;
    /* Allow natural height */
    max-height: 80vh;
    /* Prevent taking up too much vertical space if very tall */
}

/* Ensure image inside highlight container behaves naturally */
.gallery-item.highlight-img .gallery-img {
    height: auto;
    object-fit: contain;
    /* Or cover if you prefer cropping, but 'contain' ensures full readability */
    width: 100%;
    display: block;
    /* Remove inline spacing */
}

/* For demo upload handling: hide extra items if more than 4, or let it grow */
.gallery-grid:has(.gallery-item:nth-child(5)) {
    /* If dynamic JS adds more, we can adjust, but for now fixed 2x2 */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 165, 233, 0.6);
    /* Primary color overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .overlay i {
    transform: scale(1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.service-item:hover::after {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.service-item::before {
    /* Base icon style */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2rem;
    color: white;
    /* Changed from #4facfe to white */
    margin-bottom: 5px;
    opacity: 0.9;
    transition: var(--transition);
}

/* Specific Icons for each service */
/* 1. Bonding -> Magic/Star */
.service-item:nth-child(1)::before {
    content: '\f0d0';
}

/* 2. Bridges -> Bridge/Archway */
.service-item:nth-child(2)::before {
    content: '\f557';
}

/* 3. Inlays/Onlays -> Puzzle/Layer */
.service-item:nth-child(3)::before {
    content: '\f5c2';
}

/* 4. Partial Denture -> Teeth/Grimace */
.service-item:nth-child(4)::before {
    content: '\f5c9';
}

/* 5. Porcelain Veneers -> Gem/Diamond (Aesthetic) */
.service-item:nth-child(5)::before {
    content: '\f3a5';
}

/* 6. Root Canal -> Syringe/Medical */
.service-item:nth-child(6)::before {
    content: '\f48e';
}

/* 7. Teeth Whitening -> Sparkles */
.service-item:nth-child(7)::before {
    content: '\f890';
}

/* 8. Wisdom Teeth -> Tooth */
.service-item:nth-child(8)::before {
    content: '\f62e';
}

/* 9. Digital X-Rays -> X-Ray/Radiation */
.service-item:nth-child(9)::before {
    content: '\f497';
}

/* 10. Extractions -> Hand Holding/Remove */
.service-item:nth-child(10)::before {
    content: '\f4c4';
}

/* 11. Cosmetic Dentistry -> Smile */
.service-item:nth-child(11)::before {
    content: '\f118';
}

/* 12. Crowns -> Crown */
.service-item:nth-child(12)::before {
    content: '\f521';
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4facfe;
    /* Lift up more on hover, pause float */
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 172, 254, 0.3);
    /* Stronger glow */
    color: #fff;
    animation-play-state: paused;
    /* Stop floating when interacting */
    z-index: 10;
}

.service-item:hover::before {
    color: #fff;
    transform: scale(1.2);
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.about-list i {
    color: var(--primary-color);
}

/* Doctors */
/* Doctors */
.doctors {
    padding: 6rem 0;
    /* Soft Aurora Background */
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    /* Fallback */
    background: linear-gradient(-45deg, #FFDEE9, #B5FFFC, #e0c3fc, #8ec5fc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Ensure title is visible on colorful bg */
.doctors .section-title {
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.doctor-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    /* Glassmorphism on cards too */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.doctor-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.1);
}

/* Add a color overlay on hover for image */
.doctor-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: 0.3s;
}

.doctor-card:hover .doctor-img::after {
    opacity: 1;
}

.doctor-info {
    padding: 2rem;
}

.doctor-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.role {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: #f8fafc;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    border-left: 5px solid var(--primary-color);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-color);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Google Reviews Styles */
.google-rating-summary {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto 3rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.google-rating-summary .rating-score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--secondary-color);
}

.google-rating-summary .rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.google-rating-summary .stars i {
    color: var(--accent-color);
}

.google-card {
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    border-left: none;
    /* Override previous style */
    text-align: left;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reviewer-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.stars-sm {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.g-icon-sm {
    width: 20px;
    height: 20px;
    margin-left: auto;
    /* Push to right */
    opacity: 0.7;
    margin-top: -10px;
    /* Align to top right */
    border: none;
    border-radius: 0;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    font-style: normal;
    /* Override italic */
    margin: 0;
}

/* Update testimonials grid for 4 items typically */
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* FAQ Section */
.faq {
    padding: 6rem 0;
    /* Requested Radial Gradient */
    background: radial-gradient(86.7% 84.31% at 98.44% 43.17%, #0a87f8 0, #00004e 88.65%);
    color: white;
    /* Ensure text is white */
}

.faq .section-title {
    color: white;
    /* Ensure title is white */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    /* Glassy background */
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-md);
    border-color: white;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: white;
    /* White question text */
    font-size: 1.1rem;
}

.faq-question i {
    color: white;
    /* White icon */
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 0;
    color: #e2e8f0;
    /* Light gray answer text */
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    margin-top: 1rem;
    max-height: 300px;
    /* Approximate max height */
}

.appointment {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-img.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.appointment-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.appointment-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.appointment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Location Map */
.location {
    padding: 4rem 0;
    background: var(--bg-white);
    text-align: center;
}

.map-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    /* Default height */
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Mobile Responsiveness */
/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Burger Animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Navbar Updates for Mobile */
    .navbar .container {
        display: flex;
        align-items: center;
        width: 100%;
        position: relative;
    }

    /* Custom Mobile Navbar Layout */
    .nav-controls {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        left: 0;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        pointer-events: none;
        /* Allow clicks to logo underneath if needed, but here buttons need events */
    }

    .menu-toggle,
    .lang-toggle {
        pointer-events: auto;
        /* Re-enable clicks */
    }

    /* Order: Burger Left, Lang Right.
       HTML is: Lang Button, then Menu Toggle.
       We need to visual reorder or just absolute position them.
    */
    .menu-toggle {
        order: -1;
        /* Make burger first (left) */
    }

    /* Lang toggle is naturally second (right) now due to space-between */

    /* Center the logo */
    .logo {
        margin: 0 auto;
        /* Center in the flex container */
    }

    /* Increase Logo Size */
    .logo img {
        height: 70px;
        /* Increased from default 50px */
        transition: height 0.3s ease;
    }

    /* New Header Background styling */
    .navbar {
        background-color: #f8fafc;
        /* Slight off-white/grey for distinct header */
        border-bottom: 1px solid #e2e8f0;
    }

    .menu-toggle {
        display: flex;
        z-index: 2000;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        /* Changed from right: 0 to left: 0 to guarantee full coverage */
        /* Align to viewport edge */
        width: 100vw;
        /* Changed from 100% to 100vw */
        /* Full width for better mobile experience */
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease-in-out;
        /* Smooth slide */
        transform: translateX(100%);
        /* Move off-screen */
        padding-bottom: 2rem;

        /* Fix for touch blocking */
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateX(0);
        /* Slide in */
        pointer-events: auto;
    }


    .nav-menu .nav-link {
        font-size: 1.4rem;
        margin: 0.8rem 0;
        opacity: 0;
        /* Hidden by default */
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Delay for Menu Items - target li > a structure properly */
    .nav-menu.active li:nth-child(1) .nav-link {
        transition-delay: 0.1s;
    }

    .nav-menu.active li:nth-child(2) .nav-link {
        transition-delay: 0.2s;
    }

    .nav-menu.active li:nth-child(3) .nav-link {
        transition-delay: 0.3s;
    }

    .nav-menu.active li:nth-child(4) .nav-link {
        transition-delay: 0.4s;
    }

    .nav-menu.active li:nth-child(5) .nav-link {
        transition-delay: 0.5s;
    }



    .hero {
        padding-top: 0rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
        /* Image on top on mobile */
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .service-item {
        min-height: 140px;
        /* Ensure uniform height on mobile */
        width: 100%;
        /* Ensure full width in grid */
    }

    .btn {
        width: 100%;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .appointment-form {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .doctors-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Services grid handles itself with auto-fill minmax(160px), so it will likely naturally be 2 cols on mobile */

    /* Custom Mobile Animations */

    /* 1. Staggered Slide In for Feature Cards */
    .features-grid .feature-card.fade-in {
        opacity: 0;
        transform: translateX(-60px);
        transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .features-grid .feature-card.fade-in.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .features-grid .feature-card:nth-child(1) {
        transition-delay: 0.1s;
    }

    .features-grid .feature-card:nth-child(2) {
        transition-delay: 0.25s;
    }

    .features-grid .feature-card:nth-child(3) {
        transition-delay: 0.4s;
    }

    /* 2. Springy Pop-in for Service Items */
    .services-grid .service-item.fade-in {
        opacity: 0;
        transform: translateY(40px) scale(0.85);
        transition: opacity 0.5s ease-out, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
        /* Disable float animation initially on mobile until visible */
        animation: none;
    }

    .services-grid .service-item.fade-in.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        /* Re-enable subtle float after popping in */
        animation: floatCard 6s ease-in-out infinite 0.7s;
    }

    /* Add slight staggering for mobile grid */
    .services-grid .service-item:nth-child(even) {
        transition-delay: 0.1s;
    }

    .services-grid .service-item:nth-child(odd) {
        transition-delay: 0.2s;
    }

    /* 3. 3D Flip In for Doctor Cards */
    .doctors-grid .doctor-card.fade-in {
        opacity: 0;
        transform: perspective(600px) rotateX(-20deg) translateY(30px);
        transform-origin: top;
        transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .doctors-grid .doctor-card.fade-in.visible {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) translateY(0);
    }

    .doctors-grid .doctor-card:nth-child(1) {
        transition-delay: 0.1s;
    }

    .doctors-grid .doctor-card:nth-child(2) {
        transition-delay: 0.3s;
    }

    /* 4. Scale up for Testimonials */
    .testimonials-grid .testimonial-card.fade-in {
        opacity: 0;
        transform: scale(0.9);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .testimonials-grid .testimonial-card.fade-in.visible {
        opacity: 1;
        transform: scale(1);
    }
}