/* ============================================================================
   YONGJOON.NET - Aqueous Observatory
   Aesthetic: Watercolor + Sci-Fi HUD + Organic Flow + Blur-Focus Depth
   ========================================================================== */

:root {
    --wash-1-teal: #1a6b6a;
    --wash-2-blue: #2a5a8c;
    --wash-3-violet: #5a3a7a;
    --wash-4-indigo: #1a1a3a;
    --text-primary: #f0f0f5;
    --text-secondary: #a0b0c0;
    --hud-cyan: #70c0d0;
    --water-bubble: rgba(255, 255, 255, 0.08);
    --accent-warm: #c08080;
    --watercolor-edge: #80b8b0;
}

/* ============================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--wash-1-teal);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ============================================================================
   HUD OVERLAY LAYER
   ========================================================================== */

.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Corner Brackets */
.corner-bracket {
    position: fixed;
    width: 40px;
    height: 40px;
    opacity: 0.2;
    animation: bracket-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

.corner-tl {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.corner-tr {
    top: 20px;
    right: 20px;
    animation-delay: 0.5s;
    transform: scaleX(-1);
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    animation-delay: 1s;
    transform: scaleY(-1);
}

.corner-br {
    bottom: 20px;
    right: 20px;
    animation-delay: 1.5s;
    transform: scale(-1, -1);
}

@keyframes bracket-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* Measurement Scale */
.measurement-scale {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 60vw;
    max-width: 800px;
    height: auto;
    opacity: 0.3;
    pointer-events: none;
}

/* Targeting Reticle */
#targeting-reticle {
    position: fixed;
    width: 60px;
    height: 60px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1001;
    opacity: 0.3;
}

/* HUD Data Readouts */
.hud-readout {
    position: fixed;
    font-family: 'Martian Mono', monospace;
    font-size: clamp(0.6rem, 0.8vw, 0.75rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hud-cyan);
    opacity: 0.4;
    z-index: 1001;
    font-weight: 300;
}

.hud-top-left {
    top: 20px;
    left: 20px;
}

.hud-top-right {
    top: 20px;
    right: 20px;
}

.hud-bottom-left {
    bottom: 20px;
    left: 20px;
}

.hud-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* ============================================================================
   CONTENT CONTAINER & SCROLL LAYOUT
   ========================================================================== */

.content-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.depth-section {
    width: 100%;
    min-height: 120vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Depth 1: Aquamarine */
.depth-1 {
    background: linear-gradient(135deg, var(--wash-1-teal) 0%, #1a5f5e 50%, var(--wash-1-teal) 100%);
    min-height: 120vh;
}

/* Depth 2: Ocean Blue */
.depth-2 {
    background: linear-gradient(135deg, var(--wash-1-teal) 0%, var(--wash-2-blue) 50%, #2a4a7c 100%);
    min-height: 130vh;
}

/* Depth 3: Muted Violet */
.depth-3 {
    background: linear-gradient(135deg, var(--wash-2-blue) 0%, var(--wash-3-violet) 50%, #4a2a6a 100%);
    min-height: 130vh;
}

/* Depth 4: Midnight Indigo */
.depth-4 {
    background: linear-gradient(135deg, var(--wash-3-violet) 0%, var(--wash-4-indigo) 50%, #0a0a1a 100%);
    min-height: 120vh;
}

.depth-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 40px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ============================================================================
   TYPOGRAPHY
   ========================================================================== */

h1.hero-text {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    filter: blur(12px);
    animation: hero-focus-in 0.8s ease-out 1.2s forwards;
}

@keyframes hero-focus-in {
    from {
        filter: blur(12px);
        opacity: 0;
    }
    to {
        filter: blur(0px);
        opacity: 1;
    }
}

h2.section-title,
h2.closing-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
}

.body-text {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}

.closing-text {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    margin-bottom: 2rem;
}

/* ============================================================================
   CONTENT BLOCKS & POSITIONING
   ========================================================================== */

.content-block {
    margin: 40px 0;
    margin-left: clamp(-2vw, 1vw, 3vw);
    margin-top: clamp(2vh, 5vh, 8vh);
    will-change: filter;
    transition: filter 0.1s linear;
}

.content-block:nth-child(2) {
    margin-left: clamp(2vw, 3vw, 5vw);
}

.accent-highlight {
    padding: 30px;
    border-left: 3px solid var(--accent-warm);
    background: rgba(192, 128, 128, 0.08);
}

.closing-block {
    text-align: center;
    margin: 40px 0;
}

.closing-title {
    font-size: clamp(3rem, 10vw, 7rem);
}

.link-cluster {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.footer-link {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--text-secondary);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--hud-cyan);
    border-bottom-color: var(--hud-cyan);
}

/* ============================================================================
   WATER BUBBLES
   ========================================================================== */

.water-bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.water-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 60%, transparent);
    opacity: 0.6;
    will-change: transform, opacity;
}

/* ============================================================================
   BLUR-FOCUS SYSTEM (Scroll-Driven Depth-of-Field)
   ========================================================================== */

.blurred-element {
    filter: blur(6px);
    opacity: 0.7;
}

.sharp-element {
    filter: blur(0px);
    opacity: 1;
}

/* ============================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Initial page load animations */
@keyframes bubble-materialize {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 0.6;
        transform: translateY(0) scale(1);
    }
}

@keyframes hud-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: var(--final-opacity);
    }
}

/* Scroll-responsive animations will be added via JavaScript */

/* ============================================================================
   RESPONSIVE & UTILITY CLASSES
   ========================================================================== */

@media (max-width: 768px) {
    .depth-section {
        min-height: 100vh;
    }

    .depth-content {
        padding: 30px 20px;
    }

    h1.hero-text {
        font-size: clamp(3rem, 10vw, 6rem);
    }

    h2.section-title,
    h2.closing-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }

    .body-text {
        font-size: 1rem;
    }

    .hud-overlay {
        display: none;
    }

    .corner-bracket {
        display: none;
    }

    .measurement-scale {
        display: none;
    }

    #targeting-reticle {
        display: none;
    }

    .hud-readout {
        display: none;
    }
}

@media (max-width: 480px) {
    h1.hero-text {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .content-block {
        margin-left: 0;
        margin-top: clamp(1.5vh, 3vh, 5vh);
    }

    .link-cluster {
        gap: 10px;
    }

    .footer-link {
        font-size: 0.85rem;
    }
}

/* ============================================================================
   SCROLLBAR STYLING
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 58, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--hud-cyan);
    border-radius: 4px;
    opacity: 0.3;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 0.5;
}

/* ============================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .hud-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
