/* bada.cafe - Deep Ocean Descent Experience */
/* Custom Properties - Exact palette from DESIGN.md */
:root {
    --abyss: #0a0c14;
    --ink: #111827;
    --deeper-1: #070910;
    --deeper-2: #04060a;
    --frost: rgba(200, 218, 235, 0.08);
    --text-primary: #e2e8f0;
    --text-muted: #64748b;
    --bio-cyan: #22d3ee;
    --phosphor: #34d399;
    --pressure-violet: #a78bfa;
    --thermal: #f97316;
    --base-unit: 8px;
}

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    color: #e2e8f0;
    background-color: #111827;
    overflow-x: hidden;
    transition: background-color 1.2s ease;
}

/* SVG Filters - Hidden */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    filter: url(#noiseFilter);
    mix-blend-mode: soft-light;
    background: repeating-conic-gradient(var(--text-primary) 0% 25%, transparent 0% 50%) 0 0 / 3px 3px;
    transition: opacity 1s ease;
}

body.zone-active-midnight .noise-overlay,
body.zone-active-abyss .noise-overlay {
    opacity: 0.07;
}

/* ========== DEPTH GAUGE ========== */
.depth-gauge {
    position: fixed;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.depth-gauge-svg {
    width: 20px;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.depth-line-bg {
    stroke: rgba(200, 218, 235, 0.06);
    stroke-width: 1;
}

.depth-line-progress {
    stroke: #22d3ee;
    stroke-width: 1.5;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 0.3s ease, stroke 0.8s ease;
}

.depth-marker {
    fill: rgba(200, 218, 235, 0.15);
    transition: fill 0.4s ease;
}

.depth-marker.active {
    fill: #22d3ee;
}

.depth-indicator {
    position: absolute;
    left: 3px;
    top: 0;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.3s ease;
}

.depth-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
}

.depth-label {
    position: fixed;
    left: 50px;
    bottom: 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #64748b;
    z-index: 100;
    transition: color 0.4s ease;
}

/* ========== ZONES ========== */
.zone {
    position: relative;
    overflow: hidden;
}

.zone-surface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #111827;
}

.zone-twilight {
    min-height: 200vh;
    background-color: #0a0c14;
    padding: 160px 0;
}

.zone-midnight {
    min-height: 200vh;
    background-color: #070910;
    padding: 160px 0;
}

.zone-abyss {
    min-height: 120vh;
    background-color: #04060a;
    padding: 160px 0;
}

/* ========== SURFACE ZONE ========== */
.surface-content {
    text-align: center;
    z-index: 2;
}

.site-title {
    font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
    font-size: clamp(72px, 12vw, 120px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 0.95;
    color: #e2e8f0;
}

.title-letter {
    display: inline-block;
    animation: letter-glow 3s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
}

@keyframes letter-glow {
    0%, 100% { text-shadow: 0 0 40px rgba(34, 211, 238, 0.2); }
    50% { text-shadow: 0 0 60px rgba(34, 211, 238, 0.45), 0 0 100px rgba(34, 211, 238, 0.15); }
}

.coordinates {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-top: 24px;
}

.korean-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: #22d3ee;
    letter-spacing: 0.04em;
    margin-top: 16px;
    opacity: 0;
    animation: fade-in-subtitle 1s ease forwards;
    animation-delay: 1.5s;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}

@keyframes fade-in-subtitle {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Cue Triangles */
.scroll-cue {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-triangles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #22d3ee;
    opacity: 0.4;
    animation: triangle-bob 2.5s ease-in-out infinite;
}

@keyframes triangle-bob {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(8px); opacity: 0.6; }
}

/* ========== EDITORIAL COLUMN ========== */
.editorial-column {
    width: 60%;
    margin-left: 25%;
    position: relative;
    z-index: 2;
}

.narrow-column {
    width: 50%;
    margin-left: 30%;
}

/* ========== DEPTH ANNOTATION ========== */
.depth-annotation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(200, 218, 235, 0.06);
}

.mono-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
}

/* ========== FROST PANELS ========== */
.frost-panel {
    background: rgba(200, 218, 235, 0.04);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(200, 218, 235, 0.08);
    border-radius: 2px;
    padding: 48px;
    margin-bottom: 80px;
    transition: border-color 400ms ease, box-shadow 400ms ease;
}

.frost-panel:hover {
    border-color: rgba(34, 211, 238, 0.18);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.05);
}

.wide-panel {
    width: 110%;
    margin-left: -5%;
}

.violet-panel {
    border-color: rgba(167, 139, 250, 0.12);
    background: rgba(167, 139, 250, 0.03);
}

.violet-panel:hover {
    border-color: rgba(167, 139, 250, 0.28);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.06);
}

.thermal-panel {
    border-color: rgba(249, 115, 22, 0.12);
    background: rgba(249, 115, 22, 0.03);
}

.thermal-panel:hover {
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.06);
}

/* ========== TYPOGRAPHY ========== */
.section-title {
    font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 0.95;
    color: #e2e8f0;
    margin-bottom: 32px;
}

.body-text {
    font-family: 'Inter', 'Lora', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 24px;
}

.body-text:last-child {
    margin-bottom: 0;
}

.accent-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #22d3ee;
    margin-top: 16px;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.violet-accent {
    color: #a78bfa;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
    letter-spacing: 0.04em;
    font-size: 24px;
}

.korean-accent {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 42px;
    color: #22d3ee;
    text-align: center;
    letter-spacing: 0.04em;
    text-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
    padding: 80px 0;
}

/* ========== GEOMETRIC DIVIDERS ========== */
.geometric-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 0;
    margin-bottom: 80px;
}

.divider-hex {
    width: 16px;
    height: 16px;
    background: rgba(200, 218, 235, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.divider-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
}

.divider-triangle {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(167, 139, 250, 0.4);
}

/* ========== FLOATING HEXAGONS ========== */
.floating-hexagon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(200, 218, 235, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.15);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
    pointer-events: auto;
    transition: box-shadow 400ms ease, border-color 400ms ease;
}

.floating-hexagon:hover {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
    border-color: rgba(34, 211, 238, 0.45);
}

.hex-1 {
    top: 10%;
    right: 12%;
    width: 50px;
    height: 50px;
    animation: float-hex 35s linear infinite;
}

.hex-2 {
    top: 40%;
    left: 8%;
    width: 70px;
    height: 70px;
    animation: float-hex 42s linear infinite reverse;
    opacity: 0.6;
}

.hex-3 {
    top: 70%;
    right: 20%;
    width: 40px;
    height: 40px;
    animation: float-hex 30s linear infinite;
    opacity: 0.4;
}

@keyframes float-hex {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-40px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-50px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ========== AMBIENT CIRCLES (Portholes) ========== */
.ambient-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: 20%;
    right: -200px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    left: -150px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
}

/* ========== FULL BLEED SECTIONS ========== */
.full-bleed-section {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.midnight-phrase {
    text-align: center;
}

.immersive-title {
    font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
    font-size: clamp(72px, 15vw, 160px);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 0.9;
    color: #e2e8f0;
    margin-top: 24px;
}

.sparse-title {
    color: #a78bfa;
    text-shadow: 0 0 60px rgba(167, 139, 250, 0.25);
}

/* ========== ABYSS ZONE ========== */
.thermal-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center bottom, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.abyss-composition {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    position: relative;
}

.concentric-hexagons {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-ring {
    position: absolute;
    border: 1px solid rgba(34, 211, 238, 0.2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 50%;
    left: 50%;
    margin-top: 0;
    margin-left: 0;
}

.hex-ring-1 {
    width: 80px;
    height: 80px;
    border-color: #22d3ee;
    --hex-opacity: 0.8;
    opacity: 0.8;
    margin-top: -40px;
    margin-left: -40px;
}

.hex-ring-2 {
    width: 150px;
    height: 150px;
    border-color: #a78bfa;
    --hex-opacity: 0.6;
    opacity: 0.6;
    margin-top: -75px;
    margin-left: -75px;
}

.hex-ring-3 {
    width: 220px;
    height: 220px;
    border-color: #22d3ee;
    --hex-opacity: 0.4;
    opacity: 0.4;
    margin-top: -110px;
    margin-left: -110px;
}

.hex-ring-4 {
    width: 290px;
    height: 290px;
    border-color: #a78bfa;
    --hex-opacity: 0.3;
    opacity: 0.3;
    margin-top: -145px;
    margin-left: -145px;
}

.hex-ring-5 {
    width: 360px;
    height: 360px;
    border-color: #f97316;
    --hex-opacity: 0.2;
    opacity: 0.2;
    margin-top: -180px;
    margin-left: -180px;
}

.hex-ring:hover {
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.3);
}

.abyss-text {
    text-align: center;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.abyss-title {
    font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
    font-size: clamp(72px, 12vw, 120px);
    font-weight: 400;
    color: #f97316;
    text-shadow: 0 0 60px rgba(249, 115, 22, 0.35);
    margin: 16px 0;
    letter-spacing: 0.04em;
}

.abyss-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #64748b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.final-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 24px 120px;
    position: relative;
    z-index: 2;
}

.final-coordinates {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #64748b;
    text-align: center;
    margin-top: 40px;
}

/* ========== BOUNCE ENTER ANIMATION ========== */
@keyframes bounce-enter {
    0% { opacity: 0; transform: translateY(60px) scale(0.95); }
    50% { opacity: 0.8; transform: translateY(-8px) scale(1.02); }
    70% { transform: translateY(3px) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bounce-enter-shape {
    0% { opacity: 0; transform: translateY(60px) scale(0.9); }
    50% { opacity: 0.8; transform: translateY(-12px) scale(1.05); }
    70% { transform: translateY(4px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
}

.animate-on-scroll.visible {
    animation: bounce-enter 800ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.geometric-divider.animate-on-scroll.visible {
    animation: bounce-enter-shape 800ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .editorial-column {
        width: 88%;
        margin-left: 6%;
    }

    .narrow-column {
        width: 88%;
        margin-left: 6%;
    }

    .wide-panel {
        width: 100%;
        margin-left: 0;
    }

    .frost-panel {
        padding: 32px 24px;
    }

    .depth-gauge {
        left: 12px;
    }

    .depth-label {
        left: 38px;
    }

    .site-title {
        font-size: clamp(48px, 14vw, 80px);
    }

    .korean-accent {
        font-size: 28px;
    }

    .concentric-hexagons {
        width: 280px;
        height: 280px;
    }

    .hex-ring-1 { width: 60px; height: 60px; margin-top: -30px; margin-left: -30px; }
    .hex-ring-2 { width: 110px; height: 110px; margin-top: -55px; margin-left: -55px; }
    .hex-ring-3 { width: 160px; height: 160px; margin-top: -80px; margin-left: -80px; }
    .hex-ring-4 { width: 210px; height: 210px; margin-top: -105px; margin-left: -105px; }
    .hex-ring-5 { width: 260px; height: 260px; margin-top: -130px; margin-left: -130px; }
}
