/* bada.style - Pop-Art Retro-Futuristic Design */
/* Colors: #FF2D6B, #00E5FF, #E8FF00, #0A0A0F, #F5F0EB, #4A4A5A, #FF3333, #FF8C00 */
/* Fonts: Space Grotesk, DM Mono, Bangers */

:root {
    --hot-magenta: #FF2D6B;
    --electric-cyan: #00E5FF;
    --sour-lemon: #E8FF00;
    --deep-void: #0A0A0F;
    --paper-white: #F5F0EB;
    --halftone-gray: #4A4A5A;
    --glitch-red: #FF3333;
    --signal-orange: #FF8C00;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Mono', monospace;
    background: var(--deep-void);
    color: var(--paper-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== POSTER BASE ===== */
.poster {
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

/* ===== FLASH OVERLAY ===== */
.flash-overlay {
    position: absolute;
    inset: 0;
    background: var(--paper-white);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.08s ease-out;
}

.flash-overlay.flash-active {
    opacity: 1;
}

/* ===== BEN-DAY DOT OVERLAY ===== */
.ben-day-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--hot-magenta) 20%, transparent 20%);
    background-size: clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: dotPulse 4s ease-in-out infinite;
}

.ben-day-overlay.cyan-dots {
    background-image: radial-gradient(circle, var(--electric-cyan) 20%, transparent 20%);
}

.ben-day-overlay.lemon-dots {
    background-image: radial-gradient(circle, var(--sour-lemon) 20%, transparent 20%);
}

@keyframes dotPulse {
    0%, 100% { background-size: clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px); }
    50% { background-size: clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px); }
}

/* ===== POSTER 0: THE WAVE (Hero) ===== */
.poster-0 {
    background: var(--deep-void);
    border: 4px solid var(--deep-void);
    transform: rotate(-0.5deg);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(60px, 15vw, 200px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.92;
    text-transform: uppercase;
    color: var(--paper-white);
    text-align: center;
    position: relative;
    cursor: default;
    -webkit-text-stroke: 3px var(--paper-white);
}

.hero-title:hover .title-line,
.hero-title:hover .title-dot {
    animation: glitchText 0.3s ease-out;
}

.title-dot {
    color: var(--hot-magenta);
    -webkit-text-stroke: 3px var(--hot-magenta);
    display: inline-block;
    animation: dotBounce 2s ease-in-out infinite;
}

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

@keyframes glitchText {
    0% { text-shadow: 3px -2px 0 var(--glitch-red), -3px 2px 0 var(--electric-cyan); }
    25% { text-shadow: -3px 2px 0 var(--glitch-red), 3px -2px 0 var(--electric-cyan); }
    50% { text-shadow: 2px 3px 0 var(--glitch-red), -2px -3px 0 var(--electric-cyan); }
    75% { text-shadow: -2px -1px 0 var(--glitch-red), 2px 1px 0 var(--electric-cyan); }
    100% { text-shadow: none; }
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: 12%;
    right: 8%;
    background: var(--sour-lemon);
    color: var(--deep-void);
    padding: 16px 24px;
    border: 4px solid var(--deep-void);
    border-radius: 20px 20px 20px 4px;
    font-family: 'Bangers', cursive;
    font-size: clamp(18px, 2.5vw, 36px);
    transform: rotate(3deg);
    z-index: 5;
    max-width: 300px;
    text-align: center;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 24px;
    width: 0;
    height: 0;
    border-left: 20px solid var(--sour-lemon);
    border-bottom: 20px solid transparent;
    border-right: 4px solid transparent;
}

/* Geometric Accents */
.geometric-accent {
    position: absolute;
    z-index: 1;
}

.geo-circle {
    width: clamp(80px, 12vw, 180px);
    height: clamp(80px, 12vw, 180px);
    border: 4px solid var(--electric-cyan);
    border-radius: 50%;
    bottom: 15%;
    left: 8%;
    animation: spinSlow 20s linear infinite;
}

.geo-diamond {
    width: clamp(50px, 8vw, 120px);
    height: clamp(50px, 8vw, 120px);
    border: 4px solid var(--signal-orange);
    top: 20%;
    left: 12%;
    transform: rotate(45deg);
    animation: spinSlow 15s linear infinite reverse;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: bounceDown 1.5s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 32px;
    color: var(--sour-lemon);
    font-family: 'Space Grotesk', sans-serif;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

/* ===== POSTER 1: GLITCH GALLERY ===== */
.poster-1 {
    background: var(--deep-void);
}

.glitch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    width: min(80vw, 80vh);
    height: min(80vw, 80vh);
}

.glitch-panel {
    border: 4px solid var(--deep-void);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.glitch-panel::before,
.glitch-panel::after {
    content: attr(class);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.glitch-panel::before {
    color: var(--glitch-red);
    mix-blend-mode: screen;
}

.glitch-panel::after {
    color: var(--electric-cyan);
    mix-blend-mode: screen;
}

.glitch-panel:hover::before {
    opacity: 0.8;
    transform: translate(3px, -2px);
}

.glitch-panel:hover::after {
    opacity: 0.8;
    transform: translate(-3px, 2px);
}

.glitch-panel:hover {
    transform: scale(1.02);
}

.panel-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 700;
    color: var(--deep-void);
    position: relative;
    z-index: 2;
    transition: text-shadow 0.15s ease;
}

.glitch-panel:hover .panel-text {
    text-shadow: 3px -2px 0 var(--glitch-red), -3px 2px 0 var(--electric-cyan);
}

.panel-1 {
    background: var(--hot-magenta);
}

.panel-2 {
    background: var(--electric-cyan);
}

.panel-3 {
    background: var(--sour-lemon);
}

.panel-4 {
    background: var(--signal-orange);
}

/* ===== POSTER 2: MANIFESTO ===== */
.poster-2 {
    background: var(--hot-magenta);
    flex-direction: column;
}

.manifesto-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 10vw, 140px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.92;
    text-transform: uppercase;
    color: var(--paper-white);
    text-align: center;
    max-width: 90vw;
    cursor: default;
}

.manifesto-headline:hover {
    text-shadow: 3px -2px 0 var(--glitch-red), -3px 2px 0 var(--electric-cyan);
}

.ticker-tape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--sour-lemon);
    padding: 12px 0;
    overflow: hidden;
    z-index: 5;
    border-top: 4px solid var(--deep-void);
    border-bottom: 4px solid var(--deep-void);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
}

.ticker-content span {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--deep-void);
    text-transform: uppercase;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== POSTER 3: ARCHIVE ===== */
.poster-3 {
    background: var(--deep-void);
}

.poster-3 .poster-content {
    padding: 0;
}

.film-strip-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    overflow: hidden;
}

.film-strip {
    display: flex;
    gap: 4px;
    width: max-content;
}

.strip-1 {
    animation: stripScrollLeft 30s linear infinite;
}

.strip-2 {
    animation: stripScrollRight 45s linear infinite;
}

.strip-3 {
    animation: stripScrollLeftFast 25s linear infinite;
}

@keyframes stripScrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 2px)); }
}

@keyframes stripScrollRight {
    from { transform: translateX(calc(-50% - 2px)); }
    to { transform: translateX(0); }
}

@keyframes stripScrollLeftFast {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 2px)); }
}

.film-frame {
    width: clamp(80px, 10vw, 140px);
    height: clamp(80px, 10vw, 140px);
    border: 4px solid var(--deep-void);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.film-frame span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 700;
    color: var(--deep-void);
}

.ff-magenta { background: var(--hot-magenta); }
.ff-cyan { background: var(--electric-cyan); }
.ff-lemon { background: var(--sour-lemon); }
.ff-orange { background: var(--signal-orange); }
.ff-red { background: var(--glitch-red); }

/* ===== POSTER 4: CONTACT / COLOPHON ===== */
.poster-4 {
    background: var(--deep-void);
    overflow: hidden;
}

.split-diagonal-top {
    position: absolute;
    inset: 0;
    background: var(--electric-cyan);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 65%);
    z-index: 1;
}

.split-diagonal-bottom {
    position: absolute;
    inset: 0;
    background: var(--deep-void);
    clip-path: polygon(0 65%, 100% 45%, 100% 100%, 0 100%);
    z-index: 1;
}

.poster-4 .poster-content {
    z-index: 3;
    justify-content: space-between;
    padding-top: 8vh;
    padding-bottom: 8vh;
}

.waterfall-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.waterfall-line {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 7vw, 100px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    color: var(--deep-void);
}

.wf-1 { opacity: 1; color: var(--deep-void); }
.wf-2 { opacity: 0.7; color: var(--deep-void); }
.wf-3 { opacity: 0.5; color: var(--deep-void); }
.wf-4 { opacity: 0.3; color: var(--paper-white); }
.wf-5 { opacity: 0.2; color: var(--paper-white); }
.wf-6 { opacity: 0.12; color: var(--paper-white); }
.wf-7 { opacity: 0.08; color: var(--paper-white); }
.wf-8 { opacity: 0.05; color: var(--paper-white); }

.colophon {
    text-align: center;
    z-index: 5;
}

.colophon-text {
    font-family: 'DM Mono', monospace;
    font-size: clamp(11px, 1.4vw, 16px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.65;
    color: var(--halftone-gray);
    margin-bottom: 8px;
}

/* ===== POSTER ENTRANCE ANIMATION ===== */
.poster {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.poster.poster-visible {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .speech-bubble {
        top: 6%;
        right: 4%;
        font-size: 18px;
        padding: 10px 16px;
    }

    .glitch-grid {
        width: 90vw;
        height: 90vw;
    }

    .poster-content {
        padding: 24px;
    }

    .geo-circle,
    .geo-diamond {
        display: none;
    }

    .manifesto-headline {
        font-size: clamp(28px, 8vw, 80px);
    }
}
