/* diplomatic.day - Styles */
/* Seapunk Diplomatic Salon - Deep Ocean Descent */

:root {
    --electric-cyan: #00f5d4;
    --vivid-violet: #7b2ff7;
    --hot-magenta: #f72585;
    --abyss-black: #0a0a1a;
    --midnight-teal: #0d1b2a;
    --twilight-navy: #1b2838;
    --lunar-gray: #c8d6e5;
    --abyssal-slate: #4a5568;
    --phosphor-teal: #0affce;
    --deep-orchid: #9d4edd;
    --medium-slate: #7b68ee;
    --scroll-progress: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    background: linear-gradient(to bottom, #0d1b2a 0%, #1b2838 20%, #0a0a1a 50%, #0a0a1a 90%, #0d1b2a 100%);
    color: var(--lunar-gray);
    overflow-x: hidden;
    min-height: 600vh;
}

/* Timeline Spine */
.timeline-spine {
    position: fixed;
    left: 10%;
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.timeline-spine.visible {
    opacity: 1;
}

.spine-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--electric-cyan) 0%,
        var(--medium-slate) 40%,
        var(--vivid-violet) 80%,
        var(--vivid-violet) 100%
    );
    box-shadow:
        0 0 10px rgba(0, 245, 212, 0.4),
        0 0 20px rgba(0, 245, 212, 0.2),
        0 0 40px rgba(123, 47, 247, 0.15);
}

/* Zones */
.zone {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Zone Watermarks */
.zone-watermark {
    position: absolute;
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(4rem, 10vw, 9rem);
    color: rgba(0, 245, 212, 0.08);
    pointer-events: none;
    user-select: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Zone 0 - Surface Hero */
.zone-0 {
    background: var(--midnight-teal);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.zone-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 245, 212, 0.06) 0%, transparent 70%);
    animation: surface-light 30s ease-in-out infinite;
    z-index: 1;
}

@keyframes surface-light {
    0% { background-position: 50% 50%; transform: scale(1); opacity: 1; }
    25% { transform: scale(1.1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.6; }
    75% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.zone-0-content {
    position: relative;
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: 0.03em;
    color: var(--electric-cyan);
    text-shadow:
        0 0 10px rgba(0, 245, 212, 0.8),
        0 0 30px rgba(0, 245, 212, 0.4),
        0 0 60px rgba(0, 245, 212, 0.2),
        0 0 100px rgba(123, 47, 247, 0.15);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.letter {
    display: inline-block;
    animation: letter-drift 6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.3s);
}

.letter.dot {
    margin: 0 0.05em;
}

.hero-tagline {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.85;
    color: var(--lunar-gray);
    max-width: 600px;
    opacity: 0.85;
}

@keyframes letter-drift {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

/* Chevron */
.chevron {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 2rem;
    animation: chevron-bounce 2s ease-in-out infinite;
    cursor: pointer;
}

.chevron-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--electric-cyan);
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.5);
}

.chevron-line:first-child {
    transform: rotate(45deg) translateX(4px);
}

.chevron-line:last-child {
    transform: rotate(-45deg) translateX(-4px);
}

@keyframes chevron-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.5; }
}

/* Zone Backgrounds */
.zone-1 {
    background: linear-gradient(to bottom, var(--midnight-teal), #152232);
}

.zone-2 {
    background: var(--twilight-navy);
}

.zone-3 {
    background: var(--abyss-black);
}

.zone-4 {
    background: var(--abyss-black);
}

.zone-5 {
    background: linear-gradient(to bottom, var(--abyss-black), #0d1520);
}

/* Depth Markers */
.depth-marker {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--electric-cyan);
    background: radial-gradient(circle, var(--hot-magenta) 0%, transparent 70%);
    z-index: 15;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    box-shadow:
        0 0 10px rgba(0, 245, 212, 0.4),
        0 0 20px rgba(0, 245, 212, 0.2);
    animation: marker-pulse 3s ease-in-out infinite;
    animation-play-state: paused;
}

.depth-marker.visible {
    opacity: 1;
    animation-play-state: running;
}

.depth-marker.expanded {
    width: 32px;
    height: 32px;
    box-shadow:
        0 0 10px rgba(0, 245, 212, 0.5),
        0 0 20px rgba(0, 245, 212, 0.3),
        0 0 36px rgba(0, 245, 212, 0.15),
        0 0 48px rgba(123, 47, 247, 0.1),
        0 0 60px rgba(123, 47, 247, 0.05);
}

.depth-marker-elaborate {
    box-shadow:
        0 0 10px rgba(0, 245, 212, 0.4),
        0 0 20px rgba(0, 245, 212, 0.2),
        0 0 36px rgba(0, 245, 212, 0.1);
}

.depth-marker-intense {
    border-color: var(--medium-slate);
    box-shadow:
        0 0 10px rgba(123, 104, 238, 0.5),
        0 0 30px rgba(123, 47, 247, 0.3);
}

.depth-marker-abyssal {
    border-color: var(--vivid-violet);
    background: radial-gradient(circle, var(--hot-magenta) 0%, var(--vivid-violet) 50%, transparent 70%);
    box-shadow:
        0 0 15px rgba(123, 47, 247, 0.5),
        0 0 30px rgba(123, 47, 247, 0.3),
        0 0 45px rgba(247, 37, 133, 0.15);
}

.depth-marker-final {
    width: 48px;
    height: 48px;
    border-width: 3px;
    background: linear-gradient(135deg, var(--electric-cyan), var(--vivid-violet));
    box-shadow:
        0 0 15px rgba(0, 245, 212, 0.4),
        0 0 30px rgba(0, 245, 212, 0.2),
        0 0 48px rgba(123, 47, 247, 0.2),
        0 0 60px rgba(123, 47, 247, 0.1),
        0 0 80px rgba(247, 37, 133, 0.08);
}

.marker-label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Overpass', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--medium-slate);
    white-space: nowrap;
}

@keyframes marker-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 245, 212, 0.4), 0 0 20px rgba(0, 245, 212, 0.2); }
    50% { box-shadow: 0 0 15px rgba(0, 245, 212, 0.6), 0 0 30px rgba(0, 245, 212, 0.3), 0 0 45px rgba(0, 245, 212, 0.15); }
}

/* Content Panels */
.content-panel {
    position: relative;
    z-index: 5;
    max-width: 50vw;
    padding: 3rem;
}

.content-panel p {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.85;
    color: var(--lunar-gray);
    margin-bottom: 1.5rem;
}

.content-panel p:last-child {
    margin-bottom: 0;
}

.panel-right {
    margin-left: auto;
    margin-right: 10%;
    padding-left: 2rem;
    border-left: 2px solid var(--electric-cyan);
    box-shadow: -20px 0 40px rgba(0, 245, 212, 0.08);
}

.panel-left {
    margin-left: 18%;
    margin-right: auto;
    padding-right: 2rem;
    border-right: 2px solid var(--electric-cyan);
    box-shadow: 20px 0 40px rgba(0, 245, 212, 0.08);
}

.panel-glow-only {
    border-left: none;
    box-shadow:
        -20px 0 60px rgba(0, 245, 212, 0.1),
        20px 0 60px rgba(123, 47, 247, 0.05);
}

.panel-void {
    border-right: none;
    background: transparent;
    box-shadow: none;
}

.panel-center {
    margin: 0 auto;
    text-align: center;
    max-width: 65vw;
    border: none;
    box-shadow: none;
}

/* Zone Headlines */
.zone-headline {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.03em;
    color: var(--electric-cyan);
    margin-bottom: 2rem;
    text-shadow:
        0 0 10px rgba(0, 245, 212, 0.8),
        0 0 30px rgba(0, 245, 212, 0.4),
        0 0 60px rgba(0, 245, 212, 0.2),
        0 0 100px rgba(123, 47, 247, 0.15);
}

.headline-intense {
    text-shadow:
        0 0 10px rgba(0, 245, 212, 0.8),
        0 0 30px rgba(0, 245, 212, 0.4),
        0 0 60px rgba(0, 245, 212, 0.2),
        0 0 150px rgba(123, 47, 247, 0.2),
        0 0 80px rgba(247, 37, 133, 0.15);
}

.headline-max-luminous {
    text-shadow:
        0 0 10px rgba(0, 245, 212, 0.9),
        0 0 30px rgba(0, 245, 212, 0.5),
        0 0 60px rgba(0, 245, 212, 0.3),
        0 0 100px rgba(0, 245, 212, 0.15),
        0 0 80px rgba(247, 37, 133, 0.2),
        0 0 120px rgba(123, 47, 247, 0.15);
}

/* Blob Shapes */
.blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 16s ease-in-out infinite;
    will-change: border-radius;
    z-index: 2;
    pointer-events: none;
}

.blob-large {
    background: radial-gradient(ellipse, rgba(0, 245, 212, 0.05) 0%, transparent 70%);
    opacity: 0.6;
}

.blob-teal {
    background: radial-gradient(ellipse, rgba(10, 255, 206, 0.08) 0%, transparent 70%);
    opacity: 0.5;
}

.blob-orchid {
    background: radial-gradient(ellipse, rgba(157, 78, 221, 0.06) 0%, transparent 70%);
    opacity: 0.5;
}

.blob-small {
    animation-duration: 12s;
}

.blob-vivid {
    opacity: 0.8;
}

.blob-vivid.blob-teal {
    background: radial-gradient(ellipse, rgba(10, 255, 206, 0.12) 0%, transparent 70%);
}

.blob-vivid.blob-orchid {
    background: radial-gradient(ellipse, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
}

@keyframes blob-morph {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25%  { border-radius: 58% 42% 60% 40% / 47% 62% 38% 53%; }
    50%  { border-radius: 42% 58% 35% 65% / 63% 37% 55% 45%; }
    75%  { border-radius: 65% 35% 55% 45% / 38% 58% 42% 62%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Bubbles */
.bubble-cluster {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.bubble-cluster-right {
    right: 8%;
    top: 0;
    bottom: 0;
    width: 60px;
}

.bubble-cluster-left {
    left: 18%;
    top: 0;
    bottom: 0;
    width: 60px;
}

.bubble-cluster-full {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.bubble {
    position: absolute;
    width: var(--size, 10px);
    height: var(--size, 10px);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 245, 212, 0.25), transparent 70%);
    border: 1px solid rgba(0, 245, 212, 0.15);
    bottom: -20px;
    left: calc(50% + var(--x, 0px));
    animation: bubble-rise 8s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.bubble-bright {
    background: radial-gradient(circle at 30% 30%, rgba(0, 245, 212, 0.35), transparent 70%);
    border: 1px solid rgba(0, 245, 212, 0.25);
}

@keyframes bubble-rise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

/* Progressive Disclosure / Reveal */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Declassify Node */
.declassify-node {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

.declassify-ring {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--electric-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
    animation: marker-pulse 3s ease-in-out infinite;
    transition: all 0.4s ease;
}

.declassify-core {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hot-magenta);
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(247, 37, 133, 0.6);
    transition: all 0.4s ease;
}

.declassify-label {
    font-family: 'Overpass', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--electric-cyan);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.declassify-node:hover .declassify-label {
    opacity: 1;
}

.declassify-node:hover .declassify-ring {
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.7), 0 0 30px rgba(0, 245, 212, 0.3);
}

.declassify-node.active .declassify-core {
    background: var(--electric-cyan);
    box-shadow: 0 0 12px rgba(0, 245, 212, 0.8);
}

/* Classified Content */
.classified-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease, opacity 0.6s ease;
    opacity: 0;
}

.classified-content.declassified {
    max-height: 500px;
    opacity: 1;
}

/* Concluding Text */
.concluding-text {
    font-size: clamp(1.1rem, 1.4vw, 1.4rem) !important;
}

/* Hadal Seal */
.hadal-seal {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.seal-text {
    font-family: 'Overpass', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--abyssal-slate);
    padding: 0.8rem 2rem;
    border: 1px solid rgba(74, 85, 104, 0.3);
    border-radius: 2px;
    transition: color 0.5s ease, border-color 0.5s ease;
}

.seal-text:hover {
    color: var(--electric-cyan);
    border-color: rgba(0, 245, 212, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-spine {
        left: 5%;
    }

    .content-panel {
        max-width: 80vw;
        padding: 2rem;
    }

    .panel-right {
        margin-right: 5%;
    }

    .panel-left {
        margin-left: 12%;
    }

    .depth-marker {
        left: 5%;
    }

    .marker-label {
        left: 30px;
    }

    .panel-center {
        max-width: 90vw;
    }
}

@media (max-width: 480px) {
    .content-panel {
        max-width: 90vw;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}
