/* Ensure the very first image is visible if progress is 0 */
.product-image:first-child.active {
    opacity: 1;
}

/* --- Hero Video Styles --- */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Black overlay at 50% opacity */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white-text);
    padding: 0 20px;
}

.hero-title {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: italic;
    font-variation-settings:
    "SOFT" 0,
    "WONK" 1;
    font-size: clamp(2.5rem, 8vw, 5rem); /* Responsive typography */
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Scroll Indicator Animation */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; /* above the overlay */
    color: var(--white-text);
    /* rest of your existing styles */
}

.arrow {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--white-text), transparent);
    animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Ensure the scroll section follows correctly */
.scroll-section {
    position: relative;
    z-index: 10;
    background-color: #fdfdfb;
}

/* DRASTICALLY REDUCED HEIGHT: 200vh means only 2 full scrolls for all 4 images */
        .scroll-section {
            position: relative;
            height: 200vh; 
        }

        .sticky-container {
            position: sticky;
            top: 0;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .product-visual {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        /* Black overlay */
        .product-visual::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6); 
            z-index: 2;
        }

        .product-image {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.3s ease-in-out; /* Faster fade to match fast scroll */
            will-change: opacity;
            object-fit: cover;
            z-index: 1;
        }

        .product-image.active {
            opacity: 1;
        }

        .text-overlay {
            position: absolute;
            max-width: 800px;
            width: 90%;
            text-align: center;
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
            z-index: 3;
            text-shadow: 0 4px 15px rgba(0,0,0,0.8);
        }

        .text-overlay.active {
            opacity: 1;
            transform: translateY(0);
        }

        .text-overlay p {
            font-family: "Cormorant Garamond", serif;
            color: #ffffff;
            font-size: 3.5rem;
            font-weight: 600;
            line-height: 1.1;
            padding: 0 20px;
        }

        .text-overlay.left { left: 7%; text-align: left; }
        .text-overlay.right { right: 7%; text-align: right; }

        @media (max-width: 768px) {
            .text-overlay p { font-size: 1.8rem; }
            .text-overlay.left, .text-overlay.right { left: 5%; right: 5%; text-align: center; }
        }

.footprint-section {
            background: #fafafa;
        }

        /* Horizontal scrolling container */
        .scroller-container {
            display: flex;
            overflow-x: auto;
            overflow-y: hidden;
            gap: 0;
            scroll-behavior: auto;
            cursor: grab;
            user-select: none;
            -webkit-overflow-scrolling: touch;
            will-change: scroll-position;
        }

        .scroller-container:active {
            cursor: grabbing;
            scroll-behavior: auto;
        }

        /* Hide scrollbar but keep functionality */
        .scroller-container::-webkit-scrollbar {
            display: none;
        }

        .scroller-container {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Title card (first card) */
        .title-card {
            flex: 0 0 400px;
            height: 500px;
            background: none;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 4rem;
            color: white;
            position: relative;
            overflow: hidden;
            opacity: 100;
            position: relative;        /* Add this */
            overflow: hidden;          /* Add this */
        }

        .title-card .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

        .title-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                repeating-linear-gradient(
                    45deg,
                    transparent,
                    transparent 10px,
                    rgba(255,255,255,0.02) 10px,
                    rgba(255,255,255,0.02) 20px
                );
            pointer-events: none;
        }

        .title-card h2 {
            font-family: "Cormorant Garamond", serif;
            font-size: 3rem;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: -0.5rem;
            position: center;
            z-index: 1;
        }

        .title-card h2,
        .title-card p {
            position: relative;
            z-index: 2;
        }

        /* Content cards */
        .footprint-card {
            flex: 0 0 450px;
            height: 500px;
            position: relative;
            overflow: hidden;
            opacity: 1;
            transform: translateX(0);
        }

        /* Image as background */
        .card-image-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .footprint-card:nth-child(3) .card-image-wrapper {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .footprint-card:nth-child(4) .card-image-wrapper {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Placeholder icon */
        .card-placeholder-icon {
            font-size: 6rem;
            filter: drop-shadow(2px 2px 8px rgba(0,0,0,0.3));
        }

        /* Overlay gradient for text readability */
        .card-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60%;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
            z-index: 1;
        }

        /* Card text content - positioned over image */
        .card-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 3rem;
            z-index: 2;
            color: white;
        }

        .card-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1rem;
            line-height: 1.3;
            font-family: "Cormorant Garamond", serif;
        }

        .card-description {
            font-size: 1.0625rem;
            line-height: 1.7;
            color: rgba(255,255,255,0.9);
        }

        /* Animations */
        @keyframes fadeInLeft {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .title-card {
                flex: 0 0 350px;
                height: 500px;
                padding: 2.5rem;
            }

            .title-card h2 {
                font-size: 2rem;
            }

            .title-card p {
                font-size: 1rem;
            }

            .footprint-card {
                flex: 0 0 350px;
                height: 500px;
            }

            .card-content {
                padding: 2rem;
            }

            .card-title {
                font-size: 1.5rem;
            }

            .card-description {
                font-size: 0.9375rem;
            }
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

        .footprint-section {
    position: relative;
    padding: 0;
    line-height: 0;
}

.nav-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: #9ea894;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: rgba(255,255,255,1);   /* Arrow visible but see-through */
    line-height: 1;
    padding: 0;
}

.nav-btn:hover {
    background: #9ea894;
    opacity: 0.7;
    color: white;                    /* Arrow fully visible on hover */
}

/* Remove individual positioning */
.prev-btn { left: unset; }
.next-btn { right: unset; }

.footprint-card, .title-card {
    user-select: none; /* Prevents text selection while dragging */
}