/* =============================================================================
   Scroll-Driven Pinned Poster Showcase Stage
   Designed for Brill Fort Dark Aesthetic (#0B0D0F / #111111)
   ============================================================================= */

.posters-showcase-section {
    position: relative;
    background-color: #0e1318;
    background: radial-gradient(circle at 50% 30%, #141c24 0%, #0e1318 65%, #0b0f14 100%);
    color: #ffffff;
    padding-top: 24px;
    padding-bottom: 24px;
    overflow: hidden;
    z-index: 5;
}

.posters-showcase-section .sec-head {
    margin-bottom: 12px !important;
}

.posters-showcase-section .sec-head {
}

.posters-showcase-section .sec-head h2 {
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 0;
}

.posters-showcase-section .sec-head h2 span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, #ffffff 30%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.posters-showcase-section .sub-head {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: #00d2ff;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Status Indicator */
.posters-showcase-section .stack-status {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.posters-showcase-section .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00d2ff;
    box-shadow: 0 0 10px #00d2ff, 0 0 20px rgba(0, 210, 255, 0.5);
    display: inline-block;
    animation: statusPulse 2s infinite ease-in-out;
}

.posters-showcase-section .poster-counter {
    font-size: 13px;
    font-weight: 600;
    color: #888888;
}

.posters-showcase-section .poster-counter strong {
    color: #00d2ff;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* =============================================================================
   Pinned Stage Container & Card Positioning
   ============================================================================= */

.posters-pinned-stage-outer {
    position: relative;
    width: 100%;
    background: #0e1318;
    background: radial-gradient(ellipse at 50% 50%, #151e28 0%, #0e1318 55%, #0b0f13 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 25px;
    box-sizing: border-box;
}

.posters-stage-container {
    position: relative;
    z-index: 5;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.posters-stage-viewport {
    position: relative;
    width: min(calc((100vh - 145px) * (16 / 9)), 88vw, 1360px);
    max-height: calc(100vh - 145px);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-card-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.poster-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    outline: none;
    cursor: pointer;
}

.poster-card-link:focus-visible {
    outline: 2px solid #00d2ff;
    outline-offset: 4px;
}

.poster-card-link.non-clickable {
    cursor: default;
}

.poster-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background-color: #11181c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 30px 80px -15px rgba(0, 0, 0, 0.85),
        0 0 70px -10px rgba(0, 210, 255, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    transform-origin: center center;
    will-change: transform, filter;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.poster-card-inner:hover {
    border-color: rgba(0, 210, 255, 0.55);
    box-shadow: 
        0 35px 95px -15px rgba(0, 0, 0, 0.9),
        0 0 85px -5px rgba(0, 210, 255, 0.32),
        0 0 0 1px rgba(0, 210, 255, 0.35);
}

/* Floating top pill bar */
.poster-card-topbar {
    position: absolute;
    top: 16px;
    left: 18px;
    right: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.poster-badge-pill {
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.poster-action-pill {
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 12px;
    width: 44px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.poster-action-pill i {
    transition: transform 0.25s ease;
}

.poster-card-inner:hover .poster-action-pill {
    background: #00d2ff;
    color: #000000;
    border-color: #00d2ff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.45);
}

.poster-card-inner:hover .poster-action-pill i {
    transform: translateX(2px);
}

/* Poster Media Container */
.poster-media-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d0e12;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.poster-card-inner:hover .poster-img {
    transform: scale(1.012);
}

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

@media screen and (max-width: 991px) {
    .posters-showcase-section {
        padding-top: 16px;
        padding-bottom: 20px;
    }

    .posters-showcase-section .sec-head {
    }

    .posters-showcase-section .sec-head h2 {
        font-size: 28px;
    }

    .posters-pinned-stage-outer {
        min-height: calc(100vh - 65px);
        padding-top: 10px;
        padding-bottom: 15px;
    }

    .posters-stage-viewport {
        width: min(calc((100vh - 125px) * (16 / 9)), 92vw);
        max-height: calc(100vh - 125px);
        aspect-ratio: 16 / 9;
    }

    .poster-card-topbar {
        top: 12px;
        left: 14px;
        right: 14px;
    }

    .poster-badge-pill {
        font-size: 11px;
        padding: 5px 12px;
    }

    .poster-action-pill {
        width: 38px;
        height: 26px;
        font-size: 11px;
        padding: 0;
    }
}

@media screen and (max-width: 767px) {
    .posters-showcase-section {
        padding-top: 14px;
        padding-bottom: 16px;
    }

    .posters-showcase-section .sec-head {
    }

    .posters-showcase-section .sec-head h2 {
        font-size: 22px;
    }

    .posters-pinned-stage-outer {
        min-height: calc(100vh - 60px);
        padding-top: 8px;
        padding-bottom: 12px;
    }

    .posters-stage-viewport {
        width: 100%;
        max-height: calc(100vh - 100px);
        aspect-ratio: 16 / 9;
    }

    .poster-card-inner {
        border-radius: 14px;
    }

    .poster-card-topbar {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .poster-badge-pill {
        font-size: 10px;
        padding: 4px 10px;
    }

    .poster-action-pill {
        width: 34px;
        height: 24px;
        font-size: 10px;
        padding: 0;
    }
}

/* =============================================================================
   Accessibility: Prefers-Reduced-Motion
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .poster-card-item {
        position: relative !important;
        margin-bottom: 30px !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .poster-card-inner {
        transform: none !important;
        filter: none !important;
    }
}


/* =============================================================================
   Projects Intro Hero Section (Exact Match to Reference Images 1 & 2)
   ============================================================================= */

.projects-intro-hero {
    position: relative;
    width: 100%;
    min-height: 84vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 85% 65%, rgba(20, 35, 60, 0.45) 0%, rgba(11, 14, 20, 1) 60%),
                radial-gradient(circle at 15% 35%, rgba(15, 25, 45, 0.3) 0%, rgba(11, 14, 20, 1) 50%),
                #0b0e14;
    color: #ffffff;
    padding: 100px 20px 80px 20px;
    overflow: hidden;
    z-index: 4;
}

/* Sparkles */
.hero-sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    animation: sparkleFloat 4s infinite ease-in-out;
}

.sparkle-top-left {
    top: 20%;
    left: 22%;
}

.sparkle-bottom-right {
    bottom: 18%;
    right: 8%;
    animation-delay: 1.5s;
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15) rotate(15deg);
        opacity: 0.95;
    }
}

.hero-top-tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #7e8b9b;
    text-transform: uppercase;
}

.hero-main-title {
    font-size: clamp(44px, 6.5vw, 86px);
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #eee7de;
    line-height: 1.1;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-transform: uppercase;
}

.build-word-wrap {
    position: relative;
    display: inline-block;
    color: #eee7de;
}

/* Underline SVG */
.build-underline-svg {
    position: absolute;
    left: -4%;
    bottom: -22px;
    width: 108%;
    height: 38px;
    pointer-events: none;
    overflow: visible;
}

.underline-path {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    transition: stroke-dashoffset 0.95s cubic-bezier(0.25, 1, 0.35, 1);
    will-change: stroke-dashoffset;
}

.underline-path.path-2 {
    transition-delay: 0.18s;
}

/* Drawn State - Triggered after page loads */
.projects-intro-hero.is-drawn .underline-path {
    stroke-dashoffset: 0;
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 22px);
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.explore-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 100px;
    border: 1px solid rgba(0, 210, 255, 0.45);
    background: rgba(0, 210, 255, 0.04);
    color: #00d2ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.08);
}

.explore-pill-btn:hover {
    background: #00d2ff;
    color: #0b0e14;
    border-color: #00d2ff;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}

.hero-dots-nav .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 6px;
    transition: all 0.3s ease;
}

.hero-dots-nav .dot.active {
    width: 8px;
    height: 8px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.hero-bottom-left-tag {
    position: absolute;
    bottom: 30px;
    left: 40px;
    display: flex;
    flex-direction: column;
    text-align: left;
    z-index: 3;
}

.hero-bottom-left-tag .sub-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-bottom-left-tag .prod-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 2px;
}

@media screen and (max-width: 767px) {
    .projects-intro-hero {
        min-height: 75vh;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    .build-underline-svg {
        bottom: -16px;
        height: 28px;
    }
    .hero-bottom-left-tag {
        bottom: 20px;
        left: 20px;
    }
}

/* =============================================================================
   Animate UI - Interactive Stars Dynamic Space Background
   ============================================================================= */

/* =============================================================================
   Ambient Backlight Stage Glow (Replacing Starfield)
   ============================================================================= */

.posters-ambient-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.ambient-glow-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88vw;
    height: 75vh;
    max-width: 1500px;
    max-height: 850px;
    background: radial-gradient(ellipse at center, rgba(0, 210, 255, 0.14) 0%, rgba(0, 160, 220, 0.05) 45%, rgba(14, 19, 24, 0) 72%);
    filter: blur(60px);
    pointer-events: none;
}

.ambient-glow-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, rgba(20, 32, 46, 0.5) 0%, rgba(14, 19, 24, 0.85) 65%, #0b0f14 100%);
    pointer-events: none;
}

.posters-stage-container {
    position: relative;
    z-index: 5;
}
