﻿/* Reset margins to prevent the initial jump */
.scroll-track {
    height: 400vh; /* Total scroll depth */
    position: relative;
    margin: 0;
    padding: 0;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    /* Changed from center to flex-start and added padding to control top gap */
    display: flex;
    align-items: flex-start;
}

/* 2. FIX TEXT CUT-OFF: Make background wider than screen */
.marquee-bg {
    position: absolute;
    /* Adjust this percentage (e.g., 35% or 40%) to move text higher or lower */
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* Wide enough to never see edges */
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.track {
    font-size: 13vw; /* Large size as per your screenshot */
    font-weight: 900;
    text-transform: uppercase;
    color: #f15a8a;
    opacity: 0.9;
    white-space: nowrap;
    /* Tighten line-height to reduce vertical space between rows */
    line-height: 1;
    animation: moveLeft 80s ease-in-out infinite;
}

.step-content {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    width: 100%;
    transform: translate(-0%, 30%);
}

.laptop-img {
    max-width: 100%;
    height: auto;
    z-index: 20;
    position: relative;
    transform: translate(-0%, 30%);
}

/* ULTRA-SLOW WIGGLE */
@keyframes moveLeft {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8%);
    }

    50% {
        transform: translateX(0);
    }

    75% {
        transform: translateX(8%);
    }

    100% {
        transform: translateX(0);
    }
}