/* relative.quest — Frutiger Aero Underwater Observatory */

:root {
    --deep-navy: #0b1628;
    --white: #ffffff;
    --coral-orange: #ff8c42;
    --soft-gray: #d4dce8;
    --electric-cyan: #42d4e8;
    --abyss-black: #060d18;
    --emerald: #42e88c;
    --slate-blue: #8ea4b8;
    --pale-bg: #f0f4f8;
    --gold: #f5b942;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--abyss-black);
    color: var(--pale-bg);
    overflow-x: hidden;
}

/* Ocean Background Layers */
#ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.depth-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.depth-far {
    background: linear-gradient(180deg, #0b1628 0%, #060d18 100%);
}

.depth-mid {
    background: radial-gradient(ellipse at 50% 30%, rgba(66, 212, 232, 0.08) 0%, transparent 60%);
}

.depth-near {
    background: radial-gradient(ellipse at 30% 70%, rgba(66, 232, 140, 0.04) 0%, transparent 50%);
}

/* Bubble & Fish Canvases */
#bubble-canvas, #fish-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Parallax Container */
#parallax-container {
    position: relative;
    z-index: 2;
}

/* Dive Sections */
.dive-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

/* Glass Panel — Frutiger Aero translucent acrylic */
.glass-panel {
    background: linear-gradient(135deg, rgba(11, 22, 40, 0.7) 0%, rgba(11, 22, 40, 0.5) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(66, 212, 232, 0.2);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(66, 212, 232, 0.4), transparent);
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

.panel-left {
    margin-right: auto;
    margin-left: 10%;
}

.panel-right {
    margin-left: auto;
    margin-right: 10%;
}

.panel-center {
    margin: 0 auto;
}

/* Typography */
.display-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw + 0.5rem, 4.2rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--pale-bg);
    text-shadow: 0 0 40px rgba(66, 212, 232, 0.3);
    margin-bottom: 1rem;
}

.subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    color: var(--slate-blue);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.body-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--soft-gray);
    margin-bottom: 1.5rem;
}

.mono-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--slate-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Section Badge */
.section-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--coral-orange);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 20px;
    display: inline-block;
}

/* Depth Indicator */
.depth-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.depth-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--slate-blue);
    letter-spacing: 0.2em;
}

.depth-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.5rem;
    color: var(--electric-cyan);
    font-weight: 500;
}

/* Scroll Hint */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    animation: bob 2s ease-in-out infinite;
}

.scroll-hint span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--electric-cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.chevron-down {
    margin-top: 0.5rem;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Data Readout */
.data-readout {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(6, 13, 24, 0.5);
    border: 1px solid rgba(66, 212, 232, 0.15);
    border-radius: 12px;
}

.readout-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--slate-blue);
    letter-spacing: 0.15em;
}

.readout-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.3rem;
    color: var(--emerald);
}

/* Clock Display */
.clock-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(6, 13, 24, 0.5);
    border: 1px solid rgba(66, 212, 232, 0.15);
    border-radius: 12px;
}

.clock-time {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.clock-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--slate-blue);
    letter-spacing: 0.15em;
}

/* Entangle Visualization */
.entangle-viz {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.5rem;
}

.particle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: pulse-particle 2s ease-in-out infinite;
}

.particle-a {
    background: radial-gradient(circle, var(--electric-cyan), rgba(66, 212, 232, 0.3));
    box-shadow: 0 0 20px rgba(66, 212, 232, 0.5);
}

.particle-b {
    background: radial-gradient(circle, var(--coral-orange), rgba(255, 140, 66, 0.3));
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
    animation-delay: -1s;
}

@keyframes pulse-particle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.entangle-line {
    opacity: 0.6;
}

/* Word Shift */
.word-shift {
    padding: 1rem;
    text-align: center;
}

.shifting-word {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--electric-cyan), var(--coral-orange), var(--emerald));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Abyss Glow */
.abyss-glow {
    width: 120px;
    height: 120px;
    margin: 2rem auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 212, 232, 0.3) 0%, rgba(66, 232, 140, 0.1) 40%, transparent 70%);
    animation: abyss-pulse 3s ease-in-out infinite;
}

@keyframes abyss-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .glass-panel {
        padding: 2rem;
        margin: 0 1rem;
    }
    .panel-left, .panel-right {
        margin-left: auto;
        margin-right: auto;
    }
}
