/* Base Styles */
:root {
    --primary-color: #3C9C8B;
    --primary-hover: #2E7D6F;
    --secondary-color: #1F4E2E;
    --accent-color: #3C9C8B;
    --text-color: #1F2937;
    --text-secondary: #4B5563;
    --light-text: #6B7280;
    --light-bg: #F9FAFB;
    --white: #FFFFFF;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --header-height: 85px;
    --section-padding: 80px 0;
    --container-width: 1280px;
}

/* Services Listing Page */
.services-hero {
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.25), transparent 60%);
    pointer-events: none;
}

.services-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero h1 {
    font-size: 48px;
    max-width: 720px;
}

.services-hero p {
    max-width: 640px;
    font-size: 18px;
    color: var(--text-secondary);
}

.services-hero .hero-buttons {
    margin-top: 32px;
}

.services-metrics {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.services-metrics .stat {
    flex: 1;
    min-width: 220px;
}

.service-categories {
    padding: 72px 0;
    background: var(--white);
}

.service-categories .section-header {
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-pill {
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--light-bg);
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

.services-detailed {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.services-detailed .service-card {
    padding: 32px;
    border-radius: 20px;
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.service-card-header i {
    font-size: 32px;
    color: var(--primary-color);
}

.service-features {
    margin: 20px 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.service-features li {
    margin-bottom: 8px;
}

.service-cta {
    padding: 80px 0;
    background: linear-gradient(120deg, #3C9C8B, #1F4E2E);
    color: var(--white);
}

.service-cta h2,
.service-cta p,
.service-cta .eyebrow {
    color: var(--white);
}

.service-cta .eyebrow {
    opacity: 0.85;
}

.service-cta .cta-actions .btn.btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.service-cta .cta-actions .btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.service-steps {
    padding: 72px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-card p {
    margin: 0;
}

@media (max-width: 992px) {
    .services-hero h1 {
        font-size: 40px;
    }

    .services-metrics {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .services-hero {
        padding: calc(var(--header-height) + 60px) 0 60px;
    }

    .services-metrics {
        flex-direction: column;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    text-align: center;
    margin-bottom: 16px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 16px;
}

h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 8px;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 24px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

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

ul {
    list-style: none;
}

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

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
    display: inline-block;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

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

/* Mobile Menu Toggle - Refactored */
.mobile-menu-toggle {
    display: none;
    /* Hidden on Desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    /* Higher than nav */
    margin-left: auto;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

.mobile-menu-toggle:hover span {
    background-color: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Navigation - Mobile Drawer */
@media (max-width: 1024px) {

    /* Show Toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Hide Desktop Button in Header if inside container logic */
    .header-content>.btn-primary {
        display: none;
    }

    /* Mobile Nav Drawer */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        /* Standard sidebar width */
        height: 100vh;
        background: var(--white);
        padding: 80px 24px 24px;
        /* Space for top header */
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        /* High z-index */
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    /* Nav Links in Drawer */
    .main-nav ul {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 1.1rem;
        color: var(--text-color);
        background: transparent;
        border: 1px solid transparent;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: var(--light-bg);
        color: var(--primary-color);
        border-color: rgba(0, 0, 0, 0.05);
    }

    .main-nav a::after {
        display: none;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 2px;
    /* Visual adjustment */
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    border-radius: 50px;
    /* Fully rounded corners */
    transition: all 0.3s ease;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    /* Fully rounded corners */
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Mobile Helper */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        /* Smaller header on mobile */
    }
}

/* Header Styles */
.logo {
    display: flex;
    align-items: center;
    z-index: 1000;
}

/* Main logo - original color */
.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.scroll-up {
    transform: translateY(0);
}

.header.scroll-down {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 20px;
}



/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    /* Removed padding to let slides fill space */
    background: transparent;
    /* Removed default bg so slides control it */
    overflow: hidden;
    isolation: isolate;
    margin-top: 50px;
    /* Added spacing as requested */
}

@media (max-width: 768px) {
    .hero {
        margin-top: 0 !important;
        /* Force remove extra margin on mobile */
        padding-top: 0 !important;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.hero-content {
    max-width: 592px;
    position: relative;
    z-index: 2;
    padding-right: 40px;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #111827;
    background: linear-gradient(to right, #111827, #4B5563);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content .lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero-image {
    flex: 1;
    max-width: 600px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transform: translateX(20px);
    aspect-ratio: 16/9;
    /* Maintain aspect ratio */
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    transform-origin: center;
}

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

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    z-index: 1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hero Carousel - Split Layout Refined */
.slide-split {
    background: #f8fafc;
    /* Light Gray Background matching image */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Full viewport height for better impact */
    padding-top: var(--header-height);
    /* Clear fixed header */
}

@media (max-width: 768px) {
    .slide-split {
        min-height: auto;
        padding-top: var(--header-height);
        /* Strict padding, no extra space */
        height: auto;
    }
}

/* Container Wrapper */
.slide-inner-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    /* More gap between text and image */
    width: 100%;
    height: 100%;
    padding: 4rem 1rem;
}

@media (max-width: 768px) {
    .slide-inner-split {
        flex-direction: column;
        /* Stack vertically on mobile */
        padding: 2rem 1rem;
        justify-content: center;
        gap: 2rem;
    }
}

/* Left Content (Text) - Now on Right visually */
.split-content-left {
    flex: 1;
    text-align: left;
    z-index: 2;
    max-width: 600px;
    order: 2;
    /* Force Text to be Second (Right) */
}

@media (max-width: 768px) {
    .split-content-left {
        order: 2;
        /* Text below image on mobile */
        text-align: center !important;
        /* Center text on mobile */
        width: 100%;
    }

    .slide-title.text-dark,
    .slide-description.text-dark {
        text-align: center !important;
    }

    .slide-buttons.buttons-left {
        justify-content: center !important;
    }
}

/* Typography Overrides for Split Layout */
.slide-title.text-dark {
    color: #1e293b;
    text-shadow: none;
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: left !important;
    /* Force Left */
}

.slide-description.text-dark {
    color: #64748b;
    text-shadow: none;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
    text-align: left !important;
    /* Force Left */
}

/* Buttons Alignment */
.slide-buttons.buttons-left {
    display: flex;
    justify-content: flex-start !important;
    align-items: center;
    /* Prevent stretching */
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

/* Right Image (Now Left) */
.slide-image-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    /* Align image to start (left) */
    align-items: center;
    z-index: 2;
    order: 1;
    /* Force Image to be First (Left) */
}

@media (max-width: 768px) {
    .slide-image-right {
        order: 1;
        /* Image on top */
        width: 100%;
        justify-content: center;
    }

    .slide-image-right img {
        max-width: 100%;
        aspect-ratio: 16/9;
        /* Standard video ratio for mobile looks better usually */
    }
}

.slide-image-right img {
    width: 100%;
    max-width: 580px;
    /* Enforce 5:3 Aspect Ratio (Horizontal) as requested */
    aspect-ratio: 5/3;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    object-fit: cover;
    object-position: center;
}

/* Primary Hero Button */
.btn-primary-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    /* Prevent full width */
    max-width: fit-content;
    height: auto;
    line-height: normal;
    justify-content: center;
}

.btn-primary-hero:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

/* Secondary Button Outline (Matches Reference) */
.btn-secondary-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-outline:hover {
    background: #ecfdf5;
    /* Light green hover */
    color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary-hero {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-secondary-hero {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

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

/* Carousel Overlay for Standard Slides */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}


/* Mobile Adjustments for Carousel */
@media (max-width: 900px) {
    .slide-container-inner {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        gap: 2rem;
    }

    .split-content-left {
        text-align: center;
        padding: 0;
    }

    .slide-title {
        text-align: center !important;
        font-size: 2rem !important;
    }

    .slide-description {
        text-align: center !important;
    }

    .slide-buttons {
        justify-content: center !important;
    }

    .slide-image-right {
        max-width: 100%;
        width: 100%;
        margin-top: 1rem;
    }
}

/* Ensure Mobile Menu is visible */
.mobile-menu-toggle {
    z-index: 1005;
    /* Higher than header */
}

.main-nav {
    z-index: 1004;
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

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

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

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Responsive Hero Section */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .hero-image {
        max-width: 500px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: calc(var(--header-height) + 30px) 0 80px;
    }

    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-top: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 42px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .lead {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero::before {
        top: 20%;
        right: -30%;
        width: 150%;
        height: 150%;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: calc(var(--header-height) + 20px) 0 60px;
    }

    .hero-content h1 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero-content .lead {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: var(--white);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29-22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-29c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e0e7ff' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

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

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

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(30, 64, 175, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(30, 64, 175, 0.1), 0 10px 10px -5px rgba(30, 64, 175, 0.04);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--primary-color);
    font-size: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.1), 0 2px 4px -1px rgba(30, 64, 175, 0.06);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.service-card p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15.5px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card:hover p {
    color: var(--text-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    position: relative;
    width: fit-content;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.read-more i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.service-card:hover .read-more {
    color: var(--primary-hover);
}

.service-card:hover .read-more::after {
    width: 100%;
}

.service-card:hover .read-more i {
    transform: translateX(4px);
}

.services-actions {
    margin-top: 40px;
    text-align: center;
}

.services-actions .btn {
    min-width: 220px;
}

/* Doctors Section */
.doctors {
    padding: var(--section-padding);
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.doctors::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.15), transparent 55%);
    z-index: -1;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.doctor-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.12);
}

.doctor-photo {
    position: relative;
    padding-top: 140%;
    /* Increased to 140% to ensure heads are not cut off */
    overflow: hidden;
}

.doctor-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Ensure top alignment */
    transition: transform 0.4s ease;
}

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

.doctors-actions {
    margin-top: 40px;
    text-align: center;
}

.doctors-actions .btn {
    min-width: 220px;
}

.doctor-info {
    padding: 28px;
}

.doctor-info h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.doctor-specialty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.doctor-specialty::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 999px;
}

.doctor-info p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .doctor-info {
        padding: 24px;
    }
}

/* Doctors Listing Page */
.doctors-hero {
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 65%);
    position: relative;
    overflow: hidden;
}

.doctors-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.15), transparent 55%);
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.6fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 17px;
}

.eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.doctor-filters {
    padding: 48px 0;
    background: var(--white);
}

.filter-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-tag {
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.08);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.doctor-list {
    background: var(--light-bg);
    padding-bottom: 80px;
    /* Added spacing */
}

.doctors-grid--page {
    margin-top: 48px;
}

.doctor-cta {
    padding: 72px 0;
    background: linear-gradient(135deg, #1F4E2E, #3C9C8B);
    color: var(--white);
    margin-bottom: 50px;
    /* Added spacing */
}

.doctor-cta h2,
.doctor-cta p,
.doctor-cta .eyebrow {
    color: var(--white);
}

.doctor-cta .eyebrow {
    opacity: 0.8;
}

.cta-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.doctor-cta .btn.btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 40px;
    }
}

@media (max-width: 640px) {

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .doctor-filters {
        padding: 32px 0;
    }
}

/* Responsive Services Section */
@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .service-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 64px 0;
    }

    .service-card {
        padding: 28px 20px;
    }

    .service-card h3 {
        font-size: 20px;
    }
}

/* About Section */
.about {
    padding: var(--section-padding);
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29-22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-29c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e0e7ff' fill-opacity='0.5' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: -1;
}

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

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

.about-text {
    max-width: 100%;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 16.5px;
    position: relative;
}

.about-features {
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.6;
}

.about-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(30, 64, 175, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: bold;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 64, 175, 0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(30, 64, 175, 0.1), 0 10px 10px -5px rgba(30, 64, 175, 0.04);
}

.stat:hover::before {
    height: 100%;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1.1;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Responsive About Section */
@media (max-width: 1200px) {
    .about-content {
        gap: 60px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .about {
        padding: 100px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-text {
        max-width: 100%;
        text-align: center;
    }

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

    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-features {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-image {
        max-width: 600px;
        margin: 0 auto;
        transform: none;
    }

    .about-image:hover {
        transform: none;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }

    .stat {
        padding: 28px 20px;
    }

    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 64px 0;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .about-text p {
        font-size: 15.5px;
    }

    .about-features li {
        font-size: 15px;
    }
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29-22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-29c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e0e7ff' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

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

.contact .section-header {
    margin-bottom: 64px;
    position: relative;
}

.contact .section-header h2 {
    position: relative;
    display: inline-block;
}

.contact .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(30, 64, 175, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-content:hover::before {
    opacity: 1;
}

.contact-info {
    padding: 72px 56px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    background: linear-gradient(135deg, #1F4E2E 0%, #3C9C8B 100%);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29-22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-29c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
}

.contact-info h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(8px);
}

.info-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.info-item:hover .info-icon {
    background-color: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.info-text h4 {
    margin-bottom: 6px;
    font-size: 18px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.info-text p,
.info-text a {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.7;
    font-size: 15.5px;
}

.info-text a {
    display: inline-block;
    position: relative;
}

.info-text a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.info-text a:hover {
    color: white;
}

.info-text a:hover::after {
    width: 100%;
}

.contact-form {
    padding: 72px 56px;
    background-color: var(--white);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.contact-form h3 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.form-group.focused label {
    color: var(--primary-color);
}

.form-control {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15.5px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    background-color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
    opacity: 1;
    font-weight: 400;
}

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

.form-submit {
    margin-top: 8px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    /* Fully rounded corners */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.btn-submit span {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-submit i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.3), 0 4px 6px -2px rgba(30, 64, 175, 0.15);
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

/* Form validation styles */
.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: #10B981;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #EF4444;
}

.error-message {
    display: none;
    color: #EF4444;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    display: none;
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 16px;
    border-radius: 8px;
    margin-top: 24px;
    font-weight: 500;
    align-items: center;
    gap: 12px;
}

.success-message i {
    font-size: 20px;
    color: #10B981;
}

.success-message.show {
    display: flex;
}

/* Responsive Contact Section */
@media (max-width: 1200px) {
    .contact-content {
        grid-template-columns: 1fr 1.1fr;
    }

    .contact-info,
    .contact-form {
        padding: 60px 40px;
    }
}

@media (max-width: 992px) {
    .contact {
        padding: 100px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
    }

    .contact-info {
        border-radius: 16px 16px 0 0;
        padding: 60px 40px;
    }

    .contact-form {
        border-radius: 0 0 16px 16px;
        padding: 60px 40px;
    }

    .contact-form::before {
        display: none;
    }

    .contact-form::after {
        content: '';
        position: absolute;
        top: 0;
        left: 40px;
        right: 40px;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 80px 0;
    }

    .contact .section-header {
        margin-bottom: 48px;
    }

    .contact-info,
    .contact-form {
        padding: 48px 32px;
    }

    .contact-form::after {
        left: 32px;
        right: 32px;
    }

    .info-item {
        gap: 16px;
    }

    .info-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .btn-submit {
        width: 100%;
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 64px 0;
    }

    .contact .section-header h2 {
        font-size: 32px;
    }

    .contact-info,
    .contact-form {
        padding: 40px 24px;
    }

    .contact-form::after {
        left: 24px;
        right: 24px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .info-text h4 {
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #E2E8F0;
    padding: 80px 0 0;
    position: relative;
}

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

.footer-about {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    filter: brightness(0) invert(1);
    /* Makes the logo white */
}

.footer-logo i {
    margin-right: 12px;
    color: var(--white);
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-logo span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #e2e8f0;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 150px 0 80px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes required by JS */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}