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

:root {
    --bg: #020810;
    --deep: #061224;
    --surface: #0a1a36;
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.06);
    --cyan-glow: rgba(0, 212, 255, 0.18);
    --cyan-bright: #60e8ff;
    --teal: #00b4d8;
    --aqua: #48cae4;
    --text: #b8d4ea;
    --text-bright: #dceaf8;
    --muted: #3a5a78;
    --gold: #c9a96e;
    --font-display: 'Syne', sans-serif;
    --font-body: 'IBM Plex Mono', monospace;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    cursor: none;
}

/* ========== DEEP OCEAN ATMOSPHERE ========== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 25% 15%, rgba(0, 180, 216, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 75% 85%, rgba(0, 212, 255, 0.03) 0%, transparent 55%),
        radial-gradient(ellipse 120% 80% at 50% 100%, rgba(6, 18, 36, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, #020810 0%, #04101e 30%, #061628 60%, #050e1c 100%);
    z-index: 0;
    pointer-events: none;
}

/* Subtle animated caustic shimmer on background */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 30% at 30% 40%, rgba(0, 212, 255, 0.02) 0%, transparent 100%),
        radial-gradient(ellipse 35% 25% at 70% 60%, rgba(72, 202, 228, 0.015) 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
    animation: causticShift 12s ease-in-out infinite alternate;
}

@keyframes causticShift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(20px, -15px) scale(1.05); opacity: 1; }
    100% { transform: translate(-15px, 10px) scale(0.97); opacity: 0.7; }
}

/* ========== WATER CANVAS ========== */
#water-surface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.75;
}

/* ========== CUSTOM WATER CURSOR ========== */
.water-cursor {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(0, 212, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6), 0 0 20px rgba(0, 212, 255, 0.2);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.water-cursor.active {
    width: 10px;
    height: 10px;
    background: rgba(0, 212, 255, 1);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.3);
}

.water-cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s,
                opacity 0.3s;
}

.water-cursor-ring.active {
    width: 50px;
    height: 50px;
    border-color: rgba(0, 212, 255, 0.4);
}

/* ========== BACK LINK ========== */
.back-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 100;
    cursor: none;
}
.back-link:hover { color: var(--cyan); }
.back-link svg { transition: transform 0.3s ease; }
.back-link:hover svg { transform: translateX(-4px); }

/* ========== PROJECT LABEL ========== */
.project-label {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cyan);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.3s;
}

/* ========== WATER WORLD (main content) ========== */
.water-world {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 5rem;
}

/* ========== FLOATING HERO ========== */
.floating-hero {
    text-align: center;
    animation: floatGentle 7s ease-in-out infinite;
}

@keyframes floatGentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(0.3deg); }
    75% { transform: translateY(5px) rotate(-0.2deg); }
}

.water-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.2rem, 11vw, 9rem);
    line-height: 1.0;
    letter-spacing: -0.04em;
}

.water-title .line {
    display: block;
    overflow: hidden;
}

.water-title .line span {
    display: inline-block;
    opacity: 0;
    transform: translateY(110%);
    animation: slideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.water-title .line:nth-child(1) span {
    animation-delay: 0.4s;
    color: var(--text-bright);
}

.water-title .line:nth-child(2) span {
    animation-delay: 0.65s;
}

.water-title .accent {
    color: transparent;
    -webkit-text-stroke: 2px var(--cyan);
    filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.25));
}

.water-sub {
    margin-top: 1.8rem;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    font-weight: 300;
    font-style: italic;
    color: var(--muted);
    letter-spacing: 0.08em;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1s;
}

/* ========== FLOATING ORBS ========== */
.floating-orbs {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.3s;
}

.water-orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.1);
    background:
        radial-gradient(circle at 35% 35%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
        rgba(2, 8, 16, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle glow ring on hover */
.water-orb::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, transparent 60%, rgba(0, 212, 255, 0.2) 80%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: orbRotate 4s linear infinite;
}

@keyframes orbRotate {
    to { transform: rotate(360deg); }
}

.water-orb:hover::after { opacity: 1; }

.water-orb:hover {
    background:
        radial-gradient(circle at 35% 35%, rgba(0, 212, 255, 0.12) 0%, transparent 60%),
        rgba(2, 8, 16, 0.5);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow:
        0 0 50px rgba(0, 212, 255, 0.1),
        inset 0 0 30px rgba(0, 212, 255, 0.04);
}

/* Each orb bobs at different rates */
.orb-1 { animation: floatOrb1 5.5s ease-in-out infinite; }
.orb-2 { animation: floatOrb2 6.5s ease-in-out infinite 0.7s; }
.orb-3 { animation: floatOrb3 5s ease-in-out infinite 1.4s; }

@keyframes floatOrb1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    30% { transform: translateY(-10px) translateX(3px); }
    70% { transform: translateY(6px) translateX(-2px); }
}
@keyframes floatOrb2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    40% { transform: translateY(-7px) translateX(-4px); }
    80% { transform: translateY(8px) translateX(2px); }
}
@keyframes floatOrb3 {
    0%, 100% { transform: translateY(0) translateX(0); }
    35% { transform: translateY(-12px) translateX(2px); }
    65% { transform: translateY(4px) translateX(-3px); }
}

.orb-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.orb-label {
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.orb-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ========== INSTRUCTIONS ========== */
.water-instructions {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 1.6s;
}

.instruction {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.instruction-dot {
    width: 7px;
    height: 7px;
    border: 1.5px solid var(--cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

.instruction-dot.filled {
    background: var(--cyan);
}

.instruction-dot.pulse {
    background: var(--cyan);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 5px rgba(0, 212, 255, 0); }
}

/* ========== STATUS BAR ========== */
.status-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 2s;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .back-link {
        position: static;
        margin: 1.5rem 1.5rem 0;
        z-index: 100;
    }
    .project-label {
        position: static;
        text-align: center;
        margin: 0.5rem 0 0;
    }
    .water-world {
        padding: 1.5rem;
        gap: 3rem;
    }
    .floating-orbs {
        gap: 1.5rem;
    }
    .water-orb {
        width: 95px;
        height: 95px;
    }
    .orb-value { font-size: 1rem; }
    .water-instructions {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    body { cursor: auto; }
    .water-cursor, .water-cursor-ring { display: none; }
}

@media (max-width: 480px) {
    .water-title {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }
}
