/* ============================================
   HERO SHOWCASE — Scroll-driven Before/After
   ============================================ */

.hero-showcase {
    position: relative;
    width: clamp(320px, 40vw, 520px);
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    /* Premium frame */
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(77, 166, 217, 0.08);
}

/* Both images take the full container */
.hero-showcase__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: opacity;
}

/* Before image: on top, opacity driven by scroll */
.hero-showcase__img--before {
    z-index: 2;
    opacity: 1; /* Will be animated by GSAP */
}

/* After image: always underneath */
.hero-showcase__img--after {
    z-index: 1;
}

/* Label badges */
.hero-showcase__label {
    position: absolute;
    z-index: 5;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

.hero-showcase__label--before {
    top: 1rem;
    left: 1rem;
    background: rgba(220, 80, 60, 0.7);
    color: #fff;
    opacity: 1; /* Will be animated by GSAP */
}

.hero-showcase__label--after {
    top: 1rem;
    left: 1rem;
    background: rgba(140, 198, 63, 0.7);
    color: #fff;
    opacity: 0; /* Will be animated by GSAP */
}

/* Glow border pulse during transition — driven by GSAP */
.hero-showcase__glow {
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, var(--cyan), var(--green));
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

/* Progress bar at the bottom of the showcase */
.hero-showcase__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%; /* Animated by GSAP */
    background: linear-gradient(90deg, var(--cyan), var(--green));
    z-index: 6;
    border-radius: 0 3px 0 0;
}

/* ============================================
   Zwischensektion — Full-width Scroll Showcase
   ============================================ */
.scroll-showcase-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
    position: relative;
    background: var(--bg-darker);
}

.framed-showcase {
    /* Override base .hero-showcase to make it massive and framed */
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(77, 166, 217, 0.05);
    margin: 0 auto;
}

/* Responsive constraints for the framed showcase */
@media (max-width: 900px) {
    .framed-showcase {
        aspect-ratio: 4 / 5;
        border-radius: var(--radius-lg);
    }
}
