/* ppuzzl.win — Deep Ocean Puzzle Dimension */

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

:root {
    --abyss-black: #060e1a;
    --deep-navy: #0a1628;
    --midnight: #0f1f38;
    --ocean-blue: #2a4a7f;
    --steel-blue: #8aa3c4;
    --ice-blue: #c0d6f0;
    --cyan-glow: #00e5ff;
    --coral-accent: #ff6b4a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background: var(--abyss-black);
    color: var(--ice-blue);
    overflow-x: hidden;
}

.parallax-container {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Depth Zones */
.depth-zone {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.surface {
    background: linear-gradient(180deg, #0f1f38 0%, #0a1628 100%);
}

.twilight {
    background: linear-gradient(180deg, #0a1628 0%, #060e1a 100%);
}

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

.abyssal {
    background: linear-gradient(180deg, #060e1a 0%, #030810 100%);
}

.hadal {
    background: #020508;
}

/* Typography */
.display-title {
    font-family: 'Darker Grotesque', sans-serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    letter-spacing: -0.03em;
    color: var(--ice-blue);
    text-align: center;
}

.display-title .accent {
    color: var(--cyan-glow);
}

.zone-heading {
    font-family: 'Darker Grotesque', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: -0.03em;
    color: var(--ice-blue);
    margin-bottom: 1rem;
}

.zone-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--steel-blue);
    margin-top: 0.5rem;
    text-align: center;
}

.zone-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    color: var(--steel-blue);
    max-width: 500px;
    line-height: 1.7;
    text-align: center;
}

.mono-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--cyan-glow);
    opacity: 0.7;
}

/* Zone Content */
.zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Depth Gauge */
.depth-gauge {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.depth-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--ocean-blue);
    letter-spacing: 0.1em;
}

/* Chevron */
.chevron-pulse {
    position: absolute;
    bottom: 3rem;
    animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Gradient Mesh Organisms */
.organism {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    transition: transform 0.8s ease, opacity 0.8s ease;
    pointer-events: none;
}

.organism-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
    background:
        radial-gradient(ellipse at 30% 40%, #00e5ff 0%, transparent 70%),
        radial-gradient(ellipse at 70% 60%, #ff6b4a 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #2a4a7f 0%, transparent 80%);
}

.organism-2 {
    width: 200px;
    height: 200px;
    bottom: 25%;
    right: 15%;
    background:
        radial-gradient(ellipse at 40% 30%, #00e5ff 0%, transparent 60%),
        radial-gradient(ellipse at 60% 70%, #8aa3c4 0%, transparent 50%);
}

.organism-3 {
    width: 250px;
    height: 250px;
    top: 15%;
    right: 10%;
    background:
        radial-gradient(ellipse at 50% 50%, #00e5ff 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, #2a4a7f 0%, transparent 70%);
    opacity: 0.3;
}

.organism-4 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 20%;
    background:
        radial-gradient(ellipse at 60% 40%, #ff6b4a 0%, transparent 55%),
        radial-gradient(ellipse at 40% 60%, #00e5ff 0%, transparent 70%);
    opacity: 0.25;
}

.organism-5 {
    width: 350px;
    height: 350px;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at 50% 40%, #00e5ff 0%, transparent 50%),
        radial-gradient(ellipse at 30% 60%, #0f1f38 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, #ff6b4a 0%, transparent 65%);
    opacity: 0.2;
}

.organism-6 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    background:
        radial-gradient(ellipse at 50% 50%, #00e5ff 0%, transparent 70%);
    opacity: 0.15;
}

.organism-7 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 50% 50%, #00e5ff 0%, transparent 60%);
    opacity: 0.1;
    animation: hadal-pulse 4s ease-in-out infinite;
}

@keyframes hadal-pulse {
    0%, 100% { opacity: 0.05; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.15; transform: translate(-50%, -50%) scale(1.1); }
}

/* Data Fragments */
.data-fragment {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 229, 255, 0.15);
    background: rgba(0, 229, 255, 0.03);
    border-radius: 2px;
}

/* Scroll-based opacity transitions */
.depth-zone .zone-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.depth-zone.visible .zone-content {
    opacity: 1;
    transform: translateY(0);
}
