/* ==========================================================================
   Flavor Scroll Collage v9.0
   Professional GSAP ScrollTrigger Implementation
   Author: uztzu87 by Zeenko Networks
   ========================================================================== */

:root {
    --fsc-accent: #ff9f27;
    --fsc-bg: #0a0a0a;
    --fsc-text: #ffffff;
}

/* ==========================================================================
   Section - Height controls scroll duration
   ========================================================================== */

.fsc-section {
    position: relative;
    width: 100%;
    height: 400vh; /* Scroll through 4 screens worth */
    background: var(--fsc-bg);
}

/* ==========================================================================
   Wrapper - Gets pinned by GSAP
   ========================================================================== */

.fsc-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: var(--fsc-bg);
    will-change: transform;
}

/* ==========================================================================
   Left - Text Content
   ========================================================================== */

.fsc-left {
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 5%;
    position: relative;
    z-index: 2;
}

.fsc-steps {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 200px;
}

.fsc-step {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.fsc-step.is-active {
    opacity: 1;
    visibility: visible;
}

.fsc-step-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.fsc-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 300;
    color: var(--fsc-accent);
    line-height: 1;
    min-width: 70px;
}

.fsc-text h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 35px;
    font-weight: bold;
    color: var(--fsc-text);
    margin: 0 0 12px 0;
    line-height: 1.35;
}

.fsc-text p {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 300;
    color: var(--fsc-text);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Right - Collage Image
   ========================================================================== */

.fsc-right {
    width: 55%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.fsc-collage-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.fsc-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gradient fade on left edge */
.fsc-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, var(--fsc-bg) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* ==========================================================================
   Progress Dots
   ========================================================================== */

.fsc-progress {
    position: absolute;
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.fsc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fsc-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.fsc-dot.is-active {
    background: var(--fsc-accent);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 159, 39, 0.4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .fsc-left {
        width: 40%;
    }
    
    .fsc-right {
        width: 60%;
    }
    
    .fsc-text h3 {
        font-size: 28px;
    }
    
    .fsc-text p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .fsc-section {
        height: 300vh;
    }
    
    .fsc-wrapper {
        flex-direction: column;
    }
    
    .fsc-left {
        width: 100%;
        height: 40%;
        order: 2;
        padding: 3vh 6%;
    }
    
    .fsc-right {
        width: 100%;
        height: 60%;
        order: 1;
    }
    
    .fsc-right::before {
        display: none;
    }
    
    .fsc-num {
        font-size: 2rem;
        min-width: 45px;
    }
    
    .fsc-text h3 {
        font-size: 24px;
    }
    
    .fsc-text p {
        font-size: 14px;
    }
    
    .fsc-progress {
        flex-direction: row;
        top: auto;
        bottom: 42%;
        left: 50%;
        transform: translateX(-50%);
        gap: 12px;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.fsc-section *,
.fsc-section *::before,
.fsc-section *::after {
    box-sizing: border-box;
}

.fsc-section h3,
.fsc-section p {
    margin: 0;
    padding: 0;
}

.fsc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 1rem;
}
