/* =========================================
   1. VARIABLES & RESET (RN INC PALETTE)
   ========================================= */
:root {
    /* Brand Colors */
    --color-dark: #1e293b; /* Dark Slate - Authority */
    --color-text-black: #000000;
    --color-primary: #008cff; /* light blue - Trust/Action */
    --bg-light: rgba(246, 246, 246, 0.95); /* #618dcaConcrete Grey - Backgrounds */
    --color-white: #ffffff;
    --color-text-muted: #1e293b;

    /* Typography */
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;

    /* Dimensions */
    --nav-height: 90px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-light);
    color: var(--bg-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0 40px;
}

/* =========================================
   BUTTON REFACTOR (SEMANTIC TAGS)
   ========================================= */
/* Common Reset for ALL Buttons */
button.btn-cta,
button.btn-hero,
button.btn-info {
    font-family: var(--font-body);
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* 1. Nav CTA */
.cta-item .btn-cta {
    background-color: var(--color-primary);
    color: white;
    padding: 0 25px;
    height: 45px;
    border-radius: 2px;
    font-weight: 600;
    margin-left: 10px;
    font-size: 1rem;
}
.cta-item .btn-cta:hover {
    background-color: #0077d9;
    transform: translateY(-2px);
}

/* 2. Hero CTA */
.btn-hero {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 20px; /* Added spacing */
}
.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 140, 255, 0.5);
    border: 2px solid var(--color-white);
}

/* 3. Info CTA (Phone) */
.btn-info {
    gap: 15px;

    background-color: var(--color-primary);
    color: white;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 20px; /* Added spacing */
}
.btn-info:hover {
    background-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 140, 255, 0.5);
    border: 2px solid var(--color-white);
}
.btn-info i {
    font-size: 1.5rem;
    color: #a3e635;
}
.btn-info span {
    font-size: 0.9rem;
    line-height: 1.2;
    color: white;
}

/* ====================
END OF BUTTON STYLES
   ===================*/

ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

/* =========================================
   2. HEADER CONTAINER
   ========================================= */

.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(246, 246, 246, 10);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-wrapper {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================
   3. LOGO (Text Fallback)
   ========================================= */
.brand-logo {
    display: flex;
    align-items: center;
    z-index: 1002;
    text-decoration: none;
}

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

.logo-text .highlight {
    color: var(--color-primary);
}

/* =========================================
   4. MOBILE TOGGLE & DRAWER
   ========================================= */
.mobile-toggle {
    display: block;
    z-index: 1002;
    padding: 5px;
    transition: opacity 0.3s ease;
}

.mobile-toggle.hide {
    opacity: 0;
    pointer-events: none;
}

.mobile-close {
    position: absolute;
    top: 28px;
    right: 20px;
    display: block;
    z-index: 1005;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-close:hover {
    transform: rotate(90deg);
}

/* Mobile Nav Drawer */
.nav-content {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
}

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

.nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-text-black);
    width: 100%;
    text-align: left;
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.02);
}

/* Chevron rotation */
.nav-item.show-mobile .nav-link i {
    transform: rotate(180deg);
}

/* =========================================
   5. DROPDOWNS & MEGA MENU (MOBILE)
   ========================================= */
.dropdown-menu,
.mega-menu {
    display: none;
    background: var(--bg-light);
    padding: 0;
}

.nav-item.show-mobile .dropdown-menu,
.nav-item.show-mobile .mega-menu {
    display: block;
    animation: fadeIn 0.3s;
}

.dropdown-menu li a,
.mega-menu a {
    display: block;
    padding: 15px 40px;
    font-size: 0.95rem;
    color: var(--color-text-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-family: var(--font-body);
}

.dropdown-menu li a:hover,
.mega-menu li a:hover {
    background: rgba(0, 140, 255, 0.05);
    color: var(--color-primary);
    padding-left: 30px;
}

/* Mobile Mega Menu */
.mega-content {
    padding: 10px 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mega-column h3 {
    padding: 10px 40px 5px 40px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mega-image-box {
    display: none; /* Hide image on mobile */
}

.featured-col p {
    padding: 0 40px;
    color: var(--color-dark);
    font-size: 0.9rem;
}

/* =========================================
   6. DESKTOP STYLES (min-width: 992px)
   ========================================= */
@media screen and (min-width: 992px) {
    .mobile-toggle,
    .mobile-close {
        display: none;
    }

    .nav-content {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        overflow: visible;
        display: flex;
        align-items: center;
    }

    .nav-list {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    .nav-item {
        width: auto;
        border: none;
        position: relative;
        height: var(--nav-height);
        display: flex;
        align-items: center;
    }

    .nav-link {
        padding: 0 10px;
        font-size: 1rem;
        height: 100%;
        width: auto;
        font-weight: 500;
        color: vr(--color-text-black); /* Slightly off-white for better readability */
    }

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

    /* Chevron Animation */
    .nav-item:hover .bx-chevron-down {
        transform: rotate(180deg);
        transition: transform 0.3s;
    }

    /* --- Desktop Dropdown --- */
    .dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 280px;
        background: rgba(246, 246, 246, 10);
        border-top: 3px solid var(--color-primary);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: var(--transition);
        z-index: 1100;
        padding: 10px 0;
    }

    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu li a {
        padding: 12px 25px;
        color: var(--color-text-black);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu li a:hover {
        background: rgba(0, 140, 255, 0.05);
        color: var(--color-primary);
        padding-left: 30px;
    }

    /* --- Desktop Mega Menu --- */
    .mega-menu {
        display: block;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(246, 246, 246, 10);
        border-top: 3px solid var(--color-primary);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: var(--transition);
        z-index: 1100;
        padding: 0;
    }

    .nav-item:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mega-content {
        max-width: 1300px;
        margin: 0 auto;
        padding: 40px 20px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .mega-column {
        width: 23%;
    }

    .mega-column h3 {
        padding: 0 0 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 20px;
        font-size: 0.9rem;
        color: var(--color-primary);
    }

    .mega-menu ul li a {
        padding: 8px 0;
        border: none;
        color: #45628c;
        font-size: 0.95rem;
        transition: 0.2s;
    }

    .mega-menu ul li a:hover {
        color: var(--color-primary);
        transform: translateX(5px);
    }

    /* Highlight Link (View Calendar) */
    .highlight-link {
        color: var(--color-primary) !important;
        font-weight: 600;
        border-bottom: 1px solid var(--color-primary) !important;
        display: inline-block;
    }

    /* Featured Image Box */
    .mega-image-box {
        width: 100%;
        display: flex;
        height: 150px;
        background: rgba(0, 140, 255, 0.1);
        border: 2px solid rgba(0, 140, 255, 0.2);
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        border-radius: 4px;
        overflow: hidden; /* Cuts off any excess image */
        background-color: var(--bg-light);
    }

    .mega-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ENSURES image fills box without stretching */
        object-position: center;
        transition: transform 0.5s ease;
    }

    .mega-column:hover .mega-image-box img {
        transform: scale(1.05); /* Subtle zoom effect on hover */
    }

    .featured-col p {
        padding: 0;
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--color-dark);
    }

    /* CTA Button in Nav */
    .cta-item .btn-cta {
        background-color: var(--color-primary);
        color: white;
        padding: 0 25px;
        height: 45px; /* Smaller than nav height */
        display: flex;
        align-items: center;
        border-radius: 2px;
        margin-left: 10px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: background-color 0.3s;
    }

    .cta-item .btn-cta:hover {
        background-color: #0077d9; /* Darker Blue */
        transform: translateY(-2px);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   7. MEGA MENU IMAGE FIX
   ========================================= */
.mega-image-box {
    width: 100%;
    height: 150px; /* Fixed height for consistency */
    overflow: hidden; /* Cuts off any excess image */
    border-radius: 4px;
    border: 1px solid rgba(0, 140, 255, 0.2);
    margin-bottom: 15px;
    background-color: var(--bg-light);
}

.mega-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ENSURES image fills box without stretching */
    object-position: center;
    transition: transform 0.5s ease;
}

.mega-column:hover .mega-image-box img {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}

/* =========================================
   8. HERO SECTION (Layout & Architecture)
   ========================================= */
.hero-section {
    padding-top: calc(var(--nav-height) + 60px); /* Clear the fixed nav */
    padding-bottom: 80px;
    background-color: var(--bg-light);
    position: relative;
}

/* --- Top Row: Text Layout --- */
.hero-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Title takes more space */
    gap: 60px;
    margin-bottom: 50px;
    align-items: flex-end; /* Aligns text to bottom of container */
}

/* The Animated Line Wrapper */
.line-container {
    width: 100px; /* Length of the line */
    height: 4px;
    background-color: transparent; /* Faint grey track (optional) */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 2px;
}

/* The Drawing Animation */
.line-fill {
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: translateX(-100%); /* Start hidden to the left */
    animation: drawLine 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* Smooth ease-out */
    animation-delay: 0.2s;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--color-text-black);
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-intro p {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 30px;
    max-width: 400px;
}

/* --- Middle Row: The Main Visual --- */
.hero-image-wrapper {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1; /* Sits behind cards */
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Bottom Row: The Cards (Overlapping) --- */
.hero-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -80px; /* Pulls cards UP over the image */
    position: relative;
    z-index: 2; /* Sits on top of image */
    padding: 0 20px;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    box-shadow: 2px 53px 55px -20px rgba(0, 0, 0, 0.42);
    -webkit-box-shadow: 2px 53px 55px -20px rgba(0, 0, 0, 0.42);
    -moz-box-shadow: 2px 53px 55px -20px rgba(0, 0, 0, 0.42);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2rem;
    color: var(--color-text-black);
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text-black);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--color-dark);
    line-height: 1.5;
}

/* =========================================
   ANIMATION KEYFRAMES
   ========================================= */
@keyframes drawLine {
    to {
        transform: translateX(0);
    }
}

/* =========================================
   RESPONSIVE (Mobile & Tablet)
   ========================================= */
@media screen and (max-width: 992px) {
    .cta-item .btn-cta {
        width: 100%; /* Fill the row */
        display: flex; /* Ensure flex behavior */
        margin-left: 0; /* Remove desktop margin */
        margin-top: 10px; /* Add spacing if needed */
        justify-content: center; /* Center the text */
    }
    .hero-header {
        grid-template-columns: 1fr; /* Stack title and intro */
        gap: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image-wrapper {
        height: 350px;
    }

    .hero-cards-container {
        grid-template-columns: 1fr 1fr; /* 2x2 Grid on tablet */
        margin-top: 30px; /* No overlap on smaller screens for cleaner flow */
        padding: 0;
    }
}

@media screen and (max-width: 600px) {
    .hero-cards-container {
        grid-template-columns: 1fr; /* Stack cards on phone */
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* =========================================
   10. WHO WE ARE SECTION (Inverted Grid)
   ========================================= */
.who-we-are-section {
    background-color: var(--bg-light); /* Using Dark Slate for contrast */
    color: var(--color-dark);
    padding: 80px 0 100px 0;
    position: relative;
}

.who-we-are-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 Split */
    gap: 60px;
    align-items: start; /* Align to top */
}

/* --- LEFT COLUMN STYLES --- */
.col-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Wide Team Image */
.team-image-box {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -39px 47px 55px -20px rgba(0, 0, 0, 0.42);
    -webkit-box-shadow: -39px 47px 55px -20px rgba(0, 0, 0, 0.42);
    -moz-box-shadow: -39px 47px 55px -20px rgba(0, 0, 0, 0.42);
}

.team-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Content */
.sub-heading {
    color: var(--color-primary); /* Lime green from your reference */
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.section-text {
    color: var(--color-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-black);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-dark);
}

/* --- RIGHT COLUMN STYLES --- */
.col-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Heading Box */
.heading-box {
    margin-bottom: 20px;
}

.main-heading {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    margin-top: 20px;
    color: var(--color-text-black) !important;
}

.highlight {
    color: var(--color-primary); /* Or White, depending on preference */
}

/* Video Box */
.video-box-container {
    width: 100%;
    height: 400px; /* Taller vertical box like reference */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    top: 25px;
    background: #000;
    cursor: pointer;
    box-shadow: -39px 47px 55px -20px rgba(0, 0, 0, 0.42);
    -webkit-box-shadow: -39px 47px 55px -20px rgba(0, 0, 0, 0.42);
    -moz-box-shadow: -39px 47px 55px -20px rgba(0, 0, 0, 0.42);
}

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

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.play-overlay i {
    font-size: 40px;
    color: white;
}

/* Video Hover Effects */
.video-box-container:hover .hover-video {
    transform: scale(1.05);
}

.video-box-container:hover .play-overlay {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
}

/* =========================================
   RESPONSIVE (Mobile Order Switching)
   ========================================= */
@media screen and (max-width: 992px) {
    .who-we-are-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* 
       THE FIX: display: contents 
       This makes .col-left and .col-right "invisible" to the layout,
       allowing their children to be reordered as one big list.
    */
    .col-left,
    .col-right {
        display: contents;
    }

    /* --- 1. HEADING (Top) --- */
    .heading-box {
        order: 1;
        margin-bottom: 10px;
        align-self: flex-end;
    }

    /* --- 2. VIDEO (Second) --- */
    .video-box-container {
        order: 2;
        height: 500px; /* Tall vertical video */
        width: 100%;
    }

    /* --- 3. PICTURE (Third) --- */
    .team-image-box {
        order: 3;
        display: none;
        height: 250px; /* Slightly shorter on mobile so it doesn't take up whole screen */
        margin-top: 10px;
    }

    /* --- 4. PARAGRAPH / STATS / BUTTON (Bottom) --- */
    .stats-content-box {
        order: 4;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Font Size Adjustments for Mobile */
    .main-heading {
        font-size: 2.2rem;
    }

    .stats-row {
        gap: 10px;
        justify-content: space-around;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    /* Ensure the transparent image divider scales nicely */
    .curved-divider-wrapper {
        margin-bottom: -1px;
    }
}

/* =========================================
   11. SERVICES SECTION (Stacking Animation)
   ========================================= */
.services-section {
    padding: 100px 0 150px 0;
    background-color: var(--bg-light); /* Very light grey for separation */
}

.services-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligns button with bottom of text */
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

/* The New Button Style (Dark Outline) */
.btn-outline-dark {
    font-family: var(--font-body);
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Mobile Adjustment */
@media screen and (max-width: 768px) {
    .services-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.small-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* --- THE STACKING LOGIC --- */
.cards-stack-wrapper {
    position: relative;
    /* This allows the cards to have space to scroll */
    padding-bottom: 50px;
}

.stack-card {
    position: sticky; /* THE MAGIC */
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px; /* Space between cards in flow */
    overflow: hidden;
    /* Height of card */
    min-height: 250px;
    box-shadow: 0px -22px 282px -67px rgba(0, 0, 0, 0.55);
    -webkit-box-shadow: 0px -22px 282px -67px rgba(0, 0, 0, 0.55);
    -moz-box-shadow: 0px -22px 282px -67px rgba(0, 0, 0, 0.55);
}

/* Stacking Offsets (This makes them pile up) */
.card-1 {
    top: 120px;
} /* Stops 120px from top */
.card-2 {
    top: 150px;
} /* Stops 150px from top (covering #1 slightly) */
.card-3 {
    top: 180px;
} /* Stops 180px from top (covering #2 slightly) */

/* Inner Card Layout */
.card-content {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr 2fr; /* Number | Image | Text */
    align-items: center;
    gap: 40px;
    padding: 40px;
}

/* 1. Number */
.card-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.1); /* Subtle watermark style */
}

/* 2. Image */
.card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
}

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

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

/* 3. Text */
.card-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-black);
    margin-bottom: 15px;
}

.card-text p {
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.6;
}

/* =========================================
   RESPONSIVE (Mobile Services)
   ========================================= */
@media screen and (max-width: 992px) {
    /* On mobile, we usually disable sticky stacking 
       because screen height is too small. 
       We will stack them normally block-by-block. */

    .stack-card {
        position: static; /* Disable sticky */
        margin-bottom: 30px;
    }

    .card-content {
        grid-template-columns: 1fr; /* Stack Vertical */
        gap: 20px;
        padding: 25px;
        text-align: center;
    }

    .card-number {
        font-size: 2rem;
        margin-bottom: -10px;
    }

    .card-image {
        height: 200px;
    }
}

/* =========================================
   12. TEAM LIST SECTION
   ========================================= */
.team-list-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

/* --- VERTICAL HEADER LAYOUT --- */
.vertical-header-group {
    display: flex;
    gap: 30px;
    margin-bottom: 80px;
    height: 180px;
}

.v-line-track {
    width: 4px;
    height: 100%;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.v-line-fill {
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    transform: translateY(-100%);
    animation: fillDown 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes fillDown {
    to {
        transform: translateY(0);
    }
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- THE TEAM LIST GRID --- */
.team-directory {
    display: flex;
    flex-direction: column;
}

.team-row {
    display: grid;
    /* NEW GRID: Avatar | Name | Role | Socials | Arrow */
    grid-template-columns: 80px 1.5fr 1fr 1fr 0.5fr;
    align-items: center;
    padding: 20px; /* Reduced vertical padding slightly to fit images better */
    border-bottom: 1px solid #e2e8f0;
    color: var(--color-dark);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative; /* Essential for z-index stacking */
}

/* Hover State for the Row Background */
.team-row:hover {
    background-color: #f8fafc;
    z-index: 10; /* Brings the active row above others so the image pops over */
    border-bottom: 1px solid var(--color-primary);
    border-top: 1px solid var(--color-primary);
}

/* 1. AVATAR COLUMN (The Animation Engine) */
.col-avatar {
    width: 60px;
    height: 60px;
    position: relative; /* Anchor for absolute image */
}

.team-headshot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    /* The Animation Physics */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    z-index: 1;
}

/* THE POP UP EFFECT */
.team-row:hover .team-headshot {
    transform: scale(2.8) translateX(15px); /* Grows 2.8x and shifts right */
    border-radius: 12px; /* Becomes a rounded square */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Deep shadow */
    border-color: var(--color-white);
    z-index: 100;
}

/* 2. Name */
.col-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    padding-left: 20px; /* Space from avatar */
    transition: transform 0.3s ease;
}

/* Push text slightly when image expands so they don't overlap too much */
.team-row:hover .col-name {
    transform: translateX(40px);
    color: var(--color-primary);
}

/* 3. Role */
.col-role {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark);
}

/* 4. Socials */
.col-socials {
    display: flex;
    gap: 15px;
    font-size: 1.4rem;
    color: #cbd5e1;
}

.team-row:hover .col-socials {
    color: var(--color-primary);
}

/* 5. Arrow */
.col-arrow {
    text-align: right;
    font-size: 1.5rem;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.team-row:hover .col-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
   RESPONSIVE (Mobile Team List)
   ========================================= */
@media screen and (max-width: 768px) {
    .team-row {
        /* Remove the avatar column on tiny screens or stack it */
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 5px;
        padding: 15px;
    }

    /* Disable the pop-up animation on mobile (it blocks content) */
    .team-row:hover .team-headshot {
        transform: none;
        border-radius: 50%;
        box-shadow: none;
    }

    .team-row:hover .col-name {
        transform: none;
    }

    /* Layout Adjustments */
    .col-avatar {
        grid-row: 1 / span 2; /* Image on left */
    }

    .col-name {
        grid-column: 2;
        padding-left: 10px;
        font-size: 1.1rem;
    }

    .col-role {
        grid-column: 2;
        padding-left: 10px;
        font-size: 0.9rem;
    }

    .col-socials {
        display: none; /* Hide socials on mobile list */
    }

    .col-arrow {
        display: none;
    }

    .vertical-header-group {
        height: auto;
    }
    .v-line-track {
        display: none;
    }
}

/* =========================================
   13. TESTIMONIALS SECTION (CENTERED)
   ========================================= */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonial-header {
    text-align: center;
    max-width: 700px; /* Constrains the width of the header */
    margin: 0 auto 60px auto; /* Centers the header block horizontally */

    /* Animation: Initially Hidden */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- The 2x2 Grid --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 950px; /* Constrains the grid width for noticeable margins */
    margin: 0 auto; /* Centers the grid block horizontally */
}

/* --- Card Styling --- */
.testimonial-card {
    background-color: var(--color-white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;

    /* Animation: Initially Hidden */
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 34px -27px 248px -54px rgba(0, 0, 0, 0.62);
    -webkit-box-shadow: 34px -27px 248px -54px rgba(0, 0, 0, 0.62);
    -moz-box-shadow: 34px -27px 248px -54px rgba(0, 0, 0, 0.62);
}

.testimonial-card:nth-child(1) {
    border: 2px dashed var(--color-primary);
    position: relative;
}
.testimonial-card:nth-child(2) {
    border: 2px dashed var(--color-primary);
    position: relative;
}
.testimonial-card:nth-child(3) {
    border: 2px dashed var(--color-primary);
    position: relative;
}
.testimonial-card:nth-child(4) {
    border: 2px dashed var(--color-primary);
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text-black);
}

.rating-badge {
    background-color: #f0f9ff; /* Light Blue */
    color: var(--color-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-badge i {
    color: #facc15; /* Star Yellow */
}

.quote {
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 30px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.author-name {
    font-weight: 600;
    color: var(--color-text-black);
    display: block;
}

.author-title {
    font-size: 0.85rem;
    color: var(--color-dark);
}

/* --- THE STAGGERED ANIMATION --- */
.testimonials-section.active .testimonial-header,
.testimonials-section.active .testimonial-card {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-section.in-view .testimonial-card:nth-child(1) {
    transition-delay: 0.3s;
}
.testimonials-section.in-view .testimonial-card:nth-child(2) {
    transition-delay: 0.6s;
}
.testimonials-section.in-view .testimonial-card:nth-child(3) {
    transition-delay: 0.9s;
}
.testimonials-section.in-view .testimonial-card:nth-child(4) {
    transition-delay: 1.2s;
}

/* =========================================
   RESPONSIVE (Mobile Testimonials)
   ========================================= */
@media screen and (max-width: 992px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   14. CTA (Call to Action) SECTION
   ========================================= */
.cta-section {
    padding: 120px 0;
    background-color: var(--bg-light);
    position: relative; /* Anchor for the ghost text */
    overflow: hidden; /* Prevents ghost text from spilling out */
}

/* The Ghost Text Effect */
.ghost-text {
    position: absolute;
    top: 19%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(100px, 100vw, 450px); /* Responsive font size */
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05); /* Very light grey */
    z-index: 0; /* Sits behind the content */
    pointer-events: none; /* User can't select it */
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}



.cta-content {
    position: relative;
    z-index: 1;           /* Forces the button and text to stay above the ghost text */
}

/* Main Content Wrapper */
.cta-content {
    position: relative;
    z-index: 1; /* Sits on TOP of the ghost text */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-image-box {
    width: 100%;
    max-width: 900px; /* Max width for large screens */
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.cta-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-content .main-heading {
    margin-top: 10px;
    margin-bottom: 20px;
}

.cta-content .section-text {
    margin-bottom: 40px;
}

/* New Primary Solid Button Style */
.btn-primary-solid {
    font-family: var(--font-body);
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 140, 255, 0.2);
}

.btn-primary-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 140, 255, 0.3);
}

/* =========================================
   RESPONSIVE (Mobile CTA)
   ========================================= */
@media screen and (max-width: 992px) {
    .cta-image-box {
        height: 350px;
    }
}

@media screen and (max-width: 600px) {
    .cta-image-box {
        height: 250px;
    }
    .ghost-text {
        font-size: 12vw; /* Make ghost text smaller on mobile */
    }
}

/* =========================================
   15. SOCIAL SECTION
   ========================================= */
.social-section {
    padding: 80px 0 120px 0;
    background-color: var(--bg-light); /* Concrete Grey background */
}

/* --- Left-Aligned Header --- */
.social-header {
    display: flex;
    gap: 25px;
    margin-bottom: 60px;
    text-align: left;
}

.v-line-accent {
    width: 3px;
    height: auto;
    background-color: var(--color-primary);
    border-radius: 2px;
    background-color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-50%);
}

.social-text-content .small-title {
    margin-bottom: 0;
}

/* --- Social Cards Grid --- */
.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 across on desktop */
    gap: 20px;
}

.social-card {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: 4px; /* Sharper, architectural corners */
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.social-card .card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-info i {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.platform-info span {
    font-weight: 600;
    color: var(--color-text-black);
    font-family: var(--font-heading);
}

.arrow-icon {
    font-size: 1.2rem;
    color: var(--color-primary);
    opacity: 0.4;
    transition: all 0.3s ease;
}

/* --- HOVER ANIMATIONS --- */
.social-card:hover {
    transform: translateY(-5px);
}

.social-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(5px);
}

/* Animated Underline */
.hover-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-50%);
}

.social-card:hover .hover-line {
    width: 100%;
}

/* =========================================
   RESPONSIVE (Social)
   ========================================= */
@media screen and (max-width: 1100px) {
    .social-cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on tablets */
    }
}

@media screen and (max-width: 600px) {
    .social-cards-grid {
        grid-template-columns: 1fr; /* 1 column on phone */
    }

    .social-header {
        flex-direction: row; /* Keep line on side */
    }

    .main-heading {
        font-size: 1.8rem;
    }
}

/* =========================================
   16. FOOTER SECTION
   ========================================= */
.main-footer {
    background-color: var(--bg-light);
    border-top: 1px solid #e2e8f0;
}

/* --- Top Contact Bar --- */
.footer-contact-bar {
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
}

.contact-bar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.contact-item .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-black);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-item .value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: 0.3s;
}

/* --- Main Footer Grid --- */
.footer-main-content {
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
}

.footer-desc {
    font-size: 0.95rem;
    color: var(--color-dark);
    line-height: 1.6;
    max-width: 250px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-black);
    margin-bottom: 25px;
}

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

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--color-text-black);
}

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

/* --- Bottom Bar --- */
.footer-bottom {
    background-color: #f1f5f9;
    padding: 30px 0;
    font-size: 0.85rem;
    color: #64748b;
}

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

.utility-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.utility-links a:hover {
    color: var(--color-primary);
}

.credit-tag {
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 10px;
    color: var(--color-primary);
}

/* =========================================
   RESPONSIVE (Footer)
   ========================================= */
@media screen and (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    .footer-col-brand {
        grid-column: span 2;
    }
    .contact-bar-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 600px) {
    .bottom-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .utility-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col-brand {
        grid-column: span 1;
    }
}
/* =========================================
   17. ANIMATIONS & REVEALS
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Line Animations */
.line-fill {
    width: 0;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-fill.active {
    width: 100%;
}

.v-line-fill {
    height: 0;
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.v-line-fill.active {
    height: 100%;
}
