/* sarampass.com - Post-Seapunk Chrome Metallurgy */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #2a2d3e;
    color: #e8eaf6;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    position: relative;
}

/* ===== DEPTH GRADIENT OVERLAY ===== */
#depth-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2a2d3e 0%, #1a3a3a 40%, #0a6e6a 80%, #00e5cf 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== DEPTH GAUGE ORB ===== */
#depth-gauge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2d3e 0%, #c0c5d4 45%, #e8eaf6 55%, #c0c5d4 100%);
    z-index: 100;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 229, 207, 0.15);
    border: 1px solid rgba(192, 197, 212, 0.3);
}

#depth-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #00e5cf;
    border-radius: 50%;
    transition: height 0.3s ease;
}

/* ===== DEPTH ZONES ===== */
.depth-zone {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* ===== ZONE GRIDS ===== */
.zone-grid {
    display: grid;
    min-height: 100vh;
    align-items: center;
    position: relative;
}

.zone-grid--left {
    grid-template-columns: 1fr 0.15fr 1.8fr;
}

.zone-grid--right {
    grid-template-columns: 1.8fr 0.15fr 1fr;
}

.zone-grid--split {
    grid-template-columns: 35fr 10fr 55fr;
}

/* ===== ZONE CONTENT ===== */
.zone-content {
    padding: 4vh 0;
    position: relative;
    z-index: 2;
}

.zone-content--left {
    padding-left: 8vw;
    padding-right: 2vw;
}

.zone-content--right {
    padding-right: 8vw;
    padding-left: 2vw;
}

.zone-content--split-left {
    padding-left: 8vw;
    padding-right: 2vw;
    display: flex;
    align-items: center;
}

.zone-content--split-right {
    padding-right: 6vw;
    padding-left: 2vw;
}

.zone-content--wide-left {
    padding-left: 8vw;
    padding-right: 2vw;
    grid-column: 1 / 2;
}

.zone-content--centered {
    text-align: center;
    padding: 10vh 10vw;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* ===== TYPOGRAPHY ===== */
.headline {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(2.6rem, 6.5vw, 5.5rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #e8eaf6;
    margin-bottom: 1.5rem;
}

.headline--final {
    font-size: clamp(2rem, 5vw, 4rem);
}

.subheadline {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #e8eaf6;
    margin-bottom: 1.5rem;
}

.body-text {
    color: #c0c5d4;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.body-text strong,
.body-text b {
    font-weight: 600;
    color: #e8eaf6;
}

.accent-label {
    font-family: 'Comfortaa', cursive;
    font-weight: 300;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0a6e6a;
}

/* ===== CURRENT CHANNEL ===== */
.current-channel {
    position: relative;
    overflow: hidden;
}

.current-channel--wide {
    position: relative;
    overflow: hidden;
}

/* ===== BUBBLE PARTICLES ===== */
.bubble-particle {
    position: absolute;
    bottom: -20px;
    left: var(--x, 50%);
    width: var(--size, 4px);
    height: var(--size, 4px);
    border-radius: 50%;
    background: rgba(0, 229, 207, 0.4);
    animation: bubbleRise 10s linear infinite;
    animation-delay: var(--delay, 0s);
}

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

/* ===== ZONE SHAPES ===== */
.zone-shapes {
    position: relative;
    min-height: 100%;
}

.zone-shapes--right {
    position: relative;
}

.zone-shapes--left {
    position: relative;
}

/* ===== CHROME PEBBLE ===== */
.chrome-pebble {
    position: absolute;
    background: linear-gradient(135deg, #2a2d3e 0%, #c0c5d4 45%, #e8eaf6 55%, #c0c5d4 100%);
    background-size: 200% 200%;
    cursor: pointer;
    transition: background-position 0.6s ease;
}

.chrome-pebble:hover {
    background-position: 100% 100%;
}

.chrome-pebble.shake {
    animation: shake 0.5s ease;
}

/* ===== MONSTERA CHROME ===== */
.monstera-chrome {
    position: absolute;
    width: 180px;
    height: 220px;
    cursor: pointer;
}

.monstera-chrome.shake {
    animation: shake 0.5s ease;
}

/* ===== KELP RIBBONS ===== */
.kelp-ribbon {
    position: absolute;
    width: 40px;
    height: 300px;
    transform-origin: bottom center;
    animation: kelpSway 8s ease-in-out infinite alternate;
}

.anim-kelp {
    transform: scaleY(0);
    transform-origin: bottom center;
}

.anim-kelp.visible {
    animation: kelpGrow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, kelpSway 8s ease-in-out 1.2s infinite alternate;
}

@keyframes kelpGrow {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

@keyframes kelpSway {
    0% {
        transform: scaleY(1) rotate(-2deg);
    }
    100% {
        transform: scaleY(1) rotate(2deg);
    }
}

/* ===== MERCURY DROPLETS ===== */
.mercury-droplet {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2d3e 0%, #c0c5d4 45%, #e8eaf6 55%, #c0c5d4 100%);
    background-size: 200% 200%;
    animation: mercuryRoll 6s ease-in-out infinite;
    cursor: pointer;
}

.mercury-droplet.shake {
    animation: shake 0.5s ease;
}

.mercury-droplet--pulse {
    position: relative;
    margin-top: 2rem;
    animation: mercuryPulse 3s ease-in-out infinite;
}

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

@keyframes mercuryPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 229, 207, 0.1);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(0, 229, 207, 0.25);
    }
}

/* ===== ASCENDING MERCURY DROPLETS ===== */
.mercury-droplet--ascending {
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    animation: ascend 12s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes ascend {
    0% {
        bottom: -30px;
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* ===== SYNC MERCURY (Zone 5) ===== */
.mercury-droplet--sync {
    position: relative;
    display: inline-block;
    margin: 8px;
    animation: syncPulse 4s ease-in-out infinite;
    animation-delay: var(--sdelay, 0s);
}

@keyframes syncPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(0, 229, 207, 0.15);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(0, 229, 207, 0.4);
    }
}

.chrome-floor-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 4vh 20vw 15vh;
}

/* ===== TIDAL SHARDS ===== */
.tidal-shard {
    position: absolute;
    background: linear-gradient(135deg, #2a2d3e 0%, #c0c5d4 45%, #e8eaf6 55%, #c0c5d4 100%);
}

.tidal-shard--left {
    top: 15%;
    left: -40px;
    width: 120px;
    height: 200px;
    clip-path: polygon(0% 0%, 80% 10%, 100% 45%, 70% 90%, 20% 100%, 0% 60%);
}

.tidal-shard--right {
    top: 40%;
    right: -30px;
    width: 100px;
    height: 180px;
    clip-path: polygon(20% 0%, 100% 5%, 100% 55%, 85% 100%, 30% 95%, 0% 50%);
}

.tidal-shard--left-2 {
    bottom: 10%;
    left: -20px;
    width: 80px;
    height: 140px;
    clip-path: polygon(10% 0%, 90% 15%, 100% 60%, 75% 100%, 0% 85%, 5% 30%);
}

/* ===== BIOLUMINESCENT DOTS ===== */
.bioluminescent-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6fb7;
    box-shadow: 0 0 12px rgba(255, 111, 183, 0.6), 0 0 24px rgba(255, 111, 183, 0.3);
    animation: bioPulse 3s ease-in-out infinite;
    animation-delay: var(--bdelay, 0s);
}

@keyframes bioPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ===== FERN SPIRAL ===== */
.fern-spiral {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    opacity: 0.04;
    animation: spiralRotate 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes spiralRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== SHAKE ANIMATION ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* ===== SCROLL ENTRANCE ANIMATIONS ===== */
.anim-text {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zone-content--right .anim-text,
.zone-content--split-right .anim-text {
    transform: translateX(-30px);
}

.zone-content--centered .anim-text {
    transform: translateY(20px);
}

.anim-text.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.anim-shape {
    opacity: 0;
    transform: scale(0.8) rotate(-8deg);
    transition: opacity 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-shape.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Stagger delays for shapes */
.zone-shapes .anim-shape:nth-child(2) { transition-delay: 100ms; }
.zone-shapes .anim-shape:nth-child(3) { transition-delay: 200ms; }
.zone-shapes .anim-shape:nth-child(4) { transition-delay: 300ms; }
.zone-shapes .anim-shape:nth-child(5) { transition-delay: 400ms; }
.zone-shapes .anim-shape:nth-child(6) { transition-delay: 500ms; }
.zone-shapes .anim-shape:nth-child(7) { transition-delay: 600ms; }
.zone-shapes .anim-shape:nth-child(8) { transition-delay: 700ms; }

/* Stagger delays for text */
.zone-content .anim-text:nth-child(2) { transition-delay: 200ms; }
.zone-content .anim-text:nth-child(3) { transition-delay: 400ms; }
.zone-content .anim-text:nth-child(4) { transition-delay: 600ms; }

/* ===== ZONE-SPECIFIC BACKGROUNDS ===== */
#zone-1 {
    background: transparent;
}

#zone-2 {
    background: transparent;
}

#zone-3 {
    background: transparent;
}

#zone-4 {
    background: transparent;
    position: relative;
}

#zone-5 {
    background: radial-gradient(ellipse at center, rgba(0, 229, 207, 0.15) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== FLASH PINK ON SHAKE ===== */
.flash-pink {
    background: #ff6fb7 !important;
    transition: background 0.1s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .zone-grid--left,
    .zone-grid--right,
    .zone-grid--split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .zone-content--left,
    .zone-content--wide-left {
        padding-left: 8vw;
        padding-right: 3vw;
    }

    .zone-content--right,
    .zone-content--split-right {
        padding-left: 3vw;
        padding-right: 8vw;
    }

    .zone-content--split-left {
        padding-left: 8vw;
        padding-right: 3vw;
    }

    .zone-content--centered {
        padding: 10vh 6vw;
    }

    .current-channel {
        height: 60px;
    }

    .current-channel--wide {
        height: 80px;
    }

    .zone-shapes {
        position: relative;
        height: 50vh;
        min-height: 300px;
    }

    .zone-shapes--left {
        order: -1;
    }

    .headline {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .subheadline {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .tidal-shard {
        display: none;
    }

    .chrome-floor-cluster {
        padding: 4vh 8vw 12vh;
    }

    #depth-gauge {
        width: 36px;
        height: 36px;
        bottom: 20px;
        right: 20px;
    }

    .fern-spiral {
        width: 90vw;
        height: 90vw;
    }

    .kelp-ribbon {
        height: 200px;
    }
}

/* ===== SELECTION STYLE ===== */
::selection {
    background: rgba(0, 229, 207, 0.3);
    color: #e8eaf6;
}
