/* bada.moe - Underwater Kawaii World */
/* Palette: #e0f7fa, #4dd0e1, #00687a, #003844, #ff8a9e, #f8e8ff, #7efff5, #ffe5b4, #ffd700 */

:root {
    --shallow: #e0f7fa;
    --mid: #4dd0e1;
    --deep: #00687a;
    --abyss: #003844;
    --coral: #ff8a9e;
    --pearl: #f8e8ff;
    --biolum: #7efff5;
    --sand: #ffe5b4;
    --gold: #ffd700;
}

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

body {
    background: linear-gradient(to bottom,
        var(--shallow) 0%,
        #b2ebf2 15%,
        var(--mid) 30%,
        #26c6da 45%,
        var(--deep) 65%,
        #004d5a 80%,
        var(--abyss) 100%
    );
    min-height: 420vh;
    color: #2c4a52;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ================================================== */
/* SEAWEED COLUMNS                                    */
/* ================================================== */
.seaweed {
    position: fixed;
    bottom: 0;
    width: 22px;
    border-radius: 60% 40% 0 0 / 100% 100% 0 0;
    z-index: 2;
    pointer-events: none;
    transform-origin: bottom center;
    animation: sway 4s ease-in-out infinite;
}

.sw-left { left: 2rem; }
.sw-right { right: 2rem; }

.sw-1 {
    height: 220px;
    background: linear-gradient(180deg, rgba(77,208,225,0.15), rgba(0,104,122,0.55));
    left: 1.5rem;
}
.sw-2 {
    height: 170px;
    background: linear-gradient(180deg, rgba(77,208,225,0.2), rgba(0,104,122,0.5));
    left: 3rem;
    animation-delay: 0.8s;
    width: 16px;
}
.sw-3 {
    height: 130px;
    background: linear-gradient(180deg, rgba(77,208,225,0.15), rgba(0,104,122,0.4));
    left: 4rem;
    animation-delay: 1.8s;
    width: 14px;
}
.sw-4 {
    height: 200px;
    background: linear-gradient(180deg, rgba(77,208,225,0.2), rgba(0,104,122,0.5));
    right: 2rem;
    animation-delay: 1.2s;
}
.sw-5 {
    height: 150px;
    background: linear-gradient(180deg, rgba(77,208,225,0.15), rgba(0,104,122,0.4));
    right: 3.5rem;
    animation-delay: 2.5s;
    width: 15px;
}

@keyframes sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* ================================================== */
/* BUBBLES                                            */
/* ================================================== */
#bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%);
    pointer-events: none;
    animation: rise linear infinite;
    bottom: -30px;
}

.bub1  { width: 12px; height: 12px; left: 15%; animation-duration: 10s; }
.bub2  { width: 8px;  height: 8px;  left: 28%; animation-duration: 13s; animation-delay: 1s; }
.bub3  { width: 18px; height: 18px; left: 42%; animation-duration: 9s;  animation-delay: 3s; }
.bub4  { width: 6px;  height: 6px;  left: 55%; animation-duration: 14s; animation-delay: 2s; }
.bub5  { width: 10px; height: 10px; left: 68%; animation-duration: 11s; animation-delay: 5s; }
.bub6  { width: 14px; height: 14px; left: 80%; animation-duration: 8s;  animation-delay: 4s; }
.bub7  { width: 7px;  height: 7px;  left: 22%; animation-duration: 12s; animation-delay: 6s; }
.bub8  { width: 16px; height: 16px; left: 90%; animation-duration: 10s; animation-delay: 2.5s; }
.bub9  { width: 5px;  height: 5px;  left: 50%; animation-duration: 15s; animation-delay: 7s; }
.bub10 { width: 11px; height: 11px; left: 35%; animation-duration: 9s;  animation-delay: 8s; }

@keyframes rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50vh) translateX(12px);
        opacity: 0.4;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-110vh) translateX(-8px);
        opacity: 0;
    }
}

/* ================================================== */
/* OCEAN ZONES                                        */
/* ================================================== */
.ocean-zone {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    gap: 3rem;
    z-index: 1;
}

.reef {
    min-height: 140vh;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.deep {
    min-height: 120vh;
    padding-top: 6rem;
    padding-bottom: 8rem;
}

.treasure {
    min-height: 80vh;
    padding-bottom: 6rem;
}

/* ================================================== */
/* SURFACE / HERO                                     */
/* ================================================== */
.brand-name {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(3.5rem, 12vw, 7rem);
    color: #fff;
    text-shadow:
        0 3px 12px rgba(0,104,122,0.3),
        0 0 40px rgba(224,247,250,0.3);
    position: relative;
    z-index: 5;
    animation: bounceIn 1s cubic-bezier(0.25, 0.1, 0.25, 1.6);
    letter-spacing: 0.02em;
}

@keyframes bounceIn {
    0%   { transform: scale(0) rotate(-5deg); opacity: 0; }
    50%  { transform: scale(1.15) rotate(2deg); }
    70%  { transform: scale(0.95) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.brand-sub {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.4rem;
    color: var(--coral);
    position: relative;
    z-index: 5;
    animation: fadeUp 0.8s ease 0.5s both;
}

@keyframes fadeUp {
    0%   { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeUp 1s ease 1.2s both;
    z-index: 5;
}

.scroll-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}

.scroll-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%      { transform: rotate(45deg) translateY(6px); }
}

/* ================================================== */
/* FISH                                               */
/* ================================================== */
.fish {
    position: absolute;
    width: 30px;
    height: 20px;
    background: var(--coral);
    border-radius: 50%;
    z-index: 4;
}

.fish::after {
    content: '';
    position: absolute;
    right: -13px;
    top: 3px;
    border: 7px solid transparent;
    border-left: 10px solid var(--coral);
}

.fish::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

.fish-1 { top: 30%; left: 8%;  animation: swimRight 14s ease-in-out infinite; }
.fish-2 { top: 55%; right: 12%; animation: swimLeft  16s ease-in-out infinite; transform: scaleX(-1); }
.fish-3 { top: 70%; left: 20%; animation: swimRight 18s ease-in-out infinite 3s; width: 22px; height: 15px; background: var(--sand); }
.fish-3::after { border-left-color: var(--sand); }

.fish-reef-1 {
    top: 35%;
    left: 15%;
    animation: swimRight 12s ease-in-out infinite 1s;
    width: 24px;
    height: 16px;
    background: var(--pearl);
}
.fish-reef-1::after { border-left-color: var(--pearl); }

.fish-reef-2 {
    top: 60%;
    right: 18%;
    animation: swimLeft 10s ease-in-out infinite 2s;
    transform: scaleX(-1);
    width: 26px;
    height: 17px;
    background: var(--gold);
    opacity: 0.7;
}
.fish-reef-2::after { border-left-color: var(--gold); }

.fish-treasure-1 {
    bottom: 15%;
    left: 20%;
    animation: swimRight 15s ease-in-out infinite;
    opacity: 0.4;
    width: 22px;
    height: 14px;
}

.fish-treasure-2 {
    bottom: 25%;
    right: 25%;
    animation: swimLeft 13s ease-in-out infinite 2s;
    transform: scaleX(-1);
    opacity: 0.4;
    width: 20px;
    height: 13px;
}

@keyframes swimRight {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(120px); }
}

@keyframes swimLeft {
    0%, 100% { transform: scaleX(-1) translateX(0); }
    50%      { transform: scaleX(-1) translateX(120px); }
}

/* ================================================== */
/* JELLYFISH                                          */
/* ================================================== */
.jellyfish {
    position: absolute;
    z-index: 4;
}

.jf-hero {
    top: 18%;
    right: 20%;
    animation: jellyFloat 6s ease-in-out infinite, jellyDrift 18s ease-in-out infinite;
}

.jf-dome {
    width: 50px;
    height: 30px;
    background: rgba(248,232,255,0.6);
    border-radius: 50% 50% 20% 20%;
    position: relative;
}

.jf-face {
    position: absolute;
    top: 8px;
    left: 0;
    width: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 1;
}

.jf-eye {
    width: 5px;
    height: 5px;
    background: rgba(0,56,68,0.5);
    border-radius: 50%;
}

.jf-smile {
    width: 10px;
    height: 5px;
    border-bottom: 2px solid rgba(0,56,68,0.4);
    border-radius: 0 0 50% 50%;
    margin-top: -2px;
}

.jf-tentacles {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.jf-t {
    width: 2px;
    height: 22px;
    background: rgba(248,232,255,0.35);
    border-radius: 0 0 2px 2px;
    animation: tentacleWave 2s ease-in-out infinite;
}

.jf-t:nth-child(2) { animation-delay: 0.3s; height: 28px; }
.jf-t:nth-child(3) { animation-delay: 0.6s; height: 20px; }
.jf-t:nth-child(4) { animation-delay: 0.9s; height: 25px; }
.jf-t:nth-child(5) { animation-delay: 1.2s; }

@keyframes tentacleWave {
    0%, 100% { transform: translateX(0) skewX(0deg); }
    25%      { transform: translateX(3px) skewX(5deg); }
    75%      { transform: translateX(-3px) skewX(-5deg); }
}

@keyframes jellyFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-25px); }
}

@keyframes jellyDrift {
    0%, 100% { margin-left: 0; }
    50%      { margin-left: -40px; }
}

/* Deep bioluminescent jellyfish */
.jf-deep {
    z-index: 2;
}

.jf-deep-1 {
    top: 15%;
    left: 15%;
    animation: jellyFloat 5s ease-in-out infinite, jellyDrift 15s ease-in-out infinite;
    transform: scale(0.8);
}

.jf-deep-2 {
    top: 60%;
    right: 20%;
    animation: jellyFloat 7s ease-in-out infinite 1s, jellyDrift 20s ease-in-out infinite reverse;
    transform: scale(0.6);
}

.jf-dome-glow {
    background: rgba(126,255,245,0.3);
    box-shadow: 0 0 20px rgba(126,255,245,0.4), 0 0 40px rgba(126,255,245,0.15);
    animation: biolumGlow 3s ease-in-out infinite;
}

.jf-t-glow {
    background: rgba(126,255,245,0.25);
}

@keyframes biolumGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(126,255,245,0.3), 0 0 30px rgba(126,255,245,0.1); }
    50%      { box-shadow: 0 0 25px rgba(126,255,245,0.5), 0 0 50px rgba(126,255,245,0.2); }
}

/* ================================================== */
/* CORAL SHELVES                                      */
/* ================================================== */
.coral-shelf {
    width: 100%;
    max-width: 620px;
    position: relative;
    padding-top: 1rem;
}

.shelf-top {
    height: 22px;
    background: var(--coral);
    border-radius: 60% 40% 45% 55% / 100% 100% 0 0;
    opacity: 0.65;
    position: relative;
}

.shelf-top::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20%;
    width: 30%;
    height: 14px;
    background: inherit;
    border-radius: 50% 50% 0 0;
    opacity: 0.6;
}

.shelf-top::after {
    content: '';
    position: absolute;
    top: -4px;
    right: 15%;
    width: 20%;
    height: 10px;
    background: inherit;
    border-radius: 50% 50% 0 0;
    opacity: 0.5;
}

.shelf-top-alt {
    background: var(--sand);
    border-radius: 40% 60% 50% 40% / 100% 100% 0 0;
}

.shelf-top-mid {
    background: linear-gradient(90deg, var(--coral), var(--sand));
    border-radius: 55% 45% 40% 60% / 100% 100% 0 0;
}

.shelf-top-deep {
    background: rgba(126,255,245,0.25);
    border-radius: 50% 50% 45% 55% / 100% 100% 0 0;
    box-shadow: 0 0 12px rgba(126,255,245,0.2);
}

.shelf-content {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(2px);
    padding: 2rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 0 0 8px 8px;
}

.shelf-deco {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 30px;
    pointer-events: none;
}

/* ================================================== */
/* CONTENT BUBBLES                                    */
/* ================================================== */
.content-bubble {
    max-width: 360px;
    padding: 1.8rem 1.5rem;
    border-radius: 50% / 40%;
    background: radial-gradient(circle at 25% 15%, rgba(255,255,255,0.5), rgba(255,255,255,0.1) 75%);
    border: 1px solid rgba(255,255,255,0.25);
    text-align: center;
    animation: gentleDrift 5s ease-in-out infinite;
}

.glow-bubble {
    box-shadow: 0 0 20px rgba(126,255,245,0.3), inset 0 0 15px rgba(126,255,245,0.05);
    border-color: rgba(126,255,245,0.3);
    animation: gentleDrift 5s ease-in-out infinite, biolumGlow 3s ease-in-out infinite;
}

@keyframes gentleDrift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%      { transform: translateY(-4px) rotate(0.5deg); }
    66%      { transform: translateY(2px) rotate(-0.3deg); }
}

.bubble-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,56,68,0.2);
}

.bubble-body {
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* ================================================== */
/* STARFISH                                           */
/* ================================================== */
.starfish {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--sand);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.sf-1 { bottom: -8px; right: 30px; transform: rotate(15deg); }
.sf-2 { bottom: -8px; left: 45px; transform: rotate(-20deg); width: 18px; height: 18px; background: var(--coral); opacity: 0.6; }
.sf-3 { bottom: -6px; right: 60px; transform: rotate(40deg); width: 16px; height: 16px; }
.sf-treasure {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: rotate(10deg);
    width: 28px;
    height: 28px;
    background: var(--gold);
    opacity: 0.3;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ================================================== */
/* SHELLS                                             */
/* ================================================== */
.shell {
    position: absolute;
    width: 14px;
    height: 11px;
    background: var(--pearl);
    border-radius: 50% 50% 0 0;
    opacity: 0.5;
}

.sh-1 { bottom: -4px; left: 40px; }
.sh-2 { bottom: -6px; left: 80px; width: 10px; height: 8px; background: var(--sand); opacity: 0.4; }
.sh-3 { bottom: -5px; right: 50px; width: 12px; height: 9px; }
.sh-4 { bottom: -4px; left: 30px; }
.sh-5 { bottom: -6px; left: 100px; width: 10px; height: 8px; background: var(--coral); opacity: 0.3; }

/* ================================================== */
/* OCTOPUS                                            */
/* ================================================== */
.octopus {
    position: relative;
    animation: gentleDrift 4s ease-in-out infinite 1s;
}

.octo-head {
    width: 44px;
    height: 38px;
    background: var(--coral);
    border-radius: 42%;
    position: relative;
    margin: 0 auto;
}

.octo-eye {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    top: 13px;
}

.octo-eye::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--abyss);
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.octo-eye:first-child { left: 10px; }
.octo-eye:nth-child(2) { right: 10px; }

.octo-smile {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    border-bottom: 2px solid #fff;
    border-radius: 0 0 50% 50%;
}

.octo-tentacles {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.octo-t {
    width: 7px;
    height: 20px;
    background: var(--coral);
    border-radius: 0 0 50% 50%;
    animation: tentacleWave 1.8s ease-in-out infinite;
}

.octo-t:nth-child(1) { animation-delay: 0s; }
.octo-t:nth-child(2) { animation-delay: 0.2s; height: 24px; }
.octo-t:nth-child(3) { animation-delay: 0.4s; height: 22px; }
.octo-t:nth-child(4) { animation-delay: 0.6s; }

/* ================================================== */
/* SEAHORSE                                           */
/* ================================================== */
.seahorse {
    position: relative;
    width: 30px;
    height: 55px;
    animation: gentleDrift 3.5s ease-in-out infinite 0.5s;
}

.sh-body {
    position: absolute;
    width: 22px;
    height: 30px;
    background: var(--gold);
    border-radius: 50% 50% 30% 30%;
    top: 0;
    left: 4px;
    opacity: 0.8;
}

.sh-snout {
    position: absolute;
    width: 10px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    top: 8px;
    left: -4px;
    opacity: 0.8;
}

.sh-eye {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--abyss);
    border-radius: 50%;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.sh-tail {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    border-top: none;
    border-left: none;
    bottom: 2px;
    left: 6px;
    transform: rotate(45deg);
    opacity: 0.7;
}

/* ================================================== */
/* WHALE                                              */
/* ================================================== */
.whale {
    position: absolute;
    left: -150px;
    top: 35%;
    z-index: 0;
    animation: whaleDrift 25s ease-in-out infinite;
    opacity: 0.25;
}

.whale-body {
    width: 140px;
    height: 55px;
    background: var(--deep);
    border-radius: 60% 40% 40% 60%;
    position: relative;
}

.whale-eye {
    position: absolute;
    top: 20px;
    left: 28px;
    width: 7px;
    height: 7px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
}

.whale-smile {
    position: absolute;
    top: 30px;
    left: 18px;
    width: 16px;
    height: 8px;
    border-bottom: 2px solid rgba(255,255,255,0.4);
    border-radius: 0 0 50% 50%;
}

.whale-tail {
    position: absolute;
    right: -25px;
    top: 8px;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 30px solid var(--deep);
}

.whale-fin {
    position: absolute;
    top: -8px;
    left: 50px;
    width: 20px;
    height: 15px;
    background: var(--deep);
    border-radius: 50% 50% 0 50%;
    transform: rotate(-10deg);
}

@keyframes whaleDrift {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(calc(100vw + 300px)); }
    100% { transform: translateX(0); }
}

/* Musical notes from whale */
.note {
    position: absolute;
    font-size: 14px;
    color: var(--biolum);
    opacity: 0;
    animation: noteFloat 4s ease-in-out infinite;
}

.n1 { left: 35px; top: 0; }
.n2 { left: 50px; top: -5px; animation-delay: 1.2s; }
.n3 { left: 20px; top: 5px; animation-delay: 2.4s; }

@keyframes noteFloat {
    0%        { transform: translateY(0); opacity: 0; }
    20%       { opacity: 0.6; }
    80%       { opacity: 0.2; }
    100%      { transform: translateY(-35px) translateX(10px); opacity: 0; }
}

/* ================================================== */
/* ANGLERFISH                                         */
/* ================================================== */
.anglerfish {
    position: relative;
    margin-top: 2rem;
}

.angler-body {
    width: 45px;
    height: 35px;
    background: var(--deep);
    border-radius: 55% 45% 50% 50%;
    position: relative;
    opacity: 0.6;
}

.angler-eye {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
}

.angler-eye::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--abyss);
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

.angler-smile {
    position: absolute;
    top: 22px;
    left: 6px;
    width: 20px;
    height: 4px;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    border-radius: 0 0 0 0;
    z-index: 1;
}

.angler-lure {
    position: absolute;
    top: -30px;
    left: 20px;
}

.angler-rod {
    width: 2px;
    height: 25px;
    background: rgba(255,255,255,0.2);
    transform: rotate(20deg);
    transform-origin: bottom center;
}

.angler-light {
    width: 10px;
    height: 10px;
    background: var(--biolum);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--biolum), 0 0 30px rgba(126,255,245,0.3);
    position: absolute;
    top: -8px;
    left: -4px;
    animation: anglerPulse 2s ease-in-out infinite;
}

@keyframes anglerPulse {
    0%, 100% { box-shadow: 0 0 10px var(--biolum), 0 0 20px rgba(126,255,245,0.2); transform: scale(1); }
    50%      { box-shadow: 0 0 20px var(--biolum), 0 0 40px rgba(126,255,245,0.4); transform: scale(1.2); }
}

/* ================================================== */
/* BIOLUMINESCENT DOTS                                */
/* ================================================== */
.biolum-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--biolum);
    animation: biolumPulse 3s ease-in-out infinite;
}

.bd1  { width: 4px; height: 4px; top: 8%;  left: 12%; animation-delay: 0s; box-shadow: 0 0 8px var(--biolum); }
.bd2  { width: 3px; height: 3px; top: 15%; right: 18%; animation-delay: 0.8s; box-shadow: 0 0 6px var(--biolum); }
.bd3  { width: 5px; height: 5px; top: 25%; left: 38%; animation-delay: 1.6s; box-shadow: 0 0 10px var(--biolum); }
.bd4  { width: 3px; height: 3px; top: 35%; right: 30%; animation-delay: 0.4s; box-shadow: 0 0 6px var(--biolum); }
.bd5  { width: 4px; height: 4px; top: 50%; left: 22%; animation-delay: 1.2s; box-shadow: 0 0 8px var(--biolum); }
.bd6  { width: 3px; height: 3px; top: 60%; right: 45%; animation-delay: 2s; box-shadow: 0 0 6px var(--biolum); }
.bd7  { width: 5px; height: 5px; top: 70%; left: 55%; animation-delay: 0.6s; box-shadow: 0 0 10px var(--biolum); }
.bd8  { width: 3px; height: 3px; top: 18%; left: 65%; animation-delay: 1.4s; box-shadow: 0 0 6px var(--biolum); }
.bd9  { width: 4px; height: 4px; top: 42%; left: 8%;  animation-delay: 2.2s; box-shadow: 0 0 8px var(--biolum); }
.bd10 { width: 3px; height: 3px; top: 78%; right: 15%; animation-delay: 0.2s; box-shadow: 0 0 6px var(--biolum); }
.bd11 { width: 4px; height: 4px; top: 85%; left: 42%; animation-delay: 1.8s; box-shadow: 0 0 8px var(--biolum); }
.bd12 { width: 3px; height: 3px; top: 55%; right: 8%;  animation-delay: 2.6s; box-shadow: 0 0 6px var(--biolum); }

@keyframes biolumPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%      { opacity: 0.8; transform: scale(1.6); }
}

/* ================================================== */
/* TREASURE CHEST                                     */
/* ================================================== */
.treasure-chest {
    position: relative;
    margin-top: 3rem;
}

.chest-body {
    width: 70px;
    height: 40px;
    background: linear-gradient(180deg, #a07820, #8b6914);
    border-radius: 0 0 8px 8px;
    border: 2px solid var(--gold);
    position: relative;
}

.chest-lock {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.chest-lock::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 1px;
}

.chest-lid {
    width: 74px;
    height: 22px;
    background: linear-gradient(180deg, #b8891e, #a07820);
    border-radius: 8px 8px 0 0;
    border: 2px solid var(--gold);
    margin-left: -2px;
    transform-origin: bottom left;
}

.chest-glow {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(255,215,0,0.3), transparent 70%);
    border-radius: 50%;
    animation: chestGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes chestGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1; transform: translateX(-50%) scale(1.3); }
}

/* Chest open animation triggered by JS */
.chest-lid.open {
    animation: openLid 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes openLid {
    0%   { transform: rotate(0); }
    100% { transform: rotate(-45deg); }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 1.5s ease-in-out infinite;
    opacity: 0;
}

.sparkle.active {
    opacity: 1;
}

.sp1 { top: -20px; left: 5px;  animation-delay: 0s; }
.sp2 { top: -28px; left: 25px; animation-delay: 0.4s; }
.sp3 { top: -18px; right: 0;   animation-delay: 0.8s; }
.sp4 { top: -25px; right: -10px; animation-delay: 1.2s; width: 7px; height: 7px; }
.sp5 { top: -30px; left: 40px; animation-delay: 0.6s; width: 6px; height: 6px; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1.4) rotate(15deg); }
}

/* Treasure text */
.treasure-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.3rem;
    color: var(--gold);
    text-align: center;
    margin-top: 2rem;
    text-shadow: 0 0 20px rgba(255,215,0,0.3);
    line-height: 1.8;
}

.footer-creatures {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ================================================== */
/* FADE IN (SCROLL REVEAL)                            */
/* ================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1.3);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for coral shelves */
.cs-2.fade-in { transition-delay: 0.15s; }
.cs-3.fade-in { transition-delay: 0.3s; }

/* ================================================== */
/* RESPONSIVE                                         */
/* ================================================== */
@media (max-width: 768px) {
    .seaweed { display: none; }
    .whale { display: none; }
    .shelf-content { flex-direction: column; padding: 1.5rem 1rem; }
    .content-bubble { padding: 1.2rem 1rem; }
    .brand-name { font-size: clamp(2.5rem, 14vw, 5rem); }
    .coral-shelf { max-width: 95%; }
    .jf-hero { right: 10%; }
    .fish-1, .fish-3 { display: none; }
}

@media (max-width: 480px) {
    .ocean-zone { padding: 3rem 1rem; gap: 2rem; }
    .bubble-title { font-size: 1.3rem; }
    .bubble-body { font-size: 0.82rem; }
    .scroll-hint { bottom: 2rem; }
}
