/* ==========================================================================
   yongzoon.xyz — Brutalist Luxury in Deep Navy
   ========================================================================== */

/* ---- CSS Custom Properties ---- */
:root {
    --deep-navy: #0b1628;
    --midnight-steel: #162236;
    --titanium-silver: #8a9ab5;
    --brushed-chrome: #c4d0e2;
    --liquid-mercury: #e8edf5;
    --forge-gold: #b8965a;
    --signal-white: #f0f2f7;
    --obsidian: #060d18;
    --navy-steel: #2a3a5c;
    --nav-bg: rgba(11, 22, 40, 0.8);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
    background-color: var(--deep-navy);
    color: var(--brushed-chrome);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Noise Texture Overlay ---- */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---- Bokeh Particle Layer ---- */
#bokeh-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.bokeh-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--titanium-silver), transparent 70%);
    top: -10%;
    left: -5%;
    animation: bokeh-drift-1 35s ease-in-out infinite;
}

.bokeh-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--navy-steel), transparent 70%);
    top: 20%;
    right: -5%;
    animation: bokeh-drift-2 28s ease-in-out infinite;
}

.bokeh-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--midnight-steel), transparent 70%);
    top: 50%;
    left: 30%;
    animation: bokeh-drift-3 42s ease-in-out infinite;
}

.bokeh-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--titanium-silver), transparent 70%);
    bottom: 10%;
    left: 10%;
    animation: bokeh-drift-4 30s ease-in-out infinite;
}

.bokeh-5 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--navy-steel), transparent 70%);
    top: 70%;
    right: 20%;
    animation: bokeh-drift-5 38s ease-in-out infinite;
}

.bokeh-6 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--brushed-chrome), transparent 70%);
    top: 10%;
    left: 50%;
    opacity: 0.08;
    animation: bokeh-drift-6 45s ease-in-out infinite;
}

.bokeh-7 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--titanium-silver), transparent 70%);
    top: 40%;
    right: 10%;
    opacity: 0.12;
    animation: bokeh-drift-7 25s ease-in-out infinite;
}

.bokeh-8 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--midnight-steel), transparent 70%);
    bottom: 30%;
    right: 40%;
    animation: bokeh-drift-8 33s ease-in-out infinite;
}

.bokeh-9 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--navy-steel), transparent 70%);
    top: 60%;
    left: 5%;
    opacity: 0.1;
    animation: bokeh-drift-9 40s ease-in-out infinite;
}

.bokeh-10 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--titanium-silver), transparent 70%);
    top: 30%;
    left: 70%;
    opacity: 0.07;
    animation: bokeh-drift-10 20s ease-in-out infinite;
}

@keyframes bokeh-drift-1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(80px, 60px); }
    50% { transform: translate(-40px, 120px); }
    75% { transform: translate(60px, -30px); }
}

@keyframes bokeh-drift-2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-70px, 50px); }
    50% { transform: translate(30px, -80px); }
    75% { transform: translate(-50px, 40px); }
}

@keyframes bokeh-drift-3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(100px, -60px); }
    66% { transform: translate(-60px, 80px); }
}

@keyframes bokeh-drift-4 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(50px, -70px); }
    50% { transform: translate(-30px, -40px); }
    75% { transform: translate(70px, 50px); }
}

@keyframes bokeh-drift-5 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-80px, 40px); }
    66% { transform: translate(60px, -50px); }
}

@keyframes bokeh-drift-6 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-40px, 80px); }
    50% { transform: translate(60px, -20px); }
    75% { transform: translate(-20px, -60px); }
}

@keyframes bokeh-drift-7 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-60px, 70px); }
}

@keyframes bokeh-drift-8 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(40px, -50px); }
    50% { transform: translate(-70px, 30px); }
    75% { transform: translate(30px, 60px); }
}

@keyframes bokeh-drift-9 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, 40px); }
    66% { transform: translate(-40px, -60px); }
}

@keyframes bokeh-drift-10 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -40px); }
}

/* ---- Vertical Navigation Rail ---- */
#nav-rail {
    position: fixed;
    left: 0;
    top: 0;
    width: 60px;
    height: 100vh;
    background: var(--nav-bg);
    border-right: 1px solid var(--titanium-silver);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    backdrop-filter: blur(10px);
}

.nav-indicator {
    position: absolute;
    left: 18px;
    width: 24px;
    height: 3px;
    background: var(--forge-gold);
    transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--titanium-silver);
    position: relative;
    width: 60px;
    height: 40px;
    justify-content: center;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--signal-white);
}

.nav-item.active {
    color: var(--liquid-mercury);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-label {
    position: absolute;
    left: 60px;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--brushed-chrome);
    background: var(--midnight-steel);
    padding: 6px 12px;
    border: 1px solid var(--navy-steel);
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Hero Section ---- */
.section-hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding-left: 60px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(48px, 10vw, 160px);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--titanium-silver), var(--liquid-mercury), var(--titanium-silver));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: metallic-shimmer 6s linear infinite;
    margin-bottom: 24px;
}

.hero-heading .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    filter: blur(4px);
}

.hero-heading .char.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

@keyframes metallic-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hero-subline {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease 2.6s, transform 0.8s ease 2.6s;
}

.hero-subline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease 3s;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--titanium-silver);
    opacity: 0.4;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--forge-gold);
    animation: pulse-dot 2s ease-in-out infinite;
}

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

/* ---- Mono Label ---- */
.mono-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--titanium-silver);
    text-transform: uppercase;
}

/* ---- Content Sections ---- */
.section-content {
    position: relative;
    min-height: 100vh;
    z-index: 1;
    padding-left: 60px;
    margin-top: -60px;
    overflow: hidden;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-navy);
    z-index: 10;
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-content.revealed .section-overlay {
    transform: translateY(-100%);
}

.section-border-left {
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--navy-steel);
    z-index: 5;
}

.section-border-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--navy-steel);
    z-index: 5;
}

.section-border-bottom {
    position: absolute;
    left: 60px;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--navy-steel);
    z-index: 5;
}

.section-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 120px 80px;
}

.section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

.section-meta {
    position: sticky;
    top: 120px;
    padding-top: 8px;
}

/* ---- Section Typography ---- */
.section-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 64px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--liquid-mercury);
    margin-bottom: 32px;
    line-height: 1.1;
}

.section-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.75;
    color: var(--brushed-chrome);
    margin-bottom: 24px;
    max-width: 680px;
}

.section-text em {
    font-weight: 300;
    font-style: italic;
    color: var(--titanium-silver);
}

/* ---- Stagger Animation ---- */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-content.revealed .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Feature Block ---- */
.feature-block {
    display: grid;
    gap: 32px;
    margin-top: 40px;
}

.feature-item {
    padding: 24px 0;
    border-top: 1px solid var(--navy-steel);
}

.feature-item .mono-label {
    display: block;
    margin-bottom: 12px;
    color: var(--forge-gold);
}

.feature-desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--brushed-chrome);
    max-width: 560px;
}

/* ---- Material Showcase ---- */
.material-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.material-swatch {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    gap: 4px;
    border: 1px solid var(--navy-steel);
}

.swatch-navy { background: var(--deep-navy); }
.swatch-steel { background: var(--midnight-steel); }
.swatch-titanium { background: var(--titanium-silver); }
.swatch-titanium .mono-label { color: var(--deep-navy); }
.swatch-gold { background: var(--forge-gold); }
.swatch-gold .mono-label { color: var(--deep-navy); }

/* ---- Signal Section ---- */
.signal-block {
    margin: 48px 0;
    padding: 48px 0;
}

.signal-quote {
    font-family: var(--font-body);
    font-weight: 300;
    font-style: italic;
    font-size: 24px;
    line-height: 1.6;
    color: var(--liquid-mercury);
    padding: 32px 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Metallic Divider ---- */
.metallic-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--titanium-silver), var(--brushed-chrome), var(--titanium-silver));
    background-size: 200% 100%;
    animation: metallic-sweep 8s linear infinite;
    max-width: 200px;
    margin: 0 auto;
}

.divider-wide {
    max-width: 400px;
}

@keyframes metallic-sweep {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ---- Circuit Pattern ---- */
.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.circuit-pattern svg {
    width: 100%;
    height: 100%;
}

.circuit-node {
    animation: node-pulse 4s ease-in-out infinite;
}

@keyframes node-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.45; }
}

/* ---- Perspective Grid ---- */
.perspective-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    animation: grid-rotate 60s linear infinite;
}

.perspective-grid svg {
    width: 100%;
    height: 100%;
}

@keyframes grid-rotate {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1.2); }
}

/* ---- Footer ---- */
.section-footer {
    position: relative;
    z-index: 1;
    padding: 60px 40px 60px 100px;
    background: var(--obsidian);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    #nav-rail {
        display: none;
    }

    .section-hero,
    .section-content {
        padding-left: 0;
    }

    .section-border-left {
        left: 0;
    }

    .section-inner {
        padding: 80px 24px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-meta {
        position: static;
    }

    .material-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-footer {
        padding-left: 24px;
    }

    .hero-heading {
        letter-spacing: 0.12em;
    }
}

@media (max-width: 600px) {
    .material-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .signal-quote {
        font-size: 20px;
    }
}
