
/* SCROLL VIDEO SEQUENCE */
.scroll-sequence {
    /* Height allows for long scroll to play both videos */
    height: 400vh;
    position: relative;
    padding: 0;
    max-width: 100%;
}

.sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #f3f2f7;
    transition: top 0.4s ease, height 0.4s ease;
}

/* Optional overlay to darken videos slightly for text readability */
.sticky-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.sticky-container.dark-overlay::after {
    opacity: 1;
}

.video-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 800px;
    opacity: 0; /* Faded out initially */
    transition: opacity 0.5s ease, left 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-overlay-content.visible {
    opacity: 1;
}

#fraytech-anim-container {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 769px) {
    /* Le bouclier + wordmark glissent dans la moitié droite quand le texte hero apparaît */
    .sticky-container.split-layout #fraytech-anim-container {
        transform: translateX(25%);
    }

    /* Texte dans la moitié gauche — centré verticalement avec bon espacement */
    .sticky-container.split-layout .video-overlay-content {
        left: 0;
        width: 50%;
        padding: 0 3rem 0 5rem;
        transform: translateY(-50%);
        text-align: left;
    }

    .sticky-container.split-layout .hero-buttons {
        justify-content: flex-start !important;
    }
}

.video-overlay-content .badge {
    margin-bottom: 1.5rem;
}

.video-overlay-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.video-overlay-content p {
    font-size: 1.15rem;
    color: var(--text-color);
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* SCROLL HINT INDICATOR */
.scroll-hint {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(200, 200, 205, 0.4);
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.scroll-hint.hidden {
    opacity: 0;
}

.scroll-indicator-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    animation: floatPill 3s ease-in-out infinite;
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid #6B21D6;
    border-radius: 13px;
    position: relative;
    display: flex;
    justify-content: center;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: #6B21D6;
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 1.5s infinite;
}

.scroll-hint-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6B21D6;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

@keyframes floatPill {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
