/* Reset and Base Styles - Optimized */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
* {
    will-change: auto;
}

/* Optimize rendering for critical elements */
.hero-title,
.hero-subtitle,
.doctor-avatar,
.navbar {
    contain: layout style paint;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2d7a2d;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles for accessibility - Optimized */
*:focus {
    outline: 2px solid #2d7a2d;
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1e40af;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1e40af;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f1b0f 0%, #1a5d1a 50%, #2d7a2d 100%);
    color: white;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(45, 122, 45, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 93, 26, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(76, 175, 80, 0.08) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
        opacity: 0.8;
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
        opacity: 0.6;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.01) 50%, transparent 70%);
    animation: subtleShimmer 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes subtleShimmer {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 3;
    min-height: 70vh;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4caf50, #2d7a2d);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    position: relative;
    opacity: 0.9;
}

.hero-subtitle::before {
    content: '🌿';
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    position: relative;
    padding-left: 1.5rem;
}

.hero-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #4caf50 0%, #2d7a2d 100%);
    border-radius: 2px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fff;
    color: #2d7a2d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2d7a2d;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-avatar {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
    /* Performance optimizations */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.doctor-avatar:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.doctor-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: gentleRotate 15s linear infinite;
    z-index: -1;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 8rem 20px;
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d7a2d;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 120px 0 100px;
    background: #f8f9fa;
    margin-top: -50px;
    position: relative;
    z-index: 3;
}


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

.about-text h3 {
    font-size: 2rem;
    color: #2d7a2d;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-text {
    text-align: center;
}

.about-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2d7a2d;
}

.feature i {
    font-size: 1.2rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #1a5d1a 0%, #2d7a2d 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Safety Section */
.safety {
    padding: 100px 0;
    background: linear-gradient(135deg, #2d7a2d 0%, #0f1b0f 100%);
    color: white;
    text-align: center;
    position: relative;
    z-index: 2;
}

.safety h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.safety-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.safety-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.safety-feature i {
    font-size: 2rem;
    color: #4caf50;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
    position: relative;
    z-index: 2;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2d7a2d 0%, #4caf50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #2d7a2d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #2d7a2d 0%, #4caf50 100%);
    color: white;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: #2d7a2d;
    width: 40px;
}

.contact-item h3 {
    color: #2d7a2d;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d7a2d;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #4caf50;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4caf50;
}

/* Contact Links Styling */
.contact-link {
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    color: #4caf50;
    transform: translateX(5px);
}

.contact-link i {
    font-size: 1.2rem;
    color: #4caf50;
    transition: all 0.3s ease;
}

.contact-link:hover i {
    color: #2d7a2d;
    transform: scale(1.1);
}

/* Contact Section Icons */
.contact-item i {
    font-size: 1.8rem;
    color: #2d7a2d;
    width: 50px;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    color: #4caf50;
    transform: scale(1.1);
}

.contact-item h3 {
    color: #2d7a2d;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: #666;
}

/* Address Section Styling */
.address-text {
    color: #999;
    font-size: 1rem;
    margin: 0.5rem 0;
    font-style: italic;
}

.map-link {
    color: #2d7a2d;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.map-link:hover {
    color: #4caf50;
    transform: translateX(5px);
}

.map-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.map-link:hover i {
    transform: scale(1.1);
}

.footer-section p i {
    color: #4caf50;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Contact Details Styling */
.contact-details {
    margin-bottom: 1.5rem;
}

.contact-details p {
    margin-bottom: 0.8rem;
}

/* Map Section Styling */
.map-section {
    grid-column: span 1;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: scale(1.02);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #2d7a2d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4caf50;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

.developer-link {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding: 2px 4px;
    border-radius: 3px;
}

.developer-link:hover {
    color: #2d7a2d;
    text-decoration: none;
    border-bottom: 1px solid #2d7a2d;
    background-color: rgba(45, 122, 45, 0.1);
}

/* Mobile-specific optimizations - Disable hover effects and mouse-dependent animations */
@media (max-width: 768px) {
    /* Improve mobile container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Better mobile section spacing */
    .section-content {
        padding: 0 10px;
    }
    
    /* Disable hover effects on mobile */
    .nav-link:hover,
    .btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .service-card:hover,
    .doctor-avatar:hover,
    .stat-item:hover,
    .contact-item:hover i,
    .contact-link:hover,
    .contact-link:hover i,
    .map-link:hover,
    .map-link:hover i,
    .map-container:hover,
    .social-links a:hover,
    .developer-link:hover {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        background: transparent !important;
        color: inherit !important;
        border-bottom: 1px solid transparent !important;
        background-color: transparent !important;
        text-decoration: none !important;
    }
    
    .nav-link:hover::after,
    .btn::before,
    .service-card::before {
        display: none !important;
        width: 0 !important;
    }
    
    /* Disable complex animations on mobile */
    .hero::after,
    .hero::before,
    .doctor-avatar::before,
    .float-animation,
    .pulse-animation,
    .shimmer {
        animation: none !important;
        background: none !important;
    }
    
    .doctor-avatar {
        animation: none !important;
    }
    
    /* Disable mouse follower on mobile */
    .mouse-follower {
        display: none !important;
    }
    
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        min-height: 70vh;
        padding-bottom: 2rem;
        padding-top: 1rem;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        text-align: center;
        animation: mobileFadeInUp 0.8s ease-out;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        text-align: center;
        animation: mobileFadeInUp 0.8s ease-out 0.2s both;
    }
    
    .hero-description {
        font-size: 1rem;
        padding-left: 0;
        margin-bottom: 2rem;
        line-height: 1.6;
        max-width: 100%;
        text-align: center;
        animation: mobileFadeInUp 0.8s ease-out 0.4s both;
    }
    
    .hero-description::before {
        display: none;
    }
    
    .doctor-avatar {
        width: 250px;
        height: 250px;
        margin: 0 auto;
        margin-top: 1rem;
        animation: mobileFadeInUp 0.8s ease-out 0.8s both;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding-bottom: 8rem;
        margin-bottom: 6rem;
        padding-top: 3rem;
        margin-top: 4rem;
        padding-left: 10px;
        padding-right: 10px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text {
        order: 1;
    }

    .about {
        margin-top: -40px;
        padding: 120px 0 100px;
        padding-top: 140px;
    }

    .safety-features {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-section {
        grid-column: span 2;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        align-items: center;
        width: 100%;
        animation: mobileFadeInUp 0.8s ease-out 0.6s both;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
        margin: 0 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Specific styling for call button to prevent text wrapping */
    .btn-primary {
        font-size: 0.85rem;
        padding: 12px 16px;
        min-width: 250px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero {
        padding: 90px 0 120px;
        min-height: 100vh;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .safety h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Ensure proper spacing for mobile scrolling */
    .hero-stats .stat-item:last-child {
        margin-bottom: 2rem;
    }
    
    /* Add extra padding to ensure content is visible */
    .hero-stats {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 480px) {
    /* Additional mobile optimizations for small screens */
    .container {
        padding: 0 10px;
    }
    
    .section-content {
        padding: 0 5px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        padding-bottom: 10rem;
        margin-bottom: 8rem;
        padding-top: 3rem;
        margin-top: 4rem;
        padding-left: 5px;
        padding-right: 5px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .map-section {
        grid-column: span 1;
    }
    
    .map-container {
        height: 150px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        text-align: center;
        animation: mobileFadeInUp 0.8s ease-out;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        text-align: center;
        animation: mobileFadeInUp 0.8s ease-out 0.2s both;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        text-align: center;
        animation: mobileFadeInUp 0.8s ease-out 0.4s both;
    }
    
    .hero-container {
        gap: 1.5rem;
        min-height: 80vh;
        padding-bottom: 1rem;
    }
    
    .doctor-avatar {
        width: 220px;
        height: 220px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .safety h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Ensure proper spacing for mobile scrolling on small screens */
    .hero-stats .stat-item:last-child {
        margin-bottom: 3rem;
    }
    
    /* Add extra padding to ensure content is visible */
    .hero-stats {
        position: relative;
        z-index: 2;
    }
    
    .about-content {
        display: flex;
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text {
        order: 1;
    }
    
    .hero {
        padding: 80px 0 140px;
        min-height: 100vh;
    }
    
    /* Improve touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Specific styling for call button on small screens */
    .btn-primary {
        font-size: 0.75rem;
        padding: 10px 14px;
        min-width: 220px;
    }
    
    .nav-link {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Disable all remaining animations on very small screens */
    .animate-on-scroll,
    .animate-left,
    .animate-right,
    .animate-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-on-scroll:not(.animated),
    .animate-left:not(.animated),
    .animate-right:not(.animated),
    .animate-scale:not(.animated) {
        opacity: 1;
        transform: none;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll:not(.animated) {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-left:not(.animated) {
    opacity: 0;
    transform: translateX(-50px);
}

.animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-right:not(.animated) {
    opacity: 0;
    transform: translateX(50px);
}

.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale:not(.animated) {
    opacity: 0;
    transform: scale(0.8);
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Hover Animations */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
}

.hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-rotate {
    transition: all 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.1);
}

/* Floating Animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation:nth-child(2) {
    animation-delay: -2s;
}

.float-animation:nth-child(3) {
    animation-delay: -4s;
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Mouse Follower */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(26, 93, 26, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}


/* Service Card Animations */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation Animations */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #1e40af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #1e40af;
    transform: translateY(-2px);
}

/* Hero Section Animations */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.doctor-avatar {
    animation: float 6s ease-in-out infinite;
}

/* Stat Cards Animation */
.stat-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Form Animations */
.form-group input,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.2);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2d7a2d, #1e40af);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero::after,
    .hero::before,
    .doctor-avatar::before {
        animation: none !important;
    }
    
    .float-animation,
    .pulse-animation,
    .shimmer {
        animation: none !important;
    }
    
    .mouse-follower {
        display: none !important;
    }
}

/* Mobile-specific animations */
@keyframes mobileFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mobileScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2d7a2d;
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

.scroll-to-top:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
    
    .scroll-to-top:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}
