/* ============================================
   senggack.com — Deep-Sea Goblincore Aquarium
   ============================================ */

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

:root {
    --bg-surface: #0a3d5c;
    --bg-mid: #061e2f;
    --bg-deep: #030d14;
    --text-primary: #caf0f8;
    --headline-glow: #90e0ef;
    --accent-bright: #00b4d8;
    --organism-violet: #c77dff;
    --organism-hot: #f72585;
    --venom-trail: #06d6a0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* ---- MARINE SNOW ---- */
#marine-snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snow-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--headline-glow);
    will-change: transform;
}

@keyframes fall {
    from { transform: translateY(-20px); }
    to { transform: translateY(calc(100vh + 20px)); }
}

/* ---- FISH SILHOUETTES ---- */
#fish-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.fish {
    position: absolute;
    color: var(--accent-bright);
    opacity: 0.08;
    will-change: transform;
}

.fish-1 {
    width: 100px;
    top: 20%;
    left: -120px;
    animation: swimRight 45s linear infinite;
    animation-delay: 5s;
}
.fish-2 {
    width: 70px;
    top: 45%;
    right: -90px;
    animation: swimLeft 55s linear infinite;
    animation-delay: 12s;
    opacity: 0.06;
}
.fish-3 {
    width: 110px;
    top: 70%;
    left: -140px;
    animation: swimRight 60s linear infinite;
    animation-delay: 20s;
    opacity: 0.1;
}
.fish-4 {
    width: 60px;
    top: 85%;
    right: -80px;
    animation: swimLeft 40s linear infinite;
    animation-delay: 0s;
    opacity: 0.07;
}

@keyframes swimRight {
    from { transform: translateX(-120px); }
    to { transform: translateX(calc(100vw + 140px)); }
}
@keyframes swimLeft {
    from { transform: translateX(120px); }
    to { transform: translateX(calc(-100vw - 140px)); }
}

/* ---- CONTOUR BACKGROUND ---- */
#contour-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    pointer-events: none;
    z-index: 0;
}

/* ---- PRESSURE CRACKS ---- */
#pressure-cracks {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}
body.deep-zone #pressure-cracks {
    opacity: 1;
}

/* ---- ZONE LAYOUT ---- */
.zone {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.zone-content {
    max-width: 640px;
    width: 100%;
    padding: 0 24px;
    margin: 0 auto;
}

#surface {
    min-height: 100vh;
    padding: 8vh 0;
}
#surface .zone-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.mesopelagic {
    padding: 12vh 0;
}
.bathypelagic {
    padding: 16vh 0;
}
.abyssal {
    padding: 24vh 0;
}

/* ---- HERO ---- */
#title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--headline-glow);
    text-shadow: 0 0 30px rgba(144, 224, 239, 0.25);
    opacity: 0;
    animation: titleReveal 1.5s ease-out 0.5s forwards;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        letter-spacing: 0em;
        filter: blur(8px);
    }
    to {
        opacity: 1;
        letter-spacing: 0.08em;
        filter: blur(0);
    }
}

#subtitle {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-primary);
    opacity: 0;
    animation: fadeIn 1.5s ease-out 1.2s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; filter: blur(6px); }
    to { opacity: 0.6; filter: blur(0); }
}

#chevron-down {
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards, sink 2s ease-in-out 3s infinite;
}

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

/* ---- OPENING BG TRANSITION ---- */
body {
    animation: surfaceReveal 2s ease-out 0.5s forwards;
}
@keyframes surfaceReveal {
    from { background-color: var(--bg-deep); }
    to { background-color: var(--bg-surface); }
}

/* ---- SPECIMEN CARDS ---- */
.specimen-card {
    text-align: center;
}

.specimen-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-bright);
    opacity: 0.6;
    display: block;
    margin-bottom: 16px;
}

.specimen-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--headline-glow);
    text-shadow: 0 0 30px rgba(144, 224, 239, 0.25);
    margin-bottom: 32px;
}

.specimen-desc {
    color: rgba(202, 240, 248, 0.8);
    max-width: 540px;
    margin: 24px auto 0;
}

/* Bioluminescent cards (bathypelagic) */
.specimen-card.bioluminescent {
    border: 1px solid rgba(0, 180, 216, 0.2);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.08);
    padding: 40px 32px;
    border-radius: 2px;
}

/* ---- FADE REVEAL SYSTEM ---- */
[data-reveal] .specimen-card,
[data-reveal] .abyssal-creature,
[data-reveal] .abyssal-text {
    opacity: 0;
    filter: blur(8px);
    transition: opacity 1.2s ease, filter 1.2s ease;
}
[data-reveal].revealed .specimen-card,
[data-reveal].revealed .abyssal-creature,
[data-reveal].revealed .abyssal-text {
    opacity: 1;
    filter: blur(0);
}

[data-reveal] .specimen-meta {
    transition-delay: 0s;
}
[data-reveal] .specimen-name {
    transition-delay: 0.2s;
}
[data-reveal] .organism {
    transition-delay: 0.4s;
}
[data-reveal] .specimen-desc {
    transition-delay: 0.6s;
}

/* Stagger child elements within cards */
[data-reveal] .specimen-card > * {
    opacity: 0;
    filter: blur(8px);
    transition: opacity 1.2s ease, filter 1.2s ease;
}
[data-reveal].revealed .specimen-card > * {
    opacity: 1;
    filter: blur(0);
}
[data-reveal].revealed .specimen-card > *:nth-child(1) { transition-delay: 0s; }
[data-reveal].revealed .specimen-card > *:nth-child(2) { transition-delay: 0.2s; }
[data-reveal].revealed .specimen-card > *:nth-child(3) { transition-delay: 0.4s; }
[data-reveal].revealed .specimen-card > *:nth-child(4) { transition-delay: 0.6s; }

/* Restore opacity for meta */
[data-reveal].revealed .specimen-meta { opacity: 0.6; }

/* ---- GRADIENT-MESH ORGANISMS ---- */
.organism {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 40px auto;
}

.org-layer {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
}

/* Jellyfish */
.jellyfish-organism {
    animation: drift 8s ease-in-out infinite;
}
.org-bell {
    width: 140px;
    height: 120px;
    top: 20px;
    left: 70px;
    background: radial-gradient(ellipse, var(--organism-violet) 0%, transparent 70%);
    filter: blur(2px);
}
.org-tentacle {
    width: 40px;
    height: 160px;
    bottom: 10px;
    background: radial-gradient(ellipse at 50% 0%, var(--venom-trail) 0%, transparent 60%);
    filter: blur(3px);
    opacity: 0.7;
}
.org-tentacle.t1 { left: 90px; transform: rotate(-5deg); }
.org-tentacle.t2 { left: 120px; transform: rotate(3deg); }
.org-tentacle.t3 { left: 150px; transform: rotate(8deg); }
.org-glow {
    width: 200px;
    height: 200px;
    top: 10px;
    left: 40px;
    background: radial-gradient(ellipse, rgba(144, 224, 239, 0.3) 0%, transparent 60%);
    filter: blur(10px);
}

/* Ink/Cephalopod */
.ink-organism {
    animation: drift 10s ease-in-out infinite;
    animation-delay: -3s;
}
.org-body-dark {
    width: 160px;
    height: 140px;
    top: 60px;
    left: 60px;
    background: radial-gradient(ellipse, var(--bg-mid) 0%, transparent 70%);
    filter: blur(1px);
}
.org-ink-cloud {
    width: 220px;
    height: 200px;
    top: 30px;
    left: 30px;
    background: radial-gradient(ellipse, var(--organism-violet) 0%, rgba(6, 214, 160, 0.3) 40%, transparent 70%);
    filter: blur(8px);
    opacity: 0.6;
}
.org-eye-spot {
    width: 20px;
    height: 20px;
    top: 110px;
    left: 150px;
    background: radial-gradient(circle, var(--organism-hot) 0%, transparent 70%);
    filter: blur(1px);
}

/* Anglerfish */
.angler-organism {
    animation: drift 7s ease-in-out infinite;
    animation-delay: -5s;
}
.org-angler-body {
    width: 180px;
    height: 140px;
    top: 80px;
    left: 50px;
    background: radial-gradient(circle, var(--bg-mid) 0%, transparent 50%);
}
.org-angler-lure {
    width: 30px;
    height: 30px;
    top: 40px;
    left: 130px;
    background: radial-gradient(circle, var(--organism-hot) 0%, var(--organism-violet) 30%, transparent 50%);
    animation: pulse 3s ease-in-out infinite;
}
.org-angler-glow {
    width: 80px;
    height: 80px;
    top: 15px;
    left: 105px;
    background: radial-gradient(circle, rgba(247, 37, 133, 0.4) 0%, transparent 60%);
    filter: blur(12px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Sea Cucumber */
.cucumber-organism {
    animation: drift 9s ease-in-out infinite;
    animation-delay: -2s;
}
.org-cucumber-body {
    width: 180px;
    height: 100px;
    top: 90px;
    left: 50px;
    background: radial-gradient(ellipse, rgba(199, 125, 255, 0.5) 0%, transparent 60%);
    filter: blur(3px);
}
.org-cucumber-expel {
    width: 140px;
    height: 140px;
    top: 60px;
    left: 100px;
    background: radial-gradient(ellipse at 0% 50%, var(--organism-hot) 0%, rgba(199, 125, 255, 0.2) 40%, transparent 70%);
    filter: blur(6px);
    opacity: 0.5;
}
.org-cucumber-glow {
    width: 200px;
    height: 160px;
    top: 50px;
    left: 40px;
    background: radial-gradient(ellipse, rgba(6, 214, 160, 0.15) 0%, transparent 60%);
    filter: blur(15px);
}

/* Radiolaria */
.radiolaria-organism {
    animation: slowRotate 60s linear infinite;
}
.org-ring {
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-bright), var(--organism-violet), transparent, var(--accent-bright));
    opacity: 0.4;
}
.org-ring.r1 {
    width: 240px;
    height: 240px;
    top: 20px;
    left: 20px;
    filter: blur(2px);
}
.org-ring.r2 {
    width: 170px;
    height: 170px;
    top: 55px;
    left: 55px;
    filter: blur(1px);
    opacity: 0.5;
}
.org-ring.r3 {
    width: 100px;
    height: 100px;
    top: 90px;
    left: 90px;
    opacity: 0.6;
}
.org-ring-center {
    width: 40px;
    height: 40px;
    top: 120px;
    left: 120px;
    background: radial-gradient(circle, var(--headline-glow) 0%, transparent 70%);
    filter: blur(2px);
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- ABYSSAL CREATURE ---- */
.abyssal-creature {
    width: 100%;
    height: 80vh;
    max-height: 600px;
    position: relative;
    margin-bottom: 48px;
}

.abyss-layer-1 {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(144, 224, 239, 0.3) 0%, transparent 60%);
    filter: blur(20px);
    mix-blend-mode: screen;
    animation: drift 12s ease-in-out infinite;
}
.abyss-layer-2 {
    position: absolute;
    width: 350px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--organism-violet) 0%, transparent 50%);
    filter: blur(12px);
    mix-blend-mode: screen;
    animation: drift 9s ease-in-out infinite reverse;
}
.abyss-layer-3 {
    position: absolute;
    width: 250px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--organism-hot) 0%, transparent 50%);
    filter: blur(15px);
    mix-blend-mode: screen;
    animation: drift 7s ease-in-out infinite;
    animation-delay: -2s;
}
.abyss-layer-4 {
    position: absolute;
    width: 300px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(6, 214, 160, 0.25) 0%, transparent 55%);
    filter: blur(18px);
    mix-blend-mode: screen;
    animation: drift 11s ease-in-out infinite;
    animation-delay: -4s;
}
.abyss-layer-5 {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-bright) 0%, transparent 40%);
    filter: blur(5px);
    mix-blend-mode: screen;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    25% { transform: translate(-50%, -50%) translate(10px, -15px); }
    50% { transform: translate(-50%, -50%) translate(-8px, 10px); }
    75% { transform: translate(-50%, -50%) translate(12px, 8px); }
}

/* ---- ABYSSAL TEXT ---- */
.abyssal-text {
    text-align: center;
}
.korean-text {
    font-family: 'Lora', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--headline-glow);
    opacity: 0.7;
    margin-bottom: 12px;
}
.english-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(202, 240, 248, 0.5);
}
