/* --- Global Variables and Reset (Based on observed styles) --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* UPDATED: Set font-primary to Roboto to match the linked font */
    --font-primary: 'Roboto', sans-serif; 
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-dark-gray: #1a1a1a;
    --color-light-gray: #F7F7F7; 
    --color-text-body: #333333; 
    --color-subtle-text: #666666; 
    --color-accent: #0047AB; 
    --color-secondary-accent: #00FFFF; /* Electric Blue */
    --button-radius: 6px; 
    --card-radius: 12px; 
    
    /* Variables for JS-controlled loop */
    --card-width: 350px; 
    --card-margin: 40px;
    --track-padding-visual: 20px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; 
}

a {
    text-decoration: none;
    color: var(--color-black);
    transition: color 0.3s ease;
}

h1, h2, h3, strong {
    font-weight: 700;
    color: var(--color-black);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 44px;
    line-height: 1.2;
    text-align: center; 
}

/* --- 1. HEADER & NAVIGATION --- */
#main-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent; 
    padding: 10px 0;
    /* Add background-color to the transition for smoothness */
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease; 
}

#main-header.solid-bg {
    /* Force a solid background to prevent transparency flash over light sections */
    background-color: var(--color-dark-gray); 
}

#main-header.hidden {
    opacity: 0;
    transform: translateY(-100%); 
    pointer-events: none; 
}
/* Align the logo and button to the edges */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 40px; 
}

/* Hamburger Toggle Button (VISIBLE on ALL screens) */
.nav-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    color: var(--color-white); 
    transition: transform 0.3s ease;
}

.nav-toggle #menu-icon,
.nav-toggle #close-icon {
    width: 30px;
    height: 30px;
}

/* FULL-SCREEN NAVIGATION (Opens on ALL screens) */
#full-screen-nav {
    position: fixed;
    top: 0;           /* CRITICAL: Menu starts at the very top of the viewport */
    left: 0;
    width: 100%;
    height: 100vh;
    /* REMOVE any padding-top from #full-screen-nav itself */
    background-color: var(--color-dark-gray);
    z-index: 999; /* Below the nav-toggle, but above page content */
    
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    /* Center the contents of the menu vertically/horizontally */
    display: flex;
    justify-content: center;
}

#full-screen-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#full-screen-nav ul {
    list-style: none;
    padding-top: 100px; 
    
    /* Ensure links display vertically in the menu */
    display: flex; 
    flex-direction: column;
    align-items: center; /* Center the links */
    height: auto; /* Allow the content to define height */
    overflow-y: auto;
    margin-bottom: 40px;
    text-align: center;
}

#full-screen-nav li {
    margin: 15px 0;
}

#full-screen-nav a {
    color: var(--color-white);
    font-size: 24px; /* Refined size */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

#full-screen-nav a:hover {
    color: var(--color-secondary-accent);
}
#full-screen-nav.active {
    /* Key properties to show the menu */
    opacity: 1;
    visibility: visible;
    z-index: 999; /* Should be higher than other page content */
}

/* Make sure the nav toggle button is above everything else */
.nav-toggle {
    z-index: 1001; /* Must be higher than #main-header (1000) for clicking */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px; /* Adjust if needed */
}
.nav-cta {
    font-size: 18px;
    padding: 12px 30px;
}

/* Ensure content is not hidden by the fixed header on all screens */
#hero-section {
    padding-top: 80px; 
}

/* Mobile Adjustments (optional, to reduce margins on small screens) */
@media (max-width: 992px) {
    .header-content {
        margin: 0 20px;
    }
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 40px; 
    width: auto;
    max-width: none;
}

.site-logo-img {
    height: 50px; 
    width: auto;
}

/* --- 2. HERO SECTION (Using Saved Instructions) --- */
#hero-section {
    position: relative;
    background-image: url('images/hero-bg.png'); 
    background-size: cover;
    background-position: center;
    min-height: 100vh; 
    color: var(--color-white);
    text-align: left;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); 
    z-index: 1;
    display: flex;
    align-items: flex-end; 
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0 80px 0; 
    display: grid; 
    grid-template-columns: 2.5fr 1fr; 
    gap: 80px; 
    width: 100%; 
    max-width: 100%;
    margin: 0 40px; 
}

#hero-section h1 {
    font-size: 50px; 
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-white);
    font-weight: 200; 
}

.hero-subtext-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 20px; 
}

.hero-subtext {
    font-size: 33px; 
    margin-bottom: 10px; 
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* --- CTA Button Base Style --- */
.cta-button {
    display: inline-block;
    padding: 16px 45px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px; 
    text-transform: uppercase;
    background-color: #92ff83; 
    color: var(--color-black); 
    border-radius: var(--button-radius); 
    border: 2px solid #92ff83;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #72E057; 
    border-color: #72E057;
}
.cta-button2 {
    display: flex;
    padding: 16px 45px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px; 
    text-transform: uppercase;
    background-color: #92ff83; 
    color: var(--color-black); 
    border-radius: var(--button-radius); 
    border: 2px solid #92ff83;
    transition: all 0.3s ease;
    max-width: fit-content;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.cta-button2:hover {
    background-color: #72E057; 
    border-color: #72E057;
}

/* --- 3. FEATURE SHOWCASE (Sticky Scroll Gallery) --- */
/* #feature-showcase {
    background-color: var(--color-dark-gray); 
    color: var(--color-white);
    padding-top: 100px; 
    padding-bottom: 0; 
    text-align: center;
    overflow: visible; 
    position: relative;
    min-height: 250vh; 
} */

.feature-heading-container .section-title {
    color: var(--color-white); 
    margin-bottom: 80px;
}

/* 2-Column Desktop Layout */
.showcase-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px; 
    position: relative;
}

/* Sticky Media Column */
#feature-media-sticky {
    position: sticky;
    top: 100px; 
    height: calc(100vh - 200px); 
    max-height: 800px; 
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-gallery {
    position: relative;
    width: 90%;
    height: 90%;
    overflow: hidden;
    border-radius: var(--card-radius);
    background-color: var(--color-black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out; 
}

.gallery-slide.active {
    opacity: 1;
    z-index: 10;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scrollable Text Column (Tabs) */
#feature-text-scroll {
    padding-top: 100px; 
    padding-bottom: 100px; 
}

.feature-tab {
    padding: 50px 0;
    margin-bottom: 50px; 
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.4; 
    text-align: left;
    cursor: pointer;
}

.feature-tab.active {
    opacity: 1; 
    transform: scale(1.03); 
    background-color: rgba(255, 255, 255, 0.05); 
    padding: 60px 40px; 
    border-radius: var(--card-radius);
    margin: 0 -40px 50px -40px; 
}

.feature-tab .card-number {
    font-size: 50px;
    font-weight: 900;
    color: var(--color-secondary-accent); 
    margin-bottom: 10px;
    line-height: 1;
}

.feature-tab h3 {
    font-size: 30px;
    color: var(--color-white);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-tab p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}


/* --- 4. CUTTING-EDGE FEATURES GRID --- */
#features-grid {
    background-color: var(--color-dark-gray);
    position: relative;
    z-index: 1;
    padding: 0;
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 40px 0; 
}

.grid-title {
    font-size: 44px;
    color: var(--color-white);
    margin-bottom: 60px;
}

.features-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    width: 100%;
    text-align: left;
    counter-reset: feature-counter;
}

.feature-list-col {
    grid-column: 1 / 2;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 80px;
}

.feature-item {
    background: transparent;
    padding: 0;
    border-bottom: none;
    box-shadow: none;
    display: block;
    text-align: left;
    position: relative;
    padding-left: 60px;
}

.feature-item::before {
    counter-increment: feature-counter;
    content: "0" counter(feature-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 30px;
    font-weight: 900;
    color: var(--color-secondary-accent);
    line-height: 1;
    opacity: 0.9;
}

.feature-item strong {
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 8px;
    margin-top: 5px;
    display: block;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
}

/* --- 5. AI FOR YOU (Horizontal Scroll Loop - JS CONTROLLED) --- */
#ai-for-you,#feature {
    padding: 100px 0;
    overflow: hidden; 
    background-color: var(--color-dark-gray); 
}

#ai-for-you .section-title {
    color: var(--color-white);
    margin-bottom: 60px;
}
#feature .section-title {
    color: var(--color-white);
    margin-bottom: 60px;
}

.feature-track-wrapper {
    max-width: 100vw;
    overflow: hidden; /* Hide overflowing cloned content */
}

/* Animation track and loop logic - JS CONTROLLED */
.feature-content-track {
    display: flex;
    /* CSS animation removed, JS will control the transform */
    will-change: transform;
}
.feature-content-track1 {
    display: flex;
    /* CSS animation removed, JS will control the transform */
    will-change: transform;
}

/* The feature-content-set is now dynamically added by JS */


.feature-card-loop {
    width: var(--card-width);
    flex-shrink: 0;
    margin-right: var(--card-margin);
    background-image: linear-gradient(145deg, rgba(0, 0, 0, 1) 0%, rgba(10, 10, 10, 1) 100%);
    color: var(--color-white);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 255, 255, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Quantum Ripple Pseudo-Element */
.feature-card-loop::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.5) 0%, rgba(0, 255, 255, 0) 70%); 
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    transform: translate(-50%, -50%); 
    pointer-events: none; 
    z-index: 0; 
}

/* Activating the Ripple on Hover */
.feature-card-loop:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 255, 0.5); 
}

.feature-card-loop:hover::before {
    width: 300%;
    height: 300%;
    opacity: 1;
}

/* 3:4 Aspect Ratio Implementation for Image Container (Width:Height) */
.card-image-wrapper {
    width: 100%;
    height: 0; 
    padding-bottom: calc(100% * 4 / 3); 
    overflow: hidden;
    position: relative; 
    border-bottom-left-radius: var(--card-radius);
    border-bottom-right-radius: var(--card-radius);
}

.card-image-wrapper img {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card-loop:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    white-space: normal; 
    overflow: hidden;
    z-index: 10; 
}

/* Holographic/Glossy Overlay on Content (Swipe Effect) */
.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0) 60%, 
                rgba(255, 255, 255, 0.05) 75%, 
                rgba(255, 255, 255, 0) 90%);
    opacity: 0.5; 
    pointer-events: none; 
    transform: translateX(-100%); 
    transition: transform 0.6s ease-out;
    z-index: 1; 
}

.feature-card-loop:hover .card-content::before {
    transform: translateX(100%); 
    transition: transform 0.8s ease-in-out; 
}

.card-title-group {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 8px; 
}

.card-icon {
    position: relative;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    color: var(--color-secondary-accent);
    flex-shrink: 0; 
    margin-left: 15px;
    filter: drop-shadow(0 0 8px var(--color-secondary-accent));
}

.card-content h3 {
    font-size: 24px;
    color: var(--color-white);
    line-height: 1.3; 
    white-space: normal;
    font-weight: 700; 
    margin-bottom: 0; 
    flex-grow: 1; 
    transition: color 0.3s ease; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15); 
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.5; 
    white-space: normal;
}

/* CSS animation and hover effects for track removed */


/* --- 6. TESTIMONIALS (Consistent Feel Update) --- */
#testimonials {
    padding: 100px 0;
    text-align: center;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background-color: var(--color-light-gray);
    padding: 30px;
    border-radius: var(--card-radius); /* Use card-radius for better consistency */
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Stronger shadow */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover */
}

/* Added hover effect for consistent interaction feel */
.testimonial-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text-body);
    margin-bottom: 25px; /* Increased margin for better separation */
    font-size: 18px;
    flex-grow: 1; 
}

.author-info strong {
    display: block;
    font-size: 18px;
    color: var(--color-black);
}

.author-info span {
    font-size: 14px;
    color: var(--color-subtle-text);
}

.testimonial-cta {
    /* Refined CTA styling for a subtle pop on the light card */
    display: inline-block; 
    align-self: flex-start; 
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    padding: 12px 25px;
    font-size: 16px;
    letter-spacing: 1px;
    /* Use accent color for border to make it stand out */
    border: 2px solid var(--color-secondary-accent); 
    background-color: var(--color-dark-gray);
    margin-top: 10px; /* Adjusted spacing */
}

.testimonial-cta:hover {
    background-color: var(--color-secondary-accent);
    color: var(--color-black); /* Text color change on hover */
    border-color: var(--color-secondary-accent);
}

/* --- 7. FOOTER --- */
#main-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding-top: 60px;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-column h3 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 20px;
}

.subscription-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input[type="email"] {
    padding: 12px;
    border: none;
    border-radius: var(--button-radius);
    flex-grow: 1;
    font-size: 16px;
    max-width: 300px;
}

.subscribe-form .submit-button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: var(--color-secondary-accent);
    color: var(--color-black);
    border: 2px solid var(--color-secondary-accent);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-column a:hover {
    color: var(--color-secondary-accent);
}

.copyright-bar {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- MOBILE RESPONSIVENESS (992px and below) --- */
@media (max-width: 992px) {
    
    #hero-section {
        background-image: url("images/hero-bg-m-2.jpg");
    }
    .hero-overlay {
        align-items: flex-end;   /* Pushes content to the bottom */
        justify-content: flex-start; /* Pushes content to the left */
    }

    /* 2. HERO CONTENT: Sets overall alignment and spacing */
    .hero-content {
        grid-template-columns: 1fr; 
        gap: 15px; /* Reduced gap between H1 and subtext group */
        
        /* Margin at the bottom to lift it slightly off the edge */
        margin: 0 20px 40px 20px; 
        
        text-align: left; /* Left align the H1 and subtext group */
        padding: 0; 
        display: block; 
    }
    
    #hero-section h1 {
        font-size: 36px; 
        line-height: 1.15;
        margin-bottom: 5px; /* Reduced margin to bunch it up */
        text-align: left; /* Ensure H1 text is left-aligned */
    }
    
    .hero-subtext-group {
        /* 3. SUBTEXT GROUP: Ensures subtext and button are left-aligned */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start; /* IMPORTANT: Left-aligns content inside the group */
        padding-top: 5px; /* Reduced top padding */
        padding-bottom: 0;
    }

    .hero-subtext {
        font-size: 20px;
        margin-bottom: 15px; /* Space between subtext and button */
        color: rgba(255, 255, 255, 0.9);
        font-weight: 300;
        text-align: left;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }
    .cta-button2 {
        padding: 12px 30px;
        font-size: 18px;
    }

    /* FEATURE SHOWCASE (MOBILE FALLBACK) */
    /* #feature-showcase {
        min-height: auto; 
        padding-bottom: 100px;
    } */
    .showcase-content-wrapper {
        grid-template-columns: 1fr; 
        padding: 0 20px;
    }
    
    #feature-media-sticky {
        position: relative; 
        top: auto;
        height: 400px;
        max-height: 400px;
        margin-bottom: 40px;
    }
    
    #feature-text-scroll {
        padding: 0;
    }
    
    .feature-tab {
        opacity: 1; 
        transform: none;
        background: transparent;
        padding: 40px 0;
        margin-bottom: 0; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
    }

    .feature-tab.active {
        padding: 40px 0;
        margin: 0;
        background: transparent;
    }
    
    .feature-tab:last-child {
        border-bottom: none;
    }


    /* FEATURES GRID */
    .grid-title {
        font-size: 36px;
    }
    .feature-list-col {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
        padding: 0 20px;
    }
    .feature-item {
        padding-left: 50px;
    }
    .feature-item strong {
        font-size: 20px;
    }

    /* AI FOR YOU Mobile Fallback */
    #ai-for-you,#feature {
        padding-bottom: 60px;
    }
    #ai-for-you .section-title {
        margin-bottom: 40px;
    }
    #feature .section-title {
        margin-bottom: 40px;
    }
    /* IMPORTANT: Disabling JS Animation on Mobile for better performance and native scrolling */
    .feature-content-track {
        transition: none !important;
        transform: none !important; 
        overflow-x: scroll; 
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px; 
        justify-content: flex-start;
        /* Revert to default width for mobile manual scroll */
        width: auto; 
        will-change: auto;
    }
    .feature-content-track1 {
        transition: none !important;
        transform: none !important; 
        overflow-x: scroll; 
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px; 
        justify-content: flex-start;
        /* Revert to default width for mobile manual scroll */
        width: auto; 
        will-change: auto;
    }
    .feature-content-set {
        padding: 0 0 0 20px; 
        gap: 20px;
        width: auto; /* Revert to default width for mobile manual scroll */
    }
    .feature-card-loop {
        width: 80vw; 
        max-width: 400px;
        scroll-snap-align: start;
        transform: none; 
    }
    
    /* Disable all hover effects for mobile */
    .feature-card-loop:hover {
        transform: none;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7); 
    }
    .feature-card-loop:hover::before {
        width: 0;
        height: 0;
        opacity: 0;
        transition: none; 
    }

    /* Remove effects that are less performant/effective on mobile */
    .card-content::before {
        content: none;
    }
    .card-icon {
        filter: none;
    }

    /* Mobile: override aspect ratio to keep cards manageable */
    .card-image-wrapper {
        height: 250px; 
        padding-bottom: 0;
        position: relative;
        border-bottom-left-radius: var(--card-radius);
        border-bottom-right-radius: var(--card-radius);
    }
    .card-image-wrapper img {
        position: relative;
        height: 100%;
    }

    .card-content {
        padding: 20px;
    }
    
    /* TESTIMONIALS */
    .testimonial-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    /* FOOTER */
    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .subscription-column {
        grid-column: 1 / -1;
    }
    .subscribe-form {
        flex-direction: column;
    }
    .subscribe-form input[type="email"] {
        max-width: none;
    }
}


/* --- MOBILE RESPONSIVENESS (600px and below) --- */
@media (max-width: 600px) {
    /* GLOBAL */
    h2 {
        font-size: 30px !important;
    }
    
    /* HERO SECTION */
    #hero-section h1 {
        font-size: 32px;
    }
    .hero-subtext {
        font-size: 20px;
    }
    
    /* FEATURE SHOWCASE */
    .feature-tab .card-number {
        font-size: 40px;
    }
    .feature-tab h3 {
        font-size: 24px;
    }
    .feature-tab p {
        font-size: 16px;
    }

    /* FOOTER */
    .footer-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-column {
        text-align: center;
    }
    .footer-column a {
        display: inline-block;
        margin-right: 15px;
    }
}
/* --- FINAL MOBILE REFINEMENTS --- */
@media (max-width: 992px) {
  /* --- Feature Showcase --- */
  /* #feature-showcase {
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
  } */

  .showcase-content-wrapper {
    display: block;
    padding: 0 20px;
  }

  /* Make image sticky at top */
  #feature-media-sticky {
    position: sticky;
    top: 80px;
    height: 300px;
    z-index: 5;
    margin-bottom: 30px;
  }

  .media-gallery {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
  }

  .gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .gallery-slide.active {
    opacity: 1;
    transform: scale(1);
  }

  .feature-tab {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
  }

  .feature-tab.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* --- AI for You (consistent card sizing + true loop) --- */
  #ai-for-you,#feature {
    overflow: hidden;
  }

  .feature-content-track {
    display: flex;
    transition: transform 0.2s linear;
    will-change: transform;
  }
  .feature-content-track1 {
    display: flex;
    transition: transform 0.2s linear;
    will-change: transform;
  }

  .feature-card-loop {
    flex-shrink: 0;
    width: 80vw;
    max-width: 380px;
    margin-right: 20px;
    border-radius: 14px;
  }

  .card-image-wrapper {
    height: 240px;
    padding-bottom: 0;
  }

  .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* ---------------- MOBILE: synced image+text animation + reliable translateX loop ---------------- */
@media (max-width: 992px) {

  /* Feature Showcase: keep media sticky & animate images in sync with text */
  #feature-media-sticky {
    position: sticky;
    top: 70px;
    height: 300px;
    margin-bottom: 18px;
    z-index: 6;
    display: block;
  }

  .media-gallery {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
  }

  /* base state for slides */
  .gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(18px) scale(1.02);
    transition: opacity 900ms cubic-bezier(.2,.9,.3,1), transform 1100ms cubic-bezier(.2,.9,.3,1);
    will-change: opacity, transform;
  }

  /* visible triggers the cinematic soft transition */
  .gallery-slide.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
  }

  /* Keep .active for desktop compatibility, but visible controls the animation on mobile */
  .gallery-slide.active { z-index: 9; }

  /* Text cards animate similarly */
  .feature-tab {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 900ms cubic-bezier(.2,.9,.3,1), transform 900ms cubic-bezier(.2,.9,.3,1);
    will-change: opacity, transform;
  }
  .feature-tab.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Slight spacing so text sits below the sticky media cleanly */
  .showcase-content-wrapper { padding: 0 18px; }

  /* AI for You: ensure consistent card sizes and prepare for translateX */
  #ai-for-you,#feature { overflow: hidden; }
  .feature-content-track {
    display: flex;
    align-items: flex-start;
    will-change: transform;
    transform: translateX(0);
  }
  .feature-content-track1 {
    display: flex;
    align-items: flex-start;
    will-change: transform;
    transform: translateX(0);
  }

  .feature-card-loop {
    flex-shrink: 0;
    width: 80vw;          /* consistent width for all cards */
    max-width: 380px;
    margin-right: 20px;
    border-radius: 14px;
    box-sizing: border-box;
  }

  .card-image-wrapper { height: 240px; padding-bottom: 0; }
  .card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

}
/* ---------- Desktop styles (unchanged) ---------- */
.feature-card-loop {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-card-loop .card {
  flex: 1 1 calc(33.333% - 20px); /* Desktop: 3 cards per row */
  height: auto; /* Let height adjust based on content */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-loop .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.feature-card-loop .card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.feature-card-loop .card-content {
  padding: 15px;
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 768px) {
  .feature-card-loop {
    flex-wrap: nowrap;            /* Prevent wrapping */
    overflow-x: auto;             /* Enable horizontal scroll */
    scroll-snap-type: x mandatory;/* Smooth snapping scroll */
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 10px;
  }

  .feature-card-loop::-webkit-scrollbar {
    display: none; /* Hide scrollbar for cleaner look */
  }

  .feature-card-loop .card {
    flex: 0 0 80%;                /* Each card takes 80% of screen width */
    height: 300px;                /* Equal height for all cards */
    scroll-snap-align: center;    /* Snap to center while scrolling */
    margin-right: 10px;
  }

  .feature-card-loop .card img {
    width: 100%;
    height: 60%;
    object-fit: cover;
  }

  .feature-card-loop .card-content {
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px;
  }
}
/* ---------- Mobile adjustments for AI FOR YOU carousel ---------- */
@media (max-width: 992px) {
  #ai-for-you,#feature {
    overflow: hidden;
    padding: 60px 0 60px 0;
  }

  .feature-track-wrapper {
    overflow: hidden;
    width: 100%;
  }

  .feature-content-track {
    display: flex;
    align-items: stretch; /* Ensures all cards have equal height */
    padding-left: 20px; /* Left padding for better appearance */
    gap: 0; /* Remove gap, use margin-right instead */
    will-change: transform;
    transform: translateX(0);
    transition: none;
  }
  .feature-content-track1 {
    display: flex;
    align-items: stretch; /* Ensures all cards have equal height */
    padding-left: 20px; /* Left padding for better appearance */
    gap: 0; /* Remove gap, use margin-right instead */
    will-change: transform;
    transform: translateX(0);
    transition: none;
  }

  .feature-card-loop {
    flex-shrink: 0;
    width: 85vw; /* Slightly wider for better appearance */
    max-width: 380px;
    min-height: 450px; /* Minimum height to keep cards uniform */
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .card-image-wrapper {
    height: 240px;
    padding-bottom: 0;
    flex-shrink: 0; /* Prevent image from shrinking */
  }

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

  .card-content {
    flex-grow: 1; /* Allow content to grow and fill space */
    display: flex;
    flex-direction: column;
    padding: 25px;
  }

  .card-content h3 {
    margin-bottom: 12px;
  }

  .card-content p {
    flex-grow: 1; /* Distribute remaining space */
  }

  /* Disable hover effects on mobile */
  .feature-card-loop:hover {
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 255, 255, 0.2);
  }

  .feature-card-loop:hover::before {
    width: 0;
    height: 0;
    opacity: 0;
  }
}
/* CSS Snippet 2/3: styles.css (Add to the end of the file) */
/* --- PERSISTENT CTA BAR STYLES (FINAL VERSION) --- */

#persistent-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 15px 20px;
    background-color: var(--color-dark-gray); /* Dark background */
    text-align: center;
    
    /* Initially hidden below the screen */
    transform: translateY(100%); 
    transition: transform 0.3s ease-out;
}

#persistent-cta-bar.visible {
    /* Moves the CTA bar up into view */
    transform: translateY(0); 
}

/* Ensure the sticky bar is hidden when the full-screen menu is open */
#full-screen-nav.open ~ #persistent-cta-bar {
    transform: translateY(100%) !important;
}

.sticky-cta-button {
    padding: 10px 40px;
    font-size: 18px;
    
    /* Button appearance */
    background-color: var(--color-secondary-accent); 
    color: var(--color-black); 
    border-color: var(--color-secondary-accent);
    
    /* Use flex for icon alignment on desktop/large screens */
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Ensures content is centered when not full-width */
    gap: 8px;
    transition: all 0.3s ease;
}

.sticky-cta-button:hover {
    background-color: #00DDEE;
    border-color: #00DDEE;
}

.cta-arrow {
    width: 20px;
    height: 20px;
}

#main-footer {
    padding-bottom: 80px; 
}

/* Media Query: Mobile-Specific Fixes (600px and below) */
@media (max-width: 600px) {
    #persistent-cta-bar {
        padding: 10px 15px; 
    }
    .sticky-cta-button {
        width: 100%; /* Button is full-width */
        font-size: 16px; 
        padding: 12px 0; 
        
        /* THE FIX: Override inline-flex display for the button itself */
        display: block; 
        text-align: center; 
        line-height: normal;
    }
    
    /* Center the icon within the button text/link */
    .sticky-cta-button .cta-arrow {
        /* You might need to adjust the positioning if the icon is still off */
        margin-left: 5px; 
        vertical-align: middle;
        display: inline-block;
    }

    #main-footer {
        padding-bottom: 70px; 
    }
}
@media (max-width: 992px) {
    
    #hero-section {
        background-image: url("images/hero-bg-m-2.jpg");
    }
    .hero-overlay {
        align-items: flex-end;   /* Pushes content to the bottom */
        justify-content: flex-start; /* Pushes content to the left */
    }

    /* 2. HERO CONTENT: Sets overall alignment and spacing */
    .hero-content {
        grid-template-columns: 1fr; 
        gap: 15px; /* Reduced gap between H1 and subtext group */
        
        /* Margin at the bottom to lift it slightly off the edge */
        margin: 0 20px 40px 20px; 
        
        text-align: left; /* Left align the H1 and subtext group */
        padding: 0; 
        display: block; 
    }
    
    #hero-section h1 {
        font-size: 36px; 
        line-height: 1.15;
        margin-bottom: 5px; /* Reduced margin to bunch it up */
        text-align: left; /* Ensure H1 text is left-aligned */
    }
    
    .hero-subtext-group {
        /* 3. SUBTEXT GROUP: Ensures subtext and button are left-aligned */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start; /* IMPORTANT: Left-aligns content inside the group */
        padding-top: 5px; /* Reduced top padding */
        padding-bottom: 0;
    }

    .hero-subtext {
        font-size: 20px;
        margin-bottom: 15px; /* Space between subtext and button */
        color: rgba(255, 255, 255, 0.9);
        font-weight: 300;
        text-align: left;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }
    .cta-button2 {
        padding: 12px 30px;
        font-size: 18px;
    }

    /* FEATURE SHOWCASE (MOBILE - FIXED TO SHOW IMAGES) */
    /* #feature-showcase {
        min-height: auto; 
        padding-bottom: 100px;
    } */
    
    .showcase-content-wrapper {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }
    
    /* CRITICAL: Keep sticky positioning and ensure visibility */
    #feature-media-sticky {
        position: sticky; 
        top: 80px; /* Stick below header */
        height: 300px;
        max-height: 300px;
        width: 100%;
        margin-bottom: 30px;
        z-index: 5;
        display: block; /* Ensure it's visible */
    }
    
    /* Ensure media gallery is visible */
    .media-gallery {
        width: 100%;
        height: 100%;
        position: relative;
        display: block;
        border-radius: var(--card-radius);
        background-color: var(--color-black);
        overflow: hidden;
    }
    
    /* Ensure slides are properly positioned */
    .gallery-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: translateY(20px) scale(1.02);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .gallery-slide.visible,
    .gallery-slide.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        z-index: 10;
    }
    
    .gallery-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    #feature-text-scroll {
        padding: 0;
    }
    
    .feature-tab {
        opacity: 0.6; 
        transform: translateY(20px);
        background: transparent;
        padding: 40px 0;
        margin-bottom: 0; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .feature-tab.visible,
    .feature-tab.active {
        opacity: 1;
        transform: translateY(0);
        padding: 40px 0;
        margin: 0;
        background: transparent;
    }
    
    .feature-tab:last-child {
        border-bottom: none;
    }
}
/* --- Header & Navigation (No Change Needed, but verified) --- */
.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--color-white);
    z-index: 1001;
}

/* ... other styles ... */

@media (min-width: 769px) {
    /* Hides the hamburger button on desktop */
    
    /* ... rest of media query ... */
}
/* --- Testimonial Card Source Button Styling --- */
.testimonial-card .source-link {
    /* Add space above the button */
    margin-top: 20px; 
}

.testimonial-card .source-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--button-radius);
    
    /* Style the button using site variables */
    background-color: var(--color-secondary-accent); /* Electric Blue background */
    color: var(--color-dark-gray); /* Dark text on bright button */
    
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Add a subtle animation */
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.testimonial-card .source-button:hover {
    background-color: #00E5E5; /* Slightly darker electric blue on hover */
    transform: translateY(-1px); /* Slight lift effect */
}
/* --- SEARCH OVERLAY STYLES --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.search-container {
    width: 90%;
    max-width: 700px;
    animation: slideDown 0.3s ease-out;
}

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

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    border-radius: var(--button-radius);
    padding: 0 15px;
    margin-bottom: 20px;
}

.search-input-icon {
    width: 24px;
    height: 24px;
    color: var(--color-subtle-text);
    margin-right: 10px;
    flex-shrink: 0;
}

#search-input {
    flex-grow: 1;
    padding: 18px 0;
    font-size: 18px;
    border: none;
    outline: none;
    font-family: var(--font-primary);
    background: transparent;
}

.search-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-subtle-text);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-close:hover {
    color: var(--color-black);
}

.search-close i {
    width: 24px;
    height: 24px;
}

.search-results {
    max-height: 500px;
    overflow-y: auto;
    background-color: var(--color-white);
    border-radius: var(--button-radius);
    padding: 10px;
}

.search-results:empty {
    display: none;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--color-light-gray);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.search-result-item:hover {
    background-color: var(--color-light-gray);
}

.search-result-title {
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 5px;
    font-size: 16px;
}

.search-result-snippet {
    color: var(--color-text-body);
    font-size: 14px;
    line-height: 1.5;
}

.search-highlight {
    background-color: #ffeb3b;
    font-weight: 600;
    padding: 0 2px;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-subtle-text);
    font-size: 16px;
}

/* Search Toggle Button & Hamburger Toggle Button */
.search-toggle,
.nav-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    color: var(--color-white);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.search-toggle {
    margin-right: 5px;
}

.search-toggle .search-icon,
.nav-toggle #menu-icon,
.nav-toggle #close-icon {
    width: 24px;
    height: 24px;
}

/* Header content layout fix */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 40px;
    width: auto;
    max-width: none;
}

.site-logo {
    flex-shrink: 0;
}

.header-content > div:last-child {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 600px) {
    .search-overlay {
        padding-top: 80px;
    }
    
    .search-container {
        width: 95%;
    }
    
    #search-input {
        font-size: 16px;
        padding: 16px 0;
    }
    
    .search-input-wrapper {
        padding: 0 12px;
    }
    
    .header-content {
        margin: 0 20px;
    }
    
    .search-toggle,
    .nav-toggle {
        padding: 8px;
    }
}