/* CSS Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    overflow-x:hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    overflow-x: hidden;
}

/* Loading screen styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* Simple loading spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #4db6ac;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation keyframe */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide loading screen when page is loaded */
.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Enhanced header navigation with elder accessibility improvements */
header {
    background: #fff;
    backdrop-filter: none;
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: none;
    min-height: 80px;
}

/* Navigation container */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Enhanced logo styling with image support */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d8a7f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Logo icon image styling */
.logo-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Fallback logo icon when image is not available */
.logo-icon-fallback {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4db6ac, #26a69a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
}

/* Logo text container */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-sub {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}


.logo-main, .logo-sub {
    color: #1565c0; /* Fallback color */
    background: linear-gradient(135deg, #1565c0, #2e7d32);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .logo-sub {
        font-size: 0.8rem;
    }
}

/* Add styling for the logo link */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
}

/* Enhanced navigation menu with accessibility improvements for elders */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem; /* Reduced gap to accommodate larger touch targets */
    align-items: center;
}

.nav-menu li {
    position: relative;
}

/* Navigation links with elder-friendly improvements */
.nav-menu a {
    text-decoration: none;
    color: #333; /* Better contrast than #555 */
    font-weight: 600; /* Slightly bolder for readability */
    font-size: 1.1rem; /* Larger font size for elders */
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover effect with background and color change */
.nav-menu a:hover {
    color: white;
    background: linear-gradient(135deg, #4db6ac, #26a69a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 182, 172, 0.4);
}

/* Animated underline effect */
.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4db6ac, #26a69a);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::before {
    width: 80%;
}

/* Mobile menu toggle with basic styling */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.8rem;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2d8a7f;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero section with subtle, consistent color matching the reference */
.hero {
    min-height: 100vh;
    background: #fff;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Reduced to account for transparent header */
    position: relative;
    overflow: hidden;
}

/* Subtle decorative background elements matching reference design */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, 
        rgba(200, 230, 255, 0.3) 0%, 
        rgba(180, 220, 240, 0.15) 40%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, 
        rgba(200, 255, 220, 0.2) 0%, 
        rgba(180, 240, 200, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 12s ease-in-out infinite reverse;
}

/* Floating animation for background elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Hero container with enhanced grid layout */
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left content area with enhanced typography */
.hero-content {
    max-width: 600px;
    z-index: 1;
}

/* Main heading style with blue/green theme */
h1 {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1565c0;
    background: linear-gradient(135deg, #1565c0, #2e7d32);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

/* Subtitle in quotes with blue/green styling */
.hero-subtitle {
    font-size: 1.5rem;
    color: #2e7d32;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    padding-left: 2rem;
    animation: slideInLeft 0.8s ease-out 0.5s both;
}

/* Quote marks for subtitle with blue accent */
.hero-subtitle::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-size: 2.5rem;
    color: #42a5f5;
    font-weight: bold;
}

/* Description text with better spacing */
.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: slideInLeft 0.8s ease-out 0.7s both;
}

/* Enhanced button container */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.9s both;
}

/* Enhanced primary button with blue/green gradient */
.btn-primary {
    background: linear-gradient(135deg, #42a5f5, #2196f3, #1976d2);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

/* Button shine effect */
.btn-primary::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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.4);
    background: linear-gradient(135deg, #2196f3, #1976d2, #1565c0);
}

/* Enhanced secondary button with soft green theme */
.btn-secondary {
    background: transparent;
    color: #66bb6a;
    padding: 1.2rem 3rem;
    border: 2px solid #66bb6a;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* Secondary button fill effect with soft green */
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: white;
    border-color: #4caf50;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 187, 106, 0.3);
}

/* Enhanced arrow icon for Learn More button */
.btn-secondary::after {
    content: "↓";
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-secondary:hover::after {
    transform: translateY(3px);
}

/* Hero image section with leaf-like organic design matching the screenshot */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s ease-out 0.5s both;
    right: -2%; /* Adjusted to make room for left-side graphics */
    overflow:visible; 
}

/* Main organic background shape with subtle, consistent coloring */
.image-background {
    position: absolute;
    width: 520px;
    height: 650px;
    background: #fff;
    z-index: 1;
    animation: gentle-float 8s ease-in-out infinite;
    /* Organic asymmetric border-radius */
    border-radius: 160px 60px 160px 60px;
    transform: rotate(-15deg);
    box-shadow: 0 25px 60px rgba(180, 220, 240, 0.2);
}

/* Subtle gradient border matching reference colors */
.image-background::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: -4px;
    bottom: -4px;
    border-radius: 164px 64px 164px 64px;
    background: linear-gradient(135deg, 
        rgba(180, 220, 240, 0.4) 0%,     /* Muted light blue */
        rgba(200, 230, 245, 0.3) 30%,    /* Very soft blue */
        rgba(200, 240, 220, 0.3) 70%,    /* Very soft green */
        rgba(180, 230, 200, 0.4) 100%);  /* Muted light green */
    z-index: -1;
}

/* Secondary organic shape with subtle coloring */
.image-background::before {
    content: '';
    position: absolute;
    top: -8%;
    right: -12%;
    width: 35%;
    height: 45%;
    background: #fff;
    /* Asymmetric organic accent shape */
    border-radius: 80px 20px 80px 20px;
    transform: rotate(25deg);
    z-index: -2;
    box-shadow: 0 15px 35px rgba(200, 240, 220, 0.08);
    border: 3px solid;
    border-image: linear-gradient(45deg, 
        rgba(200, 240, 220, 0.3) 0%,     /* Subtle green */
        rgba(180, 230, 200, 0.2) 50%,    /* Light green */
        rgba(180, 220, 240, 0.2) 100%)   /* Light blue */
    1;
}

/* Doctor image container with subtle gradient border */
.image-frame {
    position: relative;
    z-index: 3;
    width: 480px;
    height: 600px;
    overflow: hidden;
    /* Organic asymmetric border-radius */
    border-radius: 120px 40px 120px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 15px 40px rgba(180, 220, 240, 0.15);
    background: #fff;
    /* STRAIGHT - No rotation */
    transform: rotate(0deg);
}

/* Subtle gradient border effect for doctor image */
.image-frame::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: -3px;
    bottom: -3px;
    border-radius: 123px 43px 123px 43px;
    background: linear-gradient(135deg, 
        rgba(180, 220, 240, 0.4) 0%, 
        rgba(200, 230, 245, 0.5) 30%,
        rgba(200, 240, 220, 0.4) 70%,
        rgba(180, 230, 200, 0.5) 100%);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Doctor image styling to match the screenshot positioning */
.doctor-image {
    width: 100%;
    height: 143%;
    object-fit: cover;
    object-position: center top;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.08) saturate(1.05) brightness(1.02);
    transform: scale(1.05);
}

/* Professional hover effects with enhanced blue/green gradient border */
.image-frame:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.18),
        0 20px 50px rgba(33, 150, 243, 0.25);
    border-radius: 100px 60px 100px 60px;
}

.image-frame:hover::after {
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.6) 0%, 
        rgba(42, 165, 245, 0.7) 30%,
        rgba(129, 199, 132, 0.6) 70%,
        rgba(102, 187, 106, 0.7) 100%);
    border-radius: 103px 63px 103px 63px;
}

.image-frame:hover .doctor-image {
    filter: contrast(1.1) saturate(1.08) brightness(1.03);
    transform: scale(1.06);
}

/* Gentle floating animation */
@keyframes gentle-float {
    0%, 100% { 
        transform: rotate(-15deg) translateY(0px); 
    }
    50% { 
        transform: rotate(-12deg) translateY(-12px); 
    }
}

/* Organic floating elements with card-like styling and gradient borders */
.floating-element {
    position: absolute;
    z-index: 2;
    background: #fff;
    border-radius: 9px;
    opacity: 0.8;
    left:auto;
    right:auto;
}

/* Right-side decorative elements */
/* Top accent element - card-like with blue gradient border */
.element-1 {
    width: 90px;
    height: 120px;
    top: 8%;
    left: -6%;
    /* Asymmetric organic border-radius */
    border-radius: 60px 20px 60px 20px;
    transform: rotate(-25deg);
    animation: gentle-float 7s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.1);
    position: relative;
}

.element-1::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border-radius: 62px 22px 62px 22px;
    background: linear-gradient(135deg, 
        rgba(100, 181, 246, 0.4) 0%, 
        rgba(144, 202, 249, 0.3) 100%);
    z-index: -1;
}

/* Bottom accent element - card-like with soft green gradient border */
.element-2 {
    width: 70px;
    height: 95px;
    bottom: 15%;
    right: -8%;
    /* Organic asymmetric shape */
    border-radius: 40px 15px 40px 15px;
    transform: rotate(35deg);
    animation: gentle-float 9s ease-in-out infinite reverse;
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.08);
    position: relative;
}

.element-2::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border-radius: 42px 17px 42px 17px;
    background: linear-gradient(135deg, 
        rgba(129, 199, 132, 0.4) 0%, 
        rgba(165, 214, 167, 0.3) 100%);
    z-index: -1;
}

/* Additional small accent element - card-like with blue-green gradient */
.element-3 {
    width: 45px;
    height: 60px;
    top: 60%;
    left: -3%;
    /* Small asymmetric organic shape */
    border-radius: 30px 10px 30px 10px;
    transform: rotate(-10deg);
    animation: gentle-float 5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.06);
    position: relative;
}

.element-3::after {
    content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    top: -1px;
    bottom: -1px;
    border-radius: 31px 11px 31px 11px;
    background: linear-gradient(135deg, 
        rgba(102, 187, 106, 0.3) 0%, 
        rgba(100, 181, 246, 0.25) 100%);
    z-index: -1;
}

/* New left-side background graphics */
/* Large left accent shape with soft blue gradient */
.element-4 {
    position: absolute;
    width: 180px;
    height: 240px;
    top: 20%;
    left: -25%;
    background: #fff;
    border-radius: 120px 40px 120px 40px;
    transform: rotate(20deg);
    z-index: 1;
    opacity: 0.7;
    animation: gentle-float 11s ease-in-out infinite;
    box-shadow: 0 15px 40px rgba(144, 202, 249, 0.12);
}

.element-4::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    top: -3px;
    bottom: -3px;
    border-radius: 123px 43px 123px 43px;
    background: linear-gradient(135deg, 
        rgba(144, 202, 249, 0.3) 0%, 
        rgba(179, 229, 252, 0.2) 100%);
    z-index: -1;
}

/* Medium left accent with green tint */
.element-5 {
    position: absolute;
    width: 110px;
    height: 140px;
    bottom: 25%;
    left: -18%;
    background: #fff;
    border-radius: 70px 25px 70px 25px;
    transform: rotate(-30deg);
    z-index: 1;
    opacity: 0.6;
    animation: gentle-float 8s ease-in-out infinite reverse;
    box-shadow: 0 12px 30px rgba(165, 214, 167, 0.1);
}

.element-5::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border-radius: 72px 27px 72px 27px;
    background: linear-gradient(135deg, 
        rgba(165, 214, 167, 0.35) 0%, 
        rgba(200, 230, 201, 0.25) 100%);
    z-index: -1;
}

/* Small left accent for depth */
.element-6 {
    position: absolute;
    width: 65px;
    height: 85px;
    top: 65%;
    left: -12%;
    background: #fff;
    border-radius: 45px 15px 45px 15px;
    transform: rotate(15deg);
    z-index: 1;
    opacity: 0.5;
    animation: gentle-float 6s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(100, 181, 246, 0.08);
}

.element-6::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border-radius: 47px 17px 47px 17px;
    background: linear-gradient(135deg, 
        rgba(100, 181, 246, 0.3) 0%, 
        rgba(129, 199, 132, 0.2) 100%);
    z-index: -1;
}

/* Smooth entrance animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design for tablets */
@media (max-width: 1024px) {
    .hero-container {
        gap: 4rem;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    /* Adjust organic design for tablets */
    .image-background {
        width: 440px;
        height: 550px;
        border-radius: 140px 50px 140px 50px;
    }
    
    .image-background::after {
        border-radius: 144px 54px 144px 54px;
    }
    
    .image-frame {
        max-width: 400px;
        max-height: 500px;
        border-radius: 100px 35px 100px 35px;
    }
    
    .image-frame::after {
        border-radius: 103px 38px 103px 38px;
    }
    
    /* Scale down organic accent elements */
    .element-1 {
        width: 75px;
        height: 100px;
        border-radius: 50px 18px 50px 18px;
    }
    
    .element-1::after {
        border-radius: 52px 20px 52px 20px;
    }
    
    .element-2 {
        width: 60px;
        height: 80px;
        border-radius: 35px 12px 35px 12px;
    }
    
    .element-2::after {
        border-radius: 37px 14px 37px 14px;
    }
    
    .element-3 {
        width: 35px;
        height: 50px;
        border-radius: 25px 8px 25px 8px;
    }
    
    .element-3::after {
        border-radius: 26px 9px 26px 9px;
    }
    
    /* Scale down new left-side elements for tablets */
    .element-4 {
        width: 140px;
        height: 180px;
        left: -20%;
        border-radius: 90px 30px 90px 30px;
    }
    
    .element-4::after {
        border-radius: 93px 33px 93px 33px;
    }
    
    .element-5 {
        width: 85px;
        height: 110px;
        left: -15%;
        border-radius: 55px 20px 55px 20px;
    }
    
    .element-5::after {
        border-radius: 57px 22px 57px 22px;
    }
    
    .element-6 {
        width: 50px;
        height: 65px;
        left: -10%;
        border-radius: 35px 12px 35px 12px;
    }
    
    .element-6::after {
        border-radius: 37px 14px 37px 14px;
    }
}

@media (max-width: 1023px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu when active */
    .nav-menu.mobile-active {
        display: flex;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: #f2f9ff;
        backdrop-filter: blur(60px);
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        z-index: 999;
        animation: slideDown 0.3s ease-out;
    }

    .nav-menu.mobile-active li {
        top: 80px;
    }
    
    .nav-menu.mobile-active a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        color: #333;
        width: 200px;
        text-align: center;
        border-radius: 25px;
    }
}

/* Mobile responsive design with elder accessibility */
@media (max-width: 768px) {
    
    /* Hide or minimize background graphics that clash with buttons on mobile */
    .hero::before {
        display: none;
    }
    
    .hero::after {
        width: 400px;
        height: 400px;
        bottom: -30%;
        left: -25%;
        opacity: 0.3;
    }
    
    /* Fix hero section alignment and spacing */
    .hero {
        padding: 120px 1rem 2rem 1rem;
        text-align: center;
    }
    
    .hero-container{
        display:flex;             /* swap the 1-column grid for flex */
        flex-direction:column;
        align-items:center;       /* horizontal centering */
        justify-content:center;   /* optional but keeps nice vertical balance */
        width:100%;
        margin:0 auto;            /* centers the block itself */
    }
    
    /* Fix hero content alignment */
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        z-index: 1;
    }
    
    h1 {
        font-size: 2.5rem;
        text-align: center;
        width: 100%;
    }
    
    /* Fix subtitle alignment and positioning */
    .hero-subtitle {
        font-size: 1.3rem;
        padding-left: 0;
        text-align: center;
        position: relative;
        width: 100%;
        margin: 0 auto 1.5rem auto;
    }
    
    /* Center the quote mark */
    .hero-subtitle::before {
        left: 50%;
        transform: translateX(-50%);
        top: -2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        text-align: center;
        max-width: 100%;
        margin: 0 auto 2.5rem auto;
    }
    
    /* Mobile organic design */
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 15px auto;
    }
    
    .image-background {
        width: 320px;
        height: 400px;
        border-radius: 90px 30px 90px 30px;
    }
    
    .image-background::after {
        border-radius: 94px 34px 94px 34px;
    }
    
    .image-frame {
        max-width: 400px;
        height: 380px;
        transform: rotate(0deg); /* Keep straight on mobile */
        border-radius: 80px 25px 80px 25px;
    }
    
    .image-frame::after {
        border-radius: 83px 28px 83px 28px;
    }
    
    /* Keep some decorative elements on mobile for visual interest */
    .element-1 {
        width: 50px;
        height: 70px;
        top: 5%;
        left: -4%;
        border-radius: 35px 12px 35px 12px;
    }
    
    .element-1::after {
        border-radius: 37px 14px 37px 14px;
    }
    
    .element-2 {
        width: 40px;
        height: 55px;
        bottom: 10%;
        right: -5%;
        border-radius: 25px 8px 25px 8px;
    }
    
    .element-2::after {
        border-radius: 27px 10px 27px 10px;
    }
    
    .element-3 {
        display: none; /* Hide smallest element on mobile */
    }
    
    /* Hide or minimize new left-side elements on mobile for cleaner look */
    .element-4 {
        width: 80px;
        height: 100px;
        left: -15%;
        top: 10%;
        opacity: 0.4;
        border-radius: 50px 18px 50px 18px;
    }
    
    .element-4::after {
        border-radius: 52px 20px 52px 20px;
    }
    
    .element-5 {
        display: none; /* Hide on mobile to reduce clutter */
    }
    
    .element-6 {
        display: none; /* Hide on mobile to reduce clutter */
    }
    
    /* Fix button alignment */
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 280px;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }
}

/************************************************************************************/
/************************************************************************************/

/* Complete updated CSS for the commitment section */
.commitment-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8fcff 0%, #f1f8ff 50%, #ecf7f0 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Background decorative elements */
.commitment-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(200, 230, 255, 0.2) 0%, 
        rgba(180, 220, 240, 0.1) 40%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.commitment-section::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        rgba(200, 255, 220, 0.15) 0%, 
        rgba(180, 240, 200, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 12s ease-in-out infinite reverse;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    justify-content: center;
}

@media (max-width: 1024px) {
    /* Reduce gap between columns on tablet to prevent edge spacing issues */
    .content-container {
        gap: 2.5rem;
    }
    
    .info-box {
        width: 100%;
    }
}

/* Left column with doctor image and info box */
.image-column {
    position: relative;
    animation: slideInLeft 0.8s ease-out both;
}

.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 70px; /* Space for info box */
    z-index: 1;
}

/* Main organic background shape with subtle, consistent coloring */
.image-background.commitment-bg {
    position: absolute;
    width: 480px;
    height: 580px;
    background: #fff;
    z-index: 1;
    animation: gentle-float 8s ease-in-out infinite;
    /* Organic asymmetric border-radius */
    border-radius: 140px 50px 140px 50px;
    transform: rotate(-10deg);
    box-shadow: 0 25px 60px rgba(180, 220, 240, 0.2);
}

/* Subtle gradient border matching reference colors */
.image-background.commitment-bg::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: -4px;
    bottom: -4px;
    border-radius: 144px 54px 144px 54px;
    background: linear-gradient(135deg, 
        rgba(180, 220, 240, 0.4) 0%,     /* Muted light blue */
        rgba(200, 230, 245, 0.3) 30%,    /* Very soft blue */
        rgba(200, 240, 220, 0.3) 70%,    /* Very soft green */
        rgba(180, 230, 200, 0.4) 100%);  /* Muted light green */
    z-index: -1;
}

/* Doctor image container with subtle gradient border */
.image-frame.commitment-frame {
    position: relative;
    z-index: 3;
    width: 600px;
    height: 550px;
    overflow: hidden;
    border-radius: 120px 40px 120px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12),
        0 15px 40px rgba(180, 220, 240, 0.15);
    background: #fff;
    transform: rotate(0deg);
}

/* Subtle gradient border effect for doctor image */
.image-frame.commitment-frame::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: -3px;
    bottom: -3px;
    border-radius: 123px 43px 123px 43px;
    background: linear-gradient(135deg, 
        rgba(180, 220, 240, 0.4) 0%, 
        rgba(200, 230, 245, 0.5) 30%,
        rgba(200, 240, 220, 0.4) 70%,
        rgba(180, 230, 200, 0.5) 100%);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Doctor placeholder image styling */
.doctor-placeholder {
    width: 100%;
    height: 100%;
    background: #4285F4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.placeholder-text {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.placeholder-subtext {
    font-size: 1rem;
    opacity: 0.8;
}

/* Floating decorative elements */
.commitment-element-1 {
    width: 80px;
    height: 110px;
    top: 10%;
    right: -5%;
    border-radius: 50px 18px 50px 18px;
    transform: rotate(-20deg);
    animation: gentle-float 7s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.1);
    position: absolute;
    background: #fff;
    z-index: 2;
}

.commitment-element-1::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border-radius: 52px 20px 52px 20px;
    background: linear-gradient(135deg, 
        rgba(100, 181, 246, 0.4) 0%, 
        rgba(144, 202, 249, 0.3) 100%);
    z-index: -1;
}

.commitment-element-2 {
    width: 60px;
    height: 80px;
    bottom: 20%;
    left: -5%;
    border-radius: 35px 12px 35px 12px;
    transform: rotate(25deg);
    animation: gentle-float 9s ease-in-out infinite reverse;
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.08);
    position: absolute;
    background: #fff;
    z-index: 2;
}

.commitment-element-2::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border-radius: 37px 14px 37px 14px;
    background: linear-gradient(135deg, 
        rgba(129, 199, 132, 0.4) 0%, 
        rgba(165, 214, 167, 0.3) 100%);
    z-index: -1;
}

.commitment-element-3 {
    width: 40px;
    height: 55px;
    top: 50%;
    right: 10%;
    border-radius: 25px 8px 25px 8px;
    transform: rotate(-15deg);
    animation: gentle-float 6s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.06);
    position: absolute;
    background: #fff;
    z-index: 2;
}

.commitment-element-3::after {
    content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    top: -1px;
    bottom: -1px;
    border-radius: 26px 9px 26px 9px;
    background: linear-gradient(135deg, 
        rgba(102, 187, 106, 0.3) 0%, 
        rgba(100, 181, 246, 0.25) 100%);
    z-index: -1;
}

/* Info box styling */
.info-box {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: #4285F4;
    color: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.25);
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    flex-direction: row;
    justify-content: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    margin-right: 15px;
}

.info-box h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-box p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Content column styling */
.content-column {
    max-width: 100%;
    z-index: 2;
    animation: slideInRight 0.8s ease-out both;
}

.content-column h2 {
    font-size: 2.8rem;
    color: #1565C0;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.4rem;
    color: #1976D2;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.section-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.commitment-doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.08) saturate(1.05) brightness(1.02);
}

.image-frame.commitment-frame:hover .commitment-doctor-image {
    filter: contrast(1.1) saturate(1.08) brightness(1.03);
    transform: scale(1.02);
}

/* Mobile responsive design - FIXED for proper overlapping */
@media (max-width: 768px) {
    .commitment-section {
        padding: 4rem 1.5rem 8rem; /* Increased bottom padding to accommodate overlapping elements */
    }
    
    .content-container {
        flex-wrap: wrap;
        gap: unset;
    }
    
    .content-column {
        order: 1;
    }
    
    .image-column {
        order: 2;
        margin-top: 2rem;
        /* Preserved for the overlapping info box */
        position: relative;
        margin-bottom: 4rem;
    }
    
    .image-wrapper {
        /* Maintain relative positioning for mobile */
        position: relative;
        margin-bottom: 70px;
    }
    
    .image-background.commitment-bg {
        width: 320px;
        height: 400px;
        border-radius: 90px 30px 90px 30px;
    }
    
    .image-frame.commitment-frame {
        max-width: 500px;
        max-height: 380px;
        border-radius: 80px 25px 80px 25px;
        background-position: top;
        width: 100%;
        z-index: 10;
    }
    
    /* CRITICAL FIX: Maintain absolute positioning for proper overlapping on mobile */
    .info-box {
        position: absolute;
        bottom: -35%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%; /* Made consistent with desktop */
        max-width: 350px;
        padding: 1.5rem;
    }

    .info-box h3 {
        width: 70%;
    }
    
    .commitment-element-1 {
        width: 50px;
        height: 70px;
        top: 5%;
        right: 0;
    }
    
    .commitment-element-2 {
        width: 40px;
        height: 55px;
        bottom: 25%;
        left: 0;
    }
    
    .commitment-element-3 {
        display: none; /* Hide on mobile */
    }
}

@media (max-width: 1024px) {
    .info-box {
        width: 100%;
    }
}

/****************************************************************/
/****************************************************************/

/* Our Model Section Styles */
.model-section {
    padding: 2rem 2rem 8rem 2rem;
    background: linear-gradient(135deg, #f8fcff 0%, #f1f8ff 50%, #ecf7f0 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Background decorative elements */
.model-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(200, 230, 255, 0.2) 0%, 
        rgba(180, 220, 240, 0.1) 40%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.model-section::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        rgba(200, 255, 220, 0.15) 0%, 
        rgba(180, 240, 200, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 12s ease-in-out infinite reverse;
}

/* Tablet layout adjustments */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .model-section .content-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .model-section .content-column {
        order: 1; /* Text first */
    }
    
    .model-section .model-graphic {
        order: 2; /* Chart second */
    }
}

/* Feature list styling */
.model-features {
    margin-top: 2rem;
}

.model-features h3 {
    font-size: 1.3rem;
    color: #1565c0;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-dot {
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    border-radius: 50%;
}

.model-conclusion {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2e7d32;
    margin-top: 2rem;
    font-style: italic;
}

/* Chart styling - based on the provided CSS */
.model-graphic {
    margin: 0 auto;
    text-align: center;
    position: relative;
    animation: slideInRight 0.8s ease-out both;
}

.model-graphic h3 {
    margin: 0 0 1.5rem 0;
    font-weight: 600;
    font-family: inherit;
    font-size: 2.2rem;
    line-height: 1.4;
    color: #325643;
}

.chart {
    margin: 32px auto 0;
    width: 573px;
    height: 573px;
    position: relative;
}

.chart .chart-bg,
.chart .chart-middle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.chart .chart-middle {
    top: 49%;
}

.chart .chart-middle {
    width: 42%;
    height: 42%;
    background-image: url(assets/doctor-patient.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Chart element positioning */
.chart-1,
.chart-2,
.chart-3,
.chart-4,
.chart-5,
.chart-6 {
    position: absolute;
    z-index: 2;
    width: 50px;
    height: 50px;
}

.chart-1 span,
.chart-2 span,
.chart-3 span,
.chart-4 span,
.chart-5 span,
.chart-6 span {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    font-size: 14px;
    line-height: 130%;
    color: #6d6e70;
    width: 132px;
    display: block;
    font-weight: 600;
}

/* Custom icons for each chart element */
.chart-1 {
    width: 51px;
    height: 44px;
    top: 30px;
    left: 260px;
    background-image: url(assets/model-icon-1.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.chart-2 {
    width: 50px;
    height: 50px;
    top: 128px;
    right: 86px;
    background-image: url(assets/model-icon-2.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.chart-3 {
    width: 50px;
    height: 50px;
    bottom: 203px;
    right: 90px;
    background-image: url(assets/model-icon-3.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.chart-4 {
    width: 51px;
    height: 48px;
    bottom: 90px;
    left: 262px;
    background-image: url(assets/model-icon-4.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.chart-5 {
    width: 51px;
    height: 50px;
    left: 95px;
    bottom: 203px;
    background-image: url(assets/model-icon-5.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.chart-6 {
    width: 51px;
    height: 48px;
    top: 138px;
    left: 90px;
    background-image: url(assets/model-icon-6.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mobile plus buttons */
.model-plus {
    display: none;
}

/* Smooth entrance animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Responsive styles for tablets */
@media print, screen and (min-width: 1024px) {
    .model-graphic {
        margin: 0;
        top: 2rem;
    }
}

/* Mobile responsive design */
@media screen and (max-width: 768px) {
    
    .model-graphic {
        order: 2;
        top: 2rem;
    }
    
    .chart {
        width: 338px;
        height: 338px;
    }
    
    .chart span {
        display: none;
    }
    
    .chart svg {
        width: 394px;
        height: 394px;
    }
    
    .chart-1 {
        width: 40px;
        height: 33px;
        top: 42px;
        left: 148px;
    }
    
    .chart-2 {
        top: 96px;
        width: 40px;
        height: 40px;
        right: 50px;
    }
    
    .chart-3 {
        width: 40px;
        height: 40px;
        bottom: 99px;
        right: 42px;
    }
    
    .chart-4 {
        width: 41px;
        height: 40px;
        bottom: 41px;
        left: 149px;
    }
    
    .chart-5 {
        width: 40px;
        height: 40px;
        bottom: 99px;
        left: 46px;
    }
    
    .chart-6 {
        width: 40px;
        height: 40px;
        top: 96px;
        left: 46px;
    }

    /* Show mobile plus buttons on small screens */
    .model-plus {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        width: 24px;
        height: 24px;
        background: transparent;
        border: none;
        padding: 0;
        z-index: 25;
        cursor: pointer;
    }
    
    .model-plus.is-active {
        z-index: 28;
    }
    
    .model-plus.is-active svg {
        transform: rotate(45deg);
    }
    
    .model-plus svg {
        width: 24px;
        height: 24px;
        display: block;
    }
    
    .model-plus svg circle {
        transition: opacity .4s ease;
    }
    
    .model-plus:hover svg circle {
        opacity: 1;
    }
    
    .plus-1 {
        left: 157px;
        top: 7px;
    }

    .plus-2 {
        left: 287px;
        top: 82px;
    }

    .plus-3 {
        left: 287px;
        top: 232px;
    }

    .plus-4 {
        left: 157px;
        top: 307px;
    }

    .plus-5 {
        left: 27px;
        top: 232px;
    }

    .plus-6 {
        left: 27px;
        top: 82px;
    }
    
    .model-plus span {
        position: absolute;
        background: #0080b8;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
        font-size: 1.0rem;
        line-height: 1.28571;
        color: #fff;
        text-align: center;
        width: 188px;
        pointer-events: none;
    }
    
    .model-plus span:after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border-style: solid;
    }
    
    .plus-1 span {
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
    }
    
    .plus-1 span:after {
        top: calc(100% - 1px);
        left: 50%;
        transform: translateX(-50%);
        border-width: 15px 13.5px 0;
        border-color: #0080b8 transparent transparent;
    }
    
    .plus-2 span {
        left: 50%;
        transform: translateX(-60%);
        bottom: calc(100% + 8px);
    }
    
    .plus-2 span:after {
        left: 60%;
        top: calc(100% - 1px);
        transform: translateX(-50%);
        border-width: 15px 13.5px 0;
        border-color: #0080b8 transparent transparent;
    }
    
    .plus-3 span {
        left: 50%;
        transform: translateX(-60%);
        top: calc(100% + 8px);
    }
    
    .plus-3 span:after {
        left: 60%;
        bottom: calc(100% - 1px);
        transform: translateX(-50%);
        border-width: 0 13.5px 15px;
        border-color: transparent transparent #0080b8;
    }
    
    .plus-4 span {
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
    }
    
    .plus-4 span:after {
        bottom: calc(100% - 1px);
        left: 50%;
        transform: translateX(-50%);
        border-width: 0 13.5px 15px;
        border-color: transparent transparent #0080b8;
    }
    
    .plus-5 span {
        right: 50%;
        transform: translateX(60%);
        top: calc(100% + 8px);
    }
    
    .plus-5 span:after {
        right: 60%;
        bottom: calc(100% - 1px);
        transform: translateX(50%);
        border-width: 0 13.5px 15px;
        border-color: transparent transparent #0080b8;
    }
    
    .plus-6 span {
        right: 50%;
        transform: translateX(60%);
        bottom: calc(100% + 8px);
    }
    
    .plus-6 span:after {
        right: 60%;
        top: calc(100% - 1px);
        transform: translateX(50%);
        border-width: 15px 13.5px 0;
        border-color: #0080b8 transparent transparent;
    }
}

/****************************************************************/
/****************************************************************/

/* Our Team Section Styles - Matching exact screenshot layout */
.team-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fcff 0%, #f1f8ff 50%, #ecf7f0 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Background decorative elements - reusing existing pattern */
.team-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(200, 230, 255, 0.2) 0%, 
        rgba(180, 220, 240, 0.1) 40%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.team-section::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        rgba(200, 255, 220, 0.15) 0%, 
        rgba(180, 240, 200, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 12s ease-in-out infinite reverse;
}

/* Main team wrapper - side by side layout */
.team-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

/* Left side - Team introduction (sticky) */
.team-intro {
    flex: 0 0 400px;
    position: sticky;
    top: 120px;
    animation: slideInLeft 0.8s ease-out both;
}

.team-intro h1 {
    font-size: 3.5rem;
    color: #2e7d32;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.team-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* Right side - Team members grid */
.team-members {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    animation: slideInRight 0.8s ease-out both;
}

/* Founder member - spans full width, horizontal layout */
.founder-member {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(200, 230, 255, 0.2);
    margin-bottom: 1rem;
    /* Horizontal layout: photo right, info left */
    display: flex;
    align-items: center;
    gap: 2rem;
}

.founder-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(66, 133, 244, 0.3);
}

/* Regular team member cards - horizontal layout like screenshot */
.team-member {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(200, 230, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* CRITICAL: Horizontal layout - photo right, info left */
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 140px;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(66, 133, 244, 0.3);
}

/* Member info section - LEFT side of card */
.member-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-info h3 {
    font-size: 1.3rem;
    color: #1565c0;
    margin-bottom: 0.3rem;
    font-weight: 600;
    line-height: 1.2;
}

.member-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Member photo - RIGHT side of card */
.member-photo {
    flex-shrink: 0;
    order: 2; /* Ensures photo appears on the right */
}

.member-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.15);
}

.team-member:hover .member-photo img {
    border-color: #4285F4;
    transform: scale(1.05);
}

/* Founder gets larger photo */
.founder-member .member-photo img {
    width: 120px;
    height: 120px;
}

/* View Bio button - matching screenshot style */
.view-bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    background: transparent;
    color: #2e7d32;
    border: 2px solid #2e7d32;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.view-bio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    transition: width 0.3s ease;
    z-index: -1;
}

.view-bio-btn:hover::before {
    width: 100%;
}

.view-bio-btn:hover {
    color: white;
    border-color: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.3);
}

.bio-icon {
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.view-bio-btn.active .bio-icon {
    transform: rotate(45deg);
}

/* Bio Modal Styles */
.bio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.bio-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    z-index: 2;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bio-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: #fff;
    color: #333;
    transform: scale(1.1);
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #f8fcff 0%, #f1f8ff 100%);
}

.modal-person-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.2);
}

.modal-person-info h2 {
    font-size: 1.8rem;
    color: #1565c0;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.modal-person-title {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.modal-body {
    padding: 2rem;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-bio-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.modal-bio-content p:last-child {
    margin-bottom: 0;
}

.modal-bio-content strong {
    color: #1565c0;
    font-weight: 600;
}

/* Custom scrollbar for modal content */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4285F4;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

/* Animation classes for scroll effects */
.team-member {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.team-member.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design for tablets */
@media (max-width: 1024px) {
    .team-section {
        padding: 4rem 1.5rem; /* Reduced padding for more space */
    }
    
    .team-container {
        max-width: none; /* Remove max-width constraint */
        width: 100%;
        margin: 0;
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .team-intro {
        flex: none;
        position: static;
        text-align: center;
        width: 100%;
        max-width: none;
    }
    
    .team-intro h1 {
        font-size: 3rem;
    }
    
    /* Keep 2 columns on tablet - use full width */
    .team-members {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .founder-member {
        padding: 1.8rem;
        gap: 1.5rem;
        /* Keep horizontal layout on tablet */
        display: flex;
        align-items: center;
    }
    
    .team-member {
        padding: 1.3rem;
        gap: 1.2rem;
        /* Keep horizontal layout on tablet */
        display: flex;
        align-items: center;
        min-height: 120px;
    }
    
    .member-info {
        text-align: left;
    }
    
    .member-photo {
        order: 2; /* Keep photo on right */
    }
    
    .member-photo img {
        width: 90px;
        height: 90px;
    }
    
    .founder-member .member-photo img {
        width: 110px;
        height: 110px;
    }
}

/* Responsive design for small tablets */
@media (max-width: 900px) {
    .team-section {
        padding: 3rem 1rem; /* Further reduced padding */
    }
    
    .team-container {
        gap: 2rem;
    }
    
    .team-members {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .team-member {
        padding: 1.2rem;
        gap: 1rem;
    }
    
    .member-info h3 {
        font-size: 1.2rem;
    }
    
    .member-title {
        font-size: 0.9rem;
    }
    
    .member-photo img {
        width: 80px;
        height: 80px;
    }
    
    .founder-member .member-photo img {
        width: 100px;
        height: 100px;
    }
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .team-section {
        padding: 2.5rem 0.8rem; /* Minimal padding for full width */
    }
    
    .team-container {
        width: 100%;
        max-width: none;
        margin: 0;
        gap: 1.5rem;
    }
    
    .team-intro {
        padding: 0 0.5rem; /* Minimal side padding */
    }
    
    .team-intro h1 {
        font-size: 2.5rem;
    }
    
    .team-subtitle {
        font-size: 1.1rem;
    }
    
    .team-description {
        font-size: 1rem;
    }
    
    /* Single column layout on mobile - use full width */
    .team-members {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .founder-member {
        padding: 1.2rem;
        gap: 1rem;
        /* KEEP horizontal layout on mobile - text left, photo right */
        display: flex;
        align-items: center;
        min-height: 100px;
    }
    
    .team-member {
        padding: 1rem;
        gap: 1rem;
        /* KEEP horizontal layout on mobile - text left, photo right */
        display: flex;
        align-items: center;
        min-height: 100px;
    }
    
    /* Ensure photo stays on right side on mobile */
    .member-photo {
        order: 2;
        flex-shrink: 0;
    }
    
    /* Text content stays on left and is left-aligned */
    .member-info {
        flex: 1;
        text-align: left;
    }
    
    .member-photo img {
        width: 70px;
        height: 70px;
    }
    
    .founder-member .member-photo img {
        width: 85px;
        height: 85px;
    }
    
    .member-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .member-title {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .view-bio-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    /* Mobile modal adjustments */
    .bio-modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 90vh;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .modal-person-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-person-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: 60vh;
    }
    
    .modal-bio-content p {
        font-size: 0.9rem;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: 0.8rem;
        right: 0.8rem;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .team-section {
        padding: 2rem 0.5rem; /* Absolute minimal padding */
    }
    
    .team-container {
        width: 100%;
        margin: 0;
    }
    
    .team-intro {
        padding: 0 0.2rem;
    }
    
    .team-intro h1 {
        font-size: 2.2rem;
    }
    
    .team-subtitle {
        font-size: 1rem;
    }
    
    .team-description {
        font-size: 0.95rem;
    }
    
    .founder-member {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .team-member {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .member-photo img {
        width: 65px;
        height: 65px;
    }
    
    .founder-member .member-photo img {
        width: 75px;
        height: 75px;
    }
    
    .member-info h3 {
        font-size: 1rem;
    }
    
    .member-title {
        font-size: 0.8rem;
    }
    
    .view-bio-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/****************************************************************/
/****************************************************************/

/* Contact Us Section Styles */
.contact-section {
    padding: 2rem 2rem 4rem 2rem;
    background: linear-gradient(135deg, #f8fcff 0%, #f1f8ff 50%, #ecf7f0 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Contact section exclusive container - no shared layout classes */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Base layout ordering - heading always appears first */
.contact-heading-section {
    order: 1;
    width: 100%;
}

/* Background decorative elements */
.contact-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, 
        rgba(200, 230, 255, 0.2) 0%, 
        rgba(180, 220, 240, 0.1) 40%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, 
        rgba(200, 255, 220, 0.15) 0%, 
        rgba(180, 240, 200, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 12s ease-in-out infinite reverse;
}

/* Separate heading section - appears above everything on mobile/tablet */
.contact-heading-section {
    text-align: left; /* Left-aligned text */
    z-index: 5;
    position: relative;
    order: 1; /* Always appears first */
    width: 100%;
    max-width: 1200px; /* Match content width */
    align-self: flex-start; /* Align to left side of container */
}

/* Content wrapper - default behavior */
.contact-content-wrapper {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 5rem;
    align-items: center;
    justify-content: center;
}

/* Left column with doctor image and contact info */
.contact-image-column {
    position: relative;
    animation: slideInLeft 0.8s ease-out both;
}

.contact-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 70px; /* Space for contact info box */
    z-index: 1;
}

/* Main organic background shape */
.image-background.contact-bg {
    position: absolute;
    width: 480px;
    height: 580px;
    background: #fff;
    z-index: 1;
    animation: gentle-float 8s ease-in-out infinite;
    border-radius: 140px 50px 140px 50px;
    transform: rotate(-10deg);
    box-shadow: 0 25px 60px rgba(180, 220, 240, 0.2);
}

.image-background.contact-bg::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: -4px;
    bottom: -4px;
    border-radius: 144px 54px 144px 54px;
    background: linear-gradient(135deg, 
        rgba(180, 220, 240, 0.4) 0%,     
        rgba(200, 230, 245, 0.3) 30%,    
        rgba(200, 240, 220, 0.3) 70%,    
        rgba(180, 230, 200, 0.4) 100%);  
    z-index: -1;
}

/* Doctor image container */
.image-frame.contact-frame {
    position: relative;
    z-index: 3;
    width: 600px;
    height: 550px;
    overflow: hidden;
    border-radius: 120px 40px 120px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12),
        0 15px 40px rgba(180, 220, 240, 0.15);
    background: #fff;
    transform: rotate(0deg);
}

.image-frame.contact-frame::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -3px;
    top: -3px;
    bottom: -3px;
    border-radius: 123px 43px 123px 43px;
    background: linear-gradient(135deg, 
        rgba(180, 220, 240, 0.4) 0%, 
        rgba(200, 230, 245, 0.5) 30%,
        rgba(200, 240, 220, 0.4) 70%,
        rgba(180, 230, 200, 0.5) 100%);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.08) saturate(1.05) brightness(1.02);
}

/* Floating decorative elements */
.contact-element-1 {
    width: 80px;
    height: 110px;
    top: 10%;
    right: -5%;
    border-radius: 50px 18px 50px 18px;
    transform: rotate(-20deg);
    animation: gentle-float 7s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.1);
    position: absolute;
    background: #fff;
    z-index: 2;
}

.contact-element-1::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border-radius: 52px 20px 52px 20px;
    background: linear-gradient(135deg, 
        rgba(100, 181, 246, 0.4) 0%, 
        rgba(144, 202, 249, 0.3) 100%);
    z-index: -1;
}

.contact-element-2 {
    width: 60px;
    height: 80px;
    bottom: 20%;
    left: -5%;
    border-radius: 35px 12px 35px 12px;
    transform: rotate(25deg);
    animation: gentle-float 9s ease-in-out infinite reverse;
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.08);
    position: absolute;
    background: #fff;
    z-index: 2;
}

.contact-element-2::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border-radius: 37px 14px 37px 14px;
    background: linear-gradient(135deg, 
        rgba(129, 199, 132, 0.4) 0%, 
        rgba(165, 214, 167, 0.3) 100%);
    z-index: -1;
}

.contact-element-3 {
    width: 40px;
    height: 55px;
    top: 50%;
    right: 10%;
    border-radius: 25px 8px 25px 8px;
    transform: rotate(-15deg);
    animation: gentle-float 6s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.06);
    position: absolute;
    background: #fff;
    z-index: 2;
}

.contact-element-3::after {
    content: '';
    position: absolute;
    left: -1px;
    right: -1px;
    top: -1px;
    bottom: -1px;
    border-radius: 26px 9px 26px 9px;
    background: linear-gradient(135deg, 
        rgba(102, 187, 106, 0.3) 0%, 
        rgba(100, 181, 246, 0.25) 100%);
    z-index: -1;
}

/* Contact info box styling */
.contact-info-box {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: #4285F4;
    color: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.25);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-content {
    flex: 1;
}

.contact-method {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.contact-email {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Contact form column styling - no longer contains headings */
.contact-form-column {
    max-width: 100%;
    z-index: 2;
    animation: slideInRight 0.8s ease-out both;
}

/* Remove heading styles from form column */
.contact-form-column h1,
.contact-form-column .hero-subtitle {
    display: none;
}

/* Contact form styling */
.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(200, 230, 255, 0.3);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4285F4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Single column form group for company and message */
.form-group:has(#company),
.form-group:has(#message) {
    grid-column: 1 / -1;
}

/* Submit button styling */
.contact-submit {
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form messages */
.form-message {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.form-message.show {
    opacity: 1;
    visibility: visible;
    max-height: 100px; /* Adjust based on your content */
    transform: translateY(0);
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Form messages container - ensures consistent spacing */
.form-messages-container {
    min-height: 0; /* Prevent layout shift when messages appear */
}



/* Desktop layout - above 1200px */
@media (min-width: 1201px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start; /* Align items to the left */
        max-width: 1400px;
    }
    
    .contact-heading-section {
        order: 1;
        text-align: left; /* Keep left-aligned */
        align-self: flex-start;
    }
    
    .contact-content-wrapper {
        display: flex;
        flex-direction: row;
        gap: 5rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .contact-image-column {
        flex: 0 0 auto;
        order: 1; /* Image on left */
    }
    
    .contact-form-column {
        flex: 1;
        order: 2; /* Form on right */
        max-width: 100%;
    }
    
    /* Original 2-column form layout for desktop */
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Responsive design for medium tablets - 769px to 1200px */
@media (max-width: 1200px) and (min-width: 769px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
        max-width: 1200px;
    }
    
    .contact-heading-section {
        order: 1; /* Heading appears first */
        text-align: left; /* Keep left-aligned */
        margin-bottom: 2rem;
        align-self: flex-start;
    }
    
    .contact-heading-section h1 {
        font-size: 2.4rem;
    }
    
    .contact-heading-section .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .contact-heading-section {
        order: 1;
        text-align: left;
        margin-bottom: 2rem;
        align-self: flex-start;
    }
    
    .contact-image-column {
        flex: 0 0 45%; /* Image takes 45% width */
        order: 1; /* Image on left */
    }
    
    .contact-form-column {
        flex: 1; /* Form takes remaining width */
        order: 2; /* Form on right */
    }
    
    /* Single column form layout for better fit - THIS IS KEY */
    .form-row {
        grid-template-columns: 1fr !important; /* Force single column */
        gap: 1.2rem;
    }
    
    .contact-form {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    /* Adjust image sizes for better proportion */
    .image-background.contact-bg {
        width: 380px;
        height: 460px;
    }
    
    .image-frame.contact-frame {
        max-width: 450px;
        max-height: 420px;
    }
    
    .contact-info-box {
        max-width: 380px;
    }
}

/* Mobile responsive design - below 768px */
@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 1rem 4rem 1rem;
    }
    
    .contact-container {
        flex-direction: column; /* Stack vertically on mobile */
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .contact-heading-section {
        order: 1; /* Heading appears first */
        text-align: center; /* Center on mobile for better readability */
        margin-bottom: 2rem; /* Increased margin to prevent overlap */
        align-self: center; /* Center the heading section on mobile */
    }
    
    .contact-content-wrapper {
        order: 2;
        flex-direction: column; /* Stack image and form vertically */
        gap: 2rem;
    }
    
    .contact-image-column {
        order: 1; /* Image first within content wrapper */
        margin-bottom: 3rem;
    }
    
    .contact-form-column {
        order: 2; /* Form second within content wrapper */
        width: 100%;
    }
    
    .contact-image-wrapper {
        position: relative;
        margin-bottom: 70px;
    }
    
    .image-background.contact-bg {
        width: 280px;
        height: 360px;
        border-radius: 90px 30px 90px 30px;
    }
    
    .image-frame.contact-frame {
        max-width: 100%;
        width: 320px;
        max-height: 340px;
        border-radius: 80px 25px 80px 25px;
    }
    
    .contact-info-box {
        position: absolute;
        bottom: -15%;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 320px;
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contact-element-1 {
        width: 45px;
        height: 60px;
        top: 5%;
        right: 5%;
    }
    
    .contact-element-2 {
        width: 35px;
        height: 50px;
        bottom: 25%;
        left: 5%;
    }
    
    .contact-element-3 {
        display: none;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }
    
    /* Single column on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
        border-radius: 6px;
    }
    
    .contact-submit {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
}

/****************************************************************/
/****************************************************************/

/* Footer Section Styles */
.footer-section {
    background: linear-gradient(135deg, #f8fcff 0%, #f1f8ff 50%, #ecf7f0 100%);
    color: #333;
    padding: 3rem 2rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(200, 230, 255, 0.3);
}

/* Subtle background decorative elements */
.footer-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(200, 230, 255, 0.1) 0%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.footer-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, 
        rgba(200, 255, 220, 0.1) 0%, 
        transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Footer brand section */
.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 8px;
}

.footer-logo-fallback {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4db6ac, #26a69a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-logo-text .logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1565c0;
    background: linear-gradient(135deg, #1565c0, #2e7d32);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo-text .logo-sub {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #1565c0;
    background: linear-gradient(135deg, #1565c0, #2e7d32);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Footer sections */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1565c0;
}

.footer-email {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(200, 230, 255, 0.3);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.footer-legal-link {
    color: #1565c0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-legal-link:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* Move to Top Button */
.move-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.move-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.move-to-top:hover {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.4);
}

.move-to-top:active {
    transform: translateY(-1px);
}

.move-to-top svg {
    transition: transform 0.3s ease;
}

.move-to-top:hover svg {
    transform: translateY(-2px);
}

/* Mobile responsive design for footer */
@media (max-width: 768px) {
    .footer-section {
        padding: 2.5rem 1rem 1.5rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .move-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* Medium tablet responsive design for footer */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        max-width: 350px;
    }
}

/****************************************************************/
/****************************************************************/