/* parallel.day - Pop Art Aurora Prismatic */

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

:root {
    --black: #0d0d0d;
    --gold: #ffb830;
    --deep-navy: #1a1a2e;
    --violet: #7b2ff7;
    --cyan: #00d4ff;
    --dark-bg: #0d0e1a;
    --green: #00e88f;
    --light-lavender: #f0edf7;
}

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

body {
    font-family: 'Source Serif 4', serif;
    background: var(--dark-bg);
    color: var(--light-lavender);
    overflow-x: hidden;
}

.scroll-container {
    width: 100%;
}

/* Panel Base */
.panel {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 10vw, 9rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    -webkit-text-stroke: 3px var(--black);
    color: var(--light-lavender);
    margin-bottom: 1.5rem;
}

/* Panel 1 - The Split */
.panel-1 {
    background: var(--dark-bg);
}

.split-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 12rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    -webkit-text-stroke: 3px var(--black);
    color: transparent;
    background: linear-gradient(135deg, var(--violet), var(--cyan), var(--gold), var(--green));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: aurora-shift 8s ease infinite;
}

.split-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, var(--violet), var(--cyan));
    margin: 2rem auto;
    animation: pulse-height 3s ease-in-out infinite;
}

.split-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--light-lavender);
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.halftone-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--violet) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.08;
    pointer-events: none;
}

.aurora-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.aurora-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--violet);
    top: -100px;
    right: -100px;
    animation: float-slow 12s ease-in-out infinite;
}

.aurora-glow-2 {
    width: 300px;
    height: 300px;
    background: var(--cyan);
    bottom: -80px;
    left: -80px;
    animation: float-slow 10s ease-in-out infinite reverse;
}

/* Panel 2 - The Drift */
.panel-2 {
    background: var(--deep-navy);
}

.drift-columns {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
    text-align: left;
}

.drift-col {
    flex: 1;
    padding: 2rem;
    border: 2px solid rgba(123, 47, 247, 0.3);
    border-radius: 4px;
    position: relative;
}

.drift-col p {
    font-family: 'Source Serif 4', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
}

.drift-col-left {
    border-color: rgba(0, 212, 255, 0.4);
}

.drift-col-right {
    border-color: rgba(255, 184, 48, 0.4);
}

.chevron-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(135deg, var(--gold) 25%, transparent 25%),
        linear-gradient(225deg, var(--gold) 25%, transparent 25%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 0;
    opacity: 0.03;
    pointer-events: none;
}

.drift-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.orb-1 {
    width: 12px;
    height: 12px;
    background: var(--cyan);
    top: 20%;
    left: 15%;
    opacity: 0.6;
}

.orb-2 {
    width: 8px;
    height: 8px;
    background: var(--gold);
    top: 60%;
    right: 20%;
    opacity: 0.5;
    animation-delay: -3s;
}

.orb-3 {
    width: 16px;
    height: 16px;
    background: var(--violet);
    bottom: 25%;
    left: 40%;
    opacity: 0.4;
    animation-delay: -5s;
}

/* Panel 3 - Convergence */
.panel-3 {
    background: var(--black);
}

.convergence-text {
    font-family: 'Source Serif 4', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.convergence-lines {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 120px;
    gap: 12px;
}

.c-line {
    display: block;
    width: 2px;
    background: linear-gradient(to top, var(--violet), var(--cyan));
    border-radius: 1px;
    animation: converge-pulse 4s ease-in-out infinite;
}

.c-line-1 { height: 40px; animation-delay: 0s; }
.c-line-2 { height: 60px; animation-delay: 0.3s; }
.c-line-3 { height: 100px; animation-delay: 0.6s; }
.c-line-4 { height: 60px; animation-delay: 0.9s; }
.c-line-5 { height: 40px; animation-delay: 1.2s; }

.diagonal-stripes {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(123, 47, 247, 0.04) 10px,
        rgba(123, 47, 247, 0.04) 11px
    );
    pointer-events: none;
}

/* Panel 4 - The Spectrum */
.panel-4 {
    background: linear-gradient(180deg, var(--dark-bg), var(--deep-navy));
}

.spectrum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.spectrum-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    border: 2px solid var(--black);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.spectrum-cell:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px currentColor;
}

.spectrum-cell[data-hue="violet"] {
    background: var(--violet);
    color: var(--violet);
}

.spectrum-cell[data-hue="cyan"] {
    background: var(--cyan);
    color: var(--cyan);
}

.spectrum-cell[data-hue="gold"] {
    background: var(--gold);
    color: var(--gold);
}

.spectrum-cell[data-hue="green"] {
    background: var(--green);
    color: var(--green);
}

.spectrum-caption {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.7;
    margin-top: 1.5rem;
}

/* Panel 5 - The Return */
.panel-5 {
    background: var(--dark-bg);
}

.return-text {
    font-family: 'Source Serif 4', serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.return-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    margin: 0 auto;
    animation: breathe 4s ease-in-out infinite;
    box-shadow: 0 0 40px var(--violet), 0 0 80px var(--cyan);
}

.zigzag-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: 
        linear-gradient(135deg, var(--gold) 33.33%, transparent 33.33%) 0 0,
        linear-gradient(225deg, var(--gold) 33.33%, transparent 33.33%) 0 0;
    background-size: 20px 20px;
    background-repeat: repeat-x;
    opacity: 0.4;
}

/* Animations */
@keyframes aurora-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse-height {
    0%, 100% { transform: scaleY(1); opacity: 0.8; }
    50% { transform: scaleY(1.3); opacity: 1; }
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

@keyframes converge-pulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .drift-columns {
        flex-direction: column;
        gap: 2rem;
    }

    .spectrum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
