
/* ==========================================================================
   GSAP PINNED SCROLL SHOWCASE
   ========================================================================== */
.scroll-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
}

/* Background Slider Stacking */
.slides-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05); /* Initial scale for reveal zoom effect */
    transition: none;
    z-index: 1;
    will-change: transform, opacity;
}

.slide-bg.active {
    opacity: 1;
    transform: scale(1.0);
    z-index: 2;
}

/* Dark Gradient Overlay over images for readability */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(10, 10, 10, 0.7) 0%, 
        rgba(10, 10, 10, 0.4) 50%, 
        rgba(10, 10, 10, 0.8) 100%
    );
}

/* Pinned Overlay UI Layout */
.showcase-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    padding: 0 5%;
     background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%),
                linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.showcase-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

/* Left Sidebar - Active Slide Progress indicator */
.showcase-sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
      display: none ;
}


.counter-num {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    padding-left: 15px;
}

.counter-num::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: var(--transition-fast);
}

.counter-num.active {
    color: var(--text-primary);
}

.counter-num.active::before {
    width: 10px;
}

.progress-bar-container {
    width: 2px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #fff;
    transition: height 0.3s ease;
}

/* Right Content Slides container */
.showcase-content {
    flex: 1;
    padding-left: 10%;
    position: relative;
    height: 450px;
}

/* Content Slides absolute stacking */
.content-slide {
    position: absolute;
    top: 65%;
    transform: translateY(-20%);
    width: 100%;
    max-width: 650px;
    opacity: 0;
    pointer-events: none;
    transition: none;
    will-change: opacity, transform;
}

.content-slide.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .showcase-content {
        padding-left: 5%;
    }
}

@media (max-width: 768px) {
    /* Pinned Showcase on Mobile */
    .showcase-overlay {
        padding: 0 5%;
    }

    .showcase-container {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 2rem;
    }

    .showcase-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        display: none ;
    }

    .progress-bar-container {
        width: 100px;
        height: 2px;
    }

    .progress-bar-fill {
        width: 0;
        height: 100%;
        transition: width 0.3s ease;
    }

    .showcase-content {
        padding-left: 0;
        height: 350px;
    }
}

