/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f8fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    position: relative;
}

.loading-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circular {
    animation: rotate 1.5s linear infinite;
    width: 120px;
    height: 120px;
}

.path {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dash 1s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.logo-loading {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(79, 211, 226, 0.3));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.loading-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

.loading-text p {
    font-size: 16px;
    color: var(--gray-medium);
    margin-bottom: 20px;
    animation: fadeInUp 0.4s ease-out 0.2s both;
}

.loading-progress {
    margin: 15px 0;
    animation: fadeInUp 0.4s ease-out 0.3s both;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(79, 211, 226, 0.2);
    border-radius: 2px;
    margin: 0 auto 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.15s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    animation: fadeInUp 0.4s ease-out 0.4s both;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-def {
    position: absolute;
    width: 0;
    height: 0;
}

/* Hide main content during loading */
body.loading {
    overflow: hidden;
}

body.loading .header,
body.loading .hero,
body.loading .quick-contact,
body.loading .trust-section,
body.loading .about-section,
body.loading .services-section,
body.loading .gallery-section,
body.loading .testimonials-section,
body.loading .faq-section,
body.loading .contact-section {
    visibility: hidden;
}

/* Remove problematic animation that was hiding footer */

/* Loading Screen Mobile Responsiveness */
@media (max-width: 768px) {
    .loading-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }
    
    .circular {
        width: 100px;
        height: 100px;
    }
    
    .logo-loading {
        width: 60px;
        height: 60px;
    }
    
    .loading-text h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .loading-text p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .loading-dots span {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .loading-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .circular {
        width: 80px;
        height: 80px;
    }
    
    .logo-loading {
        width: 50px;
        height: 50px;
    }
    
    .loading-text h2 {
        font-size: 20px;
    }
    
    .loading-text p {
        font-size: 13px;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Ensure proper section spacing to prevent overlaps */
section {
    position: relative;
    z-index: 1;
    clear: both;
}

section + section {
    margin-top: 0;
}

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

/* Color Variables */
:root {
    --primary-color: #1e6eb7;
    --secondary-color: #3ec28f;
    --accent-color: #ff6b6b;
    --dark-blue: #1a2332;
    --light-blue: #e8f8fa;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --text-dark: #2c3e50;
    --gradient-primary: linear-gradient(135deg, #1e6eb7 0%, #3ec28f 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    --shadow-light: 0 5px 15px rgba(30, 110, 183, 0.1);
    --shadow-medium: 0 10px 30px rgba(30, 110, 183, 0.15);
    --shadow-heavy: 0 20px 60px rgba(30, 110, 183, 0.2);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.clinic-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover:before,
.nav-link.active:before {
    width: 100%;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-call {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light-blue);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 211, 226, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(79, 211, 226, 0.2);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-medium);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 400px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    animation: floatIcon 4s ease-in-out infinite;
}

.floating-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.icon-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 50%;
    right: -10%;
    animation-delay: 1.5s;
}

.icon-3 {
    bottom: 10%;
    left: -10%;
    animation-delay: 3s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Quick Contact Bar */
.quick-contact {
    background: white;
    padding: 40px 0;
    box-shadow: var(--shadow-light);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 40px; /* Add margin to prevent overlap */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    min-width: 30px;
}

.contact-item .label {
    font-size: 12px;
    color: var(--gray-medium);
    display: block;
    font-weight: 500;
}

.contact-item .value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    display: block;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: white;
    margin-top: 0; /* Remove any potential negative margin */
}

.trust-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.trust-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: var(--light-blue);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 211, 226, 0.1);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background: white;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.trust-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Enhanced Mobile Responsive Design */

/* Large Tablets and Small Laptops */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .image-container {
        width: 350px;
        height: 450px;
    }
    
    .trust-indicators {
        gap: 20px;
    }
    
    .trust-item {
        padding: 25px 15px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Enhanced Navigation for Mobile */
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 50px 0;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 15px 30px;
        display: block;
        text-align: center;
        border-radius: 10px;
        margin: 0 20px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: var(--light-blue);
        transform: translateX(10px);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .clinic-name {
        font-size: 16px;
    }
    
    .logo {
        height: 40px;
    }
    
    /* Hero Section Mobile Optimization */
    .hero {
        padding-top: 90px;
        min-height: auto;
        padding-bottom: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-content {
        order: 2;
        max-width: 100%;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .hero-badge {
        font-size: 13px;
        padding: 6px 12px;
        margin-bottom: 15px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .hero-buttons {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 15px;
        min-width: 200px;
    }
    
    /* Image Container Mobile */
    .image-container {
        width: 280px;
        height: 350px;
        transform: none;
        margin: 0 auto;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
    }
    
    .floating-icon i {
        font-size: 20px;
    }
    
         /* Quick Contact Mobile */
     .quick-contact {
         position: relative;
         grid-template-columns: 1fr;
         gap: 12px;
         padding: 30px 20px;
         background: var(--gray-light);
         margin: 0 auto 40px auto;
         max-width: 100%;
         border-radius: 0;
         box-shadow: none;
     }
     
     .contact-item {
         padding: 15px 20px;
         flex-direction: row;
         text-align: left;
         gap: 15px;
         background: white;
         border-radius: 12px;
         border-left: 4px solid var(--primary-color);
         box-shadow: 0 2px 10px rgba(0,0,0,0.05);
         margin: 0 20px;
     }
     
     .contact-item i {
         font-size: 18px;
         min-width: 25px;
         color: var(--primary-color);
     }
     
     .contact-item div {
         flex: 1;
     }
     
     .contact-item .value {
         font-size: 13px;
         font-weight: 600;
         color: var(--text-dark);
     }
     
     .contact-item .label {
         font-size: 11px;
         color: var(--gray-medium);
         margin-bottom: 2px;
     }
    
    /* Trust Section Mobile */
    .trust-section {
        padding: 50px 0;
    }
    
    .trust-content h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .trust-item {
        padding: 20px 15px;
    }
    
    .trust-item i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .trust-item span {
        font-size: 14px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    /* Container and Spacing */
    .container {
        padding: 0 15px;
    }
    
    /* Header Mobile */
    .nav-container {
        padding: 0 10px;
    }
    
    .clinic-name {
        font-size: 14px;
        display: none; /* Hide on very small screens */
    }
    
    .logo {
        height: 65px;
    }
    
    .btn-call {
        padding: 8px 15px;
        font-size: 14px;
    }
    
         /* Hero Mobile */
     .hero {
         padding-top: 80px;
         padding-bottom: 0;
         position: relative;
         margin-bottom: 0;
     }
     
     .hero-container {
         padding: 0 15px;
         gap: 30px;
         margin-bottom: 0;
     }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .stat {
        flex: 1;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 16px;
        min-width: auto;
    }
    
    /* Image Mobile */
    .image-container {
        width: 250px;
        height: 300px;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
    }
    
    .floating-icon i {
        font-size: 16px;
    }
    
         /* Quick Contact Mobile */
     .quick-contact {
         position: relative;
         grid-template-columns: 1fr;
         gap: 10px;
         padding: 25px 15px;
         background: var(--gray-light);
         margin: 0 auto 30px auto;
         max-width: 100%;
         border-radius: 0;
         box-shadow: none;
     }
     
     .contact-item {
         flex-direction: row;
         justify-content: flex-start;
         text-align: left;
         padding: 12px 15px;
         gap: 12px;
         background: white;
         border-radius: 10px;
         border-left: 4px solid var(--primary-color);
         box-shadow: 0 2px 8px rgba(0,0,0,0.05);
         margin: 0 15px;
     }
     
     .contact-item i {
         font-size: 16px;
         min-width: 20px;
         color: var(--primary-color);
     }
     
     .contact-item div {
         flex: 1;
     }
     
     .contact-item .value {
         font-size: 12px;
         font-weight: 600;
         color: var(--text-dark);
         line-height: 1.2;
     }
     
     .contact-item .label {
         font-size: 10px;
         color: var(--gray-medium);
         margin-bottom: 1px;
     }
    
    /* Trust Section Mobile */
    .trust-section {
        padding: 40px 0;
    }
    
    .trust-content h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
        line-height: 1.3;
    }
    
    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .trust-item {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .trust-item i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .trust-item span {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Extra Small Screens */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .stat {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .image-container {
        width: 220px;
        height: 280px;
    }
    
         .btn {
         padding: 12px 16px;
         font-size: 15px;
     }
     
     /* About Section Small Mobile */
     .section-title {
         font-size: 1.8rem;
     }
     
     .doctor-name {
         font-size: 1.7rem;
     }
     
     .clinic-content h3 {
         font-size: 1.8rem;
     }
     
     .feature-item {
         flex-direction: column;
         text-align: center;
         padding: 20px 15px;
     }
     
     .feature-icon {
         width: 50px;
         height: 50px;
         margin: 0 auto 15px;
     }
     
     .feature-icon i {
         font-size: 20px;
     }
     
     .mission-icon, .vision-icon {
         width: 60px;
         height: 60px;
         margin: 0 auto 15px;
     }
     
     .mission-icon i, .vision-icon i {
         font-size: 24px;
     }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }
    
    .hero-content {
        order: 1;
        text-align: left;
    }
    
    .hero-image {
        order: 2;
    }
    
    .image-container {
        width: 200px;
        height: 250px;
    }
    
    .quick-contact {
        position: relative;
        margin: 20px auto 40px auto;
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch-friendly enhancements */
@media (hover: none) {
    .btn:hover,
    .nav-link:hover,
    .trust-item:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .nav-link:active {
        background: var(--light-blue);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Enhancements */
.touch-device .btn,
.touch-device .nav-link,
.touch-device .trust-item,
.touch-device .contact-item {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.touch-active {
    transform: scale(0.98) !important;
    opacity: 0.9 !important;
    transition: transform 0.1s ease, opacity 0.1s ease !important;
}

/* Mobile-specific CSS Custom Properties */
:root {
    --mobile-padding: 15px;
    --mobile-font-scale: 0.9;
    --touch-target-size: 44px; /* Apple's recommended minimum */
    --section-spacing: 40px; /* Standard section spacing */
}

@media (max-width: 768px) {
    :root {
        --mobile-padding: 20px;
        --section-spacing: 30px; /* Reduced section spacing on mobile */
    }
    
    /* Ensure sections don't overlap on mobile */
    section {
        margin-bottom: var(--section-spacing);
    }
    
    /* Fix for potential quick contact overlap */
    .quick-contact + section {
        margin-top: var(--section-spacing);
    }
}

/* Ensure minimum touch target sizes */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .btn-call,
    .nav-toggle {
        min-height: var(--touch-target-size);
        min-width: var(--touch-target-size);
    }
    
    .contact-item {
        min-height: var(--touch-target-size);
        padding: 10px;
    }
}

/* Loading States */
.fonts-loaded .hero-title,
.fonts-loaded .clinic-name {
    font-family: 'Playfair Display', serif;
}

.fonts-loaded body {
    font-family: 'Poppins', sans-serif;
}

/* Reduced Animations for Low-End Devices */
.reduced-animations *,
.reduced-animations *::before,
.reduced-animations *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* About Section Styles */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f8fa 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Ensure no overlap */
    clear: both; /* Clear any floats */
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.about-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.about-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
}

.about-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.about-shape.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: -5%;
    animation-delay: 4s;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 211, 226, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(79, 211, 226, 0.2);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--gray-medium);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Doctor Profile */
.doctor-profile {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.doctor-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    background: white;
    padding: 15px;
}

.doctor-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.image-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-frame:hover .image-overlay {
    transform: translateY(0);
}

.credentials {
    display: flex;
    gap: 10px;
}

.credentials span {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--gradient-primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
}

.experience-number {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.experience-text {
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}

/* Doctor Content */
.doctor-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.doctor-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.doctor-title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.doctor-credentials {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.credential {
    font-size: 14px;
    color: var(--gray-medium);
    font-weight: 500;
}

.doctor-bio p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.doctor-specialties h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.specialty-item:hover {
    transform: translateY(-3px);
}

.specialty-item i {
    font-size: 20px;
    color: var(--primary-color);
    min-width: 25px;
}

.specialty-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* Clinic Information */
.clinic-info {
    margin-bottom: 80px;
}

.clinic-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.clinic-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.clinic-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.clinic-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-medium);
}

/* Mission & Vision */
.mission-vision {
    margin-bottom: 80px;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.mission, .vision {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
}

.mission-icon, .vision-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mission-icon i, .vision-icon i {
    font-size: 30px;
    color: white;
}

.mission h4, .vision h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.mission p, .vision p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-medium);
}

/* About CTA */
.about-cta {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 16px;
    color: var(--gray-medium);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Improve text rendering on mobile */
@media (max-width: 768px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Better button spacing for touch */
    .hero-buttons .btn {
        margin: 5px 0;
    }
    
         /* Improved mobile navigation spacing */
     .nav-menu .nav-link {
         margin: 5px 20px;
         padding: 15px 20px;
     }
     
     /* About Section Mobile */
     .about-section {
         padding: 60px 0;
     }
     
     .section-header {
         margin-bottom: 50px;
     }
     
     .section-title {
         font-size: 2.2rem;
     }
     
     .section-description {
         font-size: 16px;
     }
     
     .doctor-profile {
         grid-template-columns: 1fr;
         gap: 40px;
         margin-bottom: 60px;
     }
     
     .doctor-image {
         order: 1;
         max-width: 350px;
         margin: 0 auto;
     }
     
     .doctor-content {
         order: 2;
         text-align: center;
     }
     
     .doctor-name {
         font-size: 2rem;
     }
     
     .specialties-grid {
         grid-template-columns: 1fr;
         gap: 10px;
     }
     
     .clinic-features {
         grid-template-columns: 1fr;
         gap: 20px;
     }
     
     .feature-item {
         padding: 25px 20px;
     }
     
     .mission-vision-grid {
         grid-template-columns: 1fr;
         gap: 20px;
     }
     
     .mission, .vision {
         padding: 30px 20px;
     }
     
     .about-cta {
         padding: 40px 20px;
         margin: 0 20px;
     }
     
     .cta-content h3 {
         font-size: 1.8rem;
     }
     
     .cta-buttons {
         flex-direction: column;
         align-items: center;
     }
     
     .cta-buttons .btn {
         width: 100%;
         max-width: 300px;
     }
}

/* Services Section Styles */
.services-section {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Ensure no overlap */
    clear: both; /* Clear any floats */
}

.services-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.services-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.services-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.03;
    animation: float 10s ease-in-out infinite;
}

.services-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.services-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -10%;
    animation-delay: 3s;
}

.services-shape.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

/* Services Subtitle */
.services-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
}

/* Popular Services */
.popular-services {
    margin-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(79, 211, 226, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-card.featured {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.service-card.featured .service-content h4,
.service-card.featured .service-content p,
.service-card.featured .service-features li {
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(79, 211, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.service-card.featured:hover .service-icon {
    background: rgba(255, 255, 255, 0.3);
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card.featured .service-icon i {
    color: white;
}

.service-content {
    text-align: center;
}

.service-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-medium);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    font-size: 13px;
    color: var(--gray-medium);
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card.featured .service-features li:before {
    color: white;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Additional Services */
.additional-services {
    margin-bottom: 80px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--light-blue);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: var(--shadow-medium);
}

.service-icon-small {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon-small i {
    font-size: 20px;
    color: white;
}

.service-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.service-info p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-medium);
    margin: 0;
}

/* Service Process */
.service-process {
    margin-bottom: 80px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 30px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-medium);
}

/* Services CTA */
.services-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--light-blue);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.services-cta .cta-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.services-cta .cta-content p {
    font-size: 16px;
    color: var(--gray-medium);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.services-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section Mobile Responsiveness */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .process-step:nth-child(2):after {
        display: none;
    }
    
    .process-step:nth-child(4):after {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-subtitle {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .service-icon i {
        font-size: 26px;
    }
    
    .service-content h4 {
        font-size: 18px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-item {
        padding: 20px;
        gap: 15px;
    }
    
    .service-icon-small {
        width: 45px;
        height: 45px;
    }
    
    .service-icon-small i {
        font-size: 18px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .process-step:after {
        display: none;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .services-cta {
        padding: 40px 20px;
        margin: 0 20px;
    }
    
    .services-cta .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .services-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 0;
    }
    
    .services-subtitle {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-content h4 {
        font-size: 16px;
    }
    
    .service-content p {
        font-size: 13px;
    }
    
    .service-features li {
        font-size: 12px;
    }
    
    .service-item {
        padding: 15px;
        gap: 12px;
    }
    
    .service-info h5 {
        font-size: 14px;
    }
    
    .service-info p {
        font-size: 12px;
    }
    
    .step-content h4 {
        font-size: 16px;
    }
    
    .step-content p {
        font-size: 13px;
    }
    
         .services-cta .cta-content h3 {
         font-size: 1.5rem;
     }
}

/* Gallery Section Styles */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f8fa 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Ensure no overlap */
    clear: both; /* Clear any floats */
}

.gallery-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gallery-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.gallery-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.03;
    animation: float 12s ease-in-out infinite;
}

.gallery-shape.shape-1 {
    width: 250px;
    height: 250px;
    top: 15%;
    right: -5%;
    animation-delay: 0s;
}

.gallery-shape.shape-2 {
    width: 180px;
    height: 180px;
    bottom: 25%;
    left: -8%;
    animation-delay: 4s;
}

.gallery-shape.shape-3 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 20%;
    animation-delay: 8s;
}

.gallery-section .container {
    position: relative;
    z-index: 2;
}



/* Single Flowing Gallery Container */
.gallery-container {
    margin-bottom: 80px;
    overflow: hidden;
    padding: 20px 0;
}

.gallery-flow {
    display: flex;
    gap: 32px;
    animation: flowContinuous 24s linear infinite;
    /* Adjust duration for 8 images to avoid blank space */
}

@keyframes flowContinuous {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Gallery Items */
.gallery-item {
    min-width: 300px;
    height: 250px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: var(--shadow-heavy);
    z-index: 10;
}

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

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

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(79, 211, 226, 0.9) 0%,
        rgba(44, 122, 130, 0.9) 100%
    );
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.overlay-content p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.view-btn i {
    font-size: 18px;
}



/* Gallery CTA */
.gallery-cta {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.gallery-cta .cta-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.gallery-cta .cta-content p {
    font-size: 16px;
    color: var(--gray-medium);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-close i {
    font-size: 18px;
}

#lightboxImage {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Pause animation on hover */
.gallery-container:hover .gallery-flow {
    animation-play-state: paused;
}

/* Gallery Section Mobile Responsiveness */
@media (max-width: 1024px) {
    .gallery-flow {
        gap: 15px;
        width: calc(280px * 24 + 15px * 23);
        animation: flowContinuousTablet 50s linear infinite;
    }
    
    .gallery-item {
        min-width: 280px;
        height: 220px;
    }
    
    @keyframes flowContinuousTablet {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-280px * 19 - 15px * 18)); }
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }
    

    
    .gallery-flow {
        gap: 12px;
        width: calc(250px * 24 + 12px * 23);
        animation: flowContinuousMobile 55s linear infinite;
    }
    
    .gallery-item {
        min-width: 250px;
        height: 200px;
    }
    
    .overlay-content h4 {
        font-size: 16px;
    }
    
    .overlay-content p {
        font-size: 13px;
    }
    
    .view-btn {
        width: 45px;
        height: 45px;
    }
    
    .view-btn i {
        font-size: 16px;
    }
    
    .gallery-cta {
        padding: 40px 20px;
        margin: 0 20px;
    }
    
    .gallery-cta .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .gallery-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-nav {
        padding: 0 15px;
    }
    
    @keyframes flowContinuousMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-250px * 19 - 12px * 18)); }
    }
}

@media (max-width: 480px) {
    .gallery-section {
        padding: 40px 0;
    }
    

    
    .gallery-flow {
        gap: 10px;
        width: calc(200px * 24 + 10px * 23);
        animation: flowContinuousSmall 60s linear infinite;
    }
    
    .gallery-item {
        min-width: 200px;
        height: 160px;
    }
    
    .gallery-item:hover {
        transform: scale(1.02) translateY(-5px);
    }
    
    .overlay-content h4 {
        font-size: 14px;
    }
    
    .overlay-content p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .view-btn {
        width: 40px;
        height: 40px;
    }
    
    .view-btn i {
        font-size: 14px;
    }
    
    .gallery-cta .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .lightbox-close i {
        font-size: 16px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
    }
    
    @keyframes flowContinuousSmall {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-200px * 19 - 10px * 18)); }
    }
}

/* Lazy Loading Optimizations - Removed for immediate loading */
.lazy-load {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Performance Optimizations */
.low-performance .gallery-flow {
    animation: none !important;
}

.low-performance .gallery-item:hover {
    transform: none !important;
}

.low-performance .floating-icon,
.low-performance .shape {
    animation: none !important;
}

/* AOS Disabled for low-end devices */
.aos-disabled [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Ensure no overlap */
    clear: both; /* Clear any floats */
}

.testimonials-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.testimonials-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.testimonials-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.03;
    animation: float 15s ease-in-out infinite;
}

.testimonials-shape.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: -5%;
    animation-delay: 0s;
}

.testimonials-shape.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: -8%;
    animation-delay: 5s;
}

.testimonials-shape.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 15%;
    animation-delay: 10s;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
}

/* Testimonials Slider */
.testimonials-slider {
    margin-bottom: 80px;
    position: relative;
}

.slider-container {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.testimonial-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(79, 211, 226, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.patient-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
}

.testimonial-card.featured .patient-avatar {
    border-color: white;
}

.patient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patient-info {
    flex: 1;
}

.patient-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.review-time {
    font-size: 12px;
    color: var(--gray-medium);
    margin-top: 5px;
    font-style: italic;
}

.rating {
    display: flex;
    gap: 3px;
    margin-bottom: 5px;
}

.rating i {
    font-size: 14px;
    color: #ffc107;
}

.google-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4285f4;
    border-radius: 6px;
}

.google-logo i {
    font-size: 18px;
    color: white;
}

/* Testimonial Content */
.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn i {
    font-size: 18px;
}



/* Testimonials Stats */
.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--light-blue);
    border-radius: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 24px;
    color: white;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 14px;
    color: var(--gray-medium);
    font-weight: 500;
}

/* Testimonials CTA */
.testimonials-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--light-blue);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-cta .cta-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.testimonials-cta .cta-content p {
    font-size: 16px;
    color: var(--gray-medium);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Testimonials Section Mobile Responsiveness */
@media (max-width: 1024px) {
    .testimonials-slider {
        margin-bottom: 60px;
    }
    
    .testimonial-card {
        padding: 35px;
        max-width: 550px;
    }
    
    .slider-controls {
        padding: 0 15px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
    
    .slider-btn i {
        font-size: 16px;
    }
    
    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-slider {
        margin-bottom: 50px;
    }
    
    .testimonial-slide {
        padding: 0 10px;
    }
    
    .testimonial-card {
        padding: 25px;
        max-width: 100%;
    }
    
    .testimonial-header {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .patient-avatar {
        width: 50px;
        height: 50px;
    }
    
    .patient-name {
        font-size: 16px;
    }
    
    .review-time {
        font-size: 11px;
    }
    
    .testimonial-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn i {
        font-size: 14px;
    }
    

    
    .google-logo {
        width: 25px;
        height: 25px;
        top: 8px;
        right: 8px;
    }
    
    .google-logo i {
        font-size: 14px;
    }
    
    .testimonials-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
        margin-bottom: 60px;
    }
    
    .stat-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .testimonials-cta {
        padding: 40px 20px;
        margin: 0 20px;
    }
    
    .testimonials-cta .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .testimonials-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonials-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-slider {
        margin-bottom: 40px;
    }
    
    .testimonial-slide {
        padding: 0 5px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .patient-avatar {
        width: 60px;
        height: 60px;
    }
    
    .patient-name {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .rating {
        justify-content: center;
        margin-bottom: 3px;
    }
    
    .review-time {
        font-size: 10px;
        text-align: center;
    }
    
    .google-logo {
        position: static;
        margin-top: 10px;
        width: 30px;
        height: 30px;
    }
    
    .testimonial-content p {
        font-size: 13px;
        text-align: center;
        line-height: 1.4;
    }
    
    .slider-controls {
        padding: 0 5px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-btn i {
        font-size: 12px;
    }
    

    
    .testimonials-stats {
        padding: 20px;
    }
    
    .stat-content h3 {
        font-size: 1.8rem;
    }
    
    .testimonials-cta .cta-content h3 {
        font-size: 1.5rem;
    }
}

/* FAQ Section Styles */
.faq-section {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Ensure no overlap */
    clear: both; /* Clear any floats */
}

.faq-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.faq-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.faq-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.03;
    animation: float 20s ease-in-out infinite;
}

.faq-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: 15%;
    left: -8%;
    animation-delay: 0s;
}

.faq-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: 7s;
}

.faq-shape.shape-3 {
    width: 120px;
    height: 120px;
    bottom: 30%;
    left: 25%;
    animation-delay: 14s;
}

.faq-section .container {
    position: relative;
    z-index: 2;
}

/* FAQ Container */
.faq-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: flex-start;
}

/* FAQ Categories */
.faq-categories {
    position: sticky;
    top: 120px;
}

.category-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--light-blue);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(79, 211, 226, 0.1);
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.category-tab:hover {
    background: rgba(79, 211, 226, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.category-tab i {
    font-size: 18px;
    min-width: 20px;
}

/* FAQ Content */
.faq-content {
    background: white;
    border-radius: 20px;
    padding: 0;
}

.faq-category {
    display: none;
}

.faq-category.active {
    display: block;
}

.faq-item {
    border: 1px solid rgba(79, 211, 226, 0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background: var(--light-blue);
    border-bottom: 1px solid rgba(79, 211, 226, 0.2);
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 16px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 30px 25px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
    padding-top: 10px;
}

/* FAQ CTA */
.faq-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--light-blue);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-cta .cta-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.faq-cta .cta-content p {
    font-size: 16px;
    color: var(--gray-medium);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section Mobile Responsiveness */
@media (max-width: 1024px) {
    .faq-container {
        grid-template-columns: 250px 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .category-tabs {
        padding: 25px;
    }
    
    .category-tab {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .category-tab i {
        font-size: 16px;
    }
    
    .faq-question {
        padding: 20px 25px;
    }
    
    .faq-question h4 {
        font-size: 17px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 25px 20px;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .faq-categories {
        position: static;
        order: 1;
    }
    
    .faq-content {
        order: 2;
    }
    
    .category-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 20px;
        flex-direction: row;
    }
    
    .category-tab {
        padding: 12px 15px;
        font-size: 14px;
        text-align: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }
    
    .category-tab span {
        font-size: 12px;
    }
    
    .category-tab:hover {
        transform: none;
    }
    
    .faq-question {
        padding: 18px 20px;
    }
    
    .faq-question h4 {
        font-size: 16px;
        padding-right: 15px;
    }
    
    .faq-icon {
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 18px;
        max-height: 400px;
    }
    
    .faq-answer p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .faq-cta {
        padding: 40px 20px;
        margin: 0 20px;
    }
    
    .faq-cta .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .faq-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Specific adjustment for 3 categories on smaller tablets */
@media (max-width: 640px) and (min-width: 481px) {
    .category-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .category-tab {
        padding: 12px 15px;
        font-size: 14px;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-container {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .category-tabs {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 8px;
    }
    
    .category-tab {
        padding: 10px 12px;
        font-size: 13px;
        flex-direction: row;
        gap: 10px;
    }
    
    .category-tab span {
        font-size: 13px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h4 {
        font-size: 15px;
        padding-right: 10px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }
    
    .faq-answer p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .faq-cta .cta-content h3 {
        font-size: 1.5rem;
    }
}

/* Accessibility Improvements */
.category-tab:focus,
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation for FAQ items */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }



/* Contact Section Styles */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f8fa 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Ensure no overlap */
    clear: both; /* Clear any floats */
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.contact-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.contact-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.03;
    animation: float 18s ease-in-out infinite;
}

.contact-shape.shape-1 {
    width: 250px;
    height: 250px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.contact-shape.shape-2 {
    width: 180px;
    height: 180px;
    top: 60%;
    right: -8%;
    animation-delay: 6s;
}

.contact-shape.shape-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    animation-delay: 12s;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

/* Contact Content Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Contact Information */
.contact-info {
    padding-right: 20px;
}

.info-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.info-header p {
    font-size: 16px;
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(79, 211, 226, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 20px;
    color: white;
}

.card-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.card-content p {
    font-size: 13px;
    color: var(--gray-medium);
    margin-bottom: 8px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Working Hours */
.working-hours {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
}

.working-hours h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(79, 211, 226, 0.1);
}

.hour-item:last-child {
    border-bottom: none;
}

.days {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.time {
    color: var(--gray-medium);
    font-size: 14px;
    text-align: right;
    line-height: 1.4;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(79, 211, 226, 0.1);
}

.form-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.form-header p {
    font-size: 16px;
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 45px 15px 15px;
    border: 2px solid rgba(79, 211, 226, 0.2);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 211, 226, 0.1);
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    pointer-events: none;
}

.form-group:has(label) i {
    top: calc(50% + 12px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

/* Location Section */
.location-section {
    margin-bottom: 80px;
}

.location-header {
    text-align: center;
    margin-bottom: 50px;
}

.location-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.location-header p {
    font-size: 16px;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Address Card */
.address-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    display: flex;
    gap: 20px;
    border-left: 4px solid var(--primary-color);
}

.address-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 5px;
}

.address-icon i {
    font-size: 24px;
    color: white;
}

.address-details h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.address-details p {
    font-size: 16px;
    color: var(--gray-medium);
    line-height: 1.6;
    margin-bottom: 25px;
}

.address-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.address-actions .btn {
    padding: 12px 20px;
    font-size: 14px;
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(79, 211, 226, 0.1);
}

.map-placeholder {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-blue) 0%, white 100%);
}

.map-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.map-icon i {
    font-size: 30px;
    color: white;
}

.map-placeholder h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.map-placeholder p {
    font-size: 14px;
    color: var(--gray-medium);
    margin-bottom: 25px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Contact CTA */
.contact-cta {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    margin: 0 auto;
}

.contact-cta .cta-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-cta .cta-content p {
    font-size: 16px;
    color: var(--gray-medium);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section Mobile Responsiveness */
@media (max-width: 1024px) {
    .contact-content {
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .contact-info {
        padding-right: 10px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
    
    .location-content {
        gap: 30px;
    }
    
    .address-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }
    
    .contact-info {
        padding-right: 0;
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
        padding: 25px;
    }
    
    .info-header h3 {
        font-size: 1.8rem;
    }
    
    .form-header h3 {
        font-size: 1.8rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .contact-card {
        padding: 20px;
        gap: 12px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
    }
    
    .card-icon i {
        font-size: 18px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 40px 12px 12px;
        font-size: 15px;
    }
    
    .working-hours {
        padding: 25px;
    }
    
    .hour-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .time {
        text-align: left;
    }
    
    .location-header h3 {
        font-size: 2rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .address-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
    }
    
    .address-icon {
        margin: 0 auto 15px;
    }
    
    .address-actions {
        justify-content: center;
    }
    
    .map-placeholder {
        padding: 40px 25px;
    }
    
    .contact-cta {
        padding: 40px 25px;
        margin: 0 20px;
    }
    
    .contact-cta .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .contact-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-content {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .info-header h3 {
        font-size: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 15px;
        gap: 10px;
    }
    
    .card-content h4 {
        font-size: 15px;
    }
    
    .card-content p {
        font-size: 12px;
    }
    
    .contact-link {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 35px 10px 10px;
        font-size: 14px;
    }
    
    .form-group i {
        right: 12px;
        font-size: 14px;
    }
    
    .working-hours {
        padding: 20px;
    }
    
    .working-hours h4 {
        font-size: 16px;
    }
    
    .days, .time {
        font-size: 13px;
    }
    
    .location-header h3 {
        font-size: 1.5rem;
    }
    
    .address-card {
        padding: 20px;
    }
    
    .address-details h4 {
        font-size: 18px;
    }
    
    .address-details p {
        font-size: 14px;
    }
    
    .address-actions .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .map-placeholder {
        padding: 30px 20px;
    }
    
    .map-icon {
        width: 60px;
        height: 60px;
    }
    
    .map-icon i {
        font-size: 24px;
    }
    
    .contact-cta .cta-content h3 {
        font-size: 1.5rem;
    }
}

/* Critical CSS for above-the-fold content */
.hero {
    contain: layout style paint;
}

.gallery-section {
    contain: layout style;
}

/* GPU acceleration for animations */
.gallery-flow,
.gallery-item,
.floating-icon,
.shape {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize repaints */
.gallery-overlay {
    will-change: opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .gallery-flow {
        animation: none;
    }
    
    .gallery-item:hover {
        transform: scale(1.02);
    }
    
    .lazy-load {
        transition: none;
    }
}

/* Footer Styles - New Implementation */
.footer {
    background: var(--dark-blue);
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.footer-main {
    padding: 80px 0 40px;
    position: relative;
    z-index: 2;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Footer Columns */
.footer-column h4 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    position: relative;
    font-family: 'Playfair Display', serif;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

/* Company Info */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.footer-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #b8c5d1;
    margin-bottom: 30px;
}

/* Clinic Stats */
.clinic-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b8c5d1;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.footer-links a:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover:before {
    transform: translateX(3px);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
    min-width: 20px;
}

.contact-item strong {
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.contact-item p {
    color: #b8c5d1;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.contact-item a {
    color: #b8c5d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer Secondary Section */
.footer-secondary {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-secondary h4 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

/* Service Areas */
.areas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-tag {
    background: rgba(79, 211, 226, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(79, 211, 226, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.area-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 211, 226, 0.3);
}

/* Social Media */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    position: relative;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

/* Copyright */
.copyright {
    grid-column: 1;
}

.copyright p {
    margin: 0;
    font-size: 14px;
    color: #b8c5d1;
    line-height: 1.5;
}

.copyright p:first-child {
    margin-bottom: 5px;
}

/* Legal Links */
.footer-legal {
    grid-column: 2;
    display: flex;
    gap: 25px;
    justify-content: center;
}

.legal-link {
    color: #b8c5d1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

/* Emergency Info */
.emergency-info {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
}

.emergency-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 187, 36, 0.1);
    border: 1px solid rgba(255, 187, 36, 0.3);
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 13px;
    color: #fbbf24;
}

.emergency-badge i {
    font-size: 14px;
}

.emergency-badge a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.emergency-badge a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-medium);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Footer Mobile Responsiveness */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }
    
    .footer-secondary {
        gap: 40px;
    }
    
    .clinic-stats {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .clinic-stats {
        justify-content: center;
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    .footer-links a:before {
        display: none;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-secondary {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .areas-tags {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .emergency-info {
        justify-content: center;
    }
    
    .emergency-badge {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .footer-logo .logo {
        height: 40px;
    }
    
    .footer-logo h3 {
        font-size: 20px;
    }
    
    .footer-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .clinic-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .footer-column h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-item i {
        font-size: 20px;
    }
    
    .contact-item strong {
        font-size: 13px;
    }
    
    .contact-item p {
        font-size: 13px;
    }
    
    .footer-secondary {
        padding: 30px 0;
    }
    
    .footer-secondary h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .area-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .copyright p,
    .legal-link {
        font-size: 12px;
    }
    
    .footer-legal {
        gap: 10px;
    }
    
    .emergency-badge {
        font-size: 11px;
        padding: 8px 12px;
    }
}
