/* yesang.org - Art Deco Sang with Sci-fi HUD */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== Art Deco Corner Ornaments ========== */

.deco-corner {
    position: fixed;
    width: 80px;
    height: 80px;
    z-index: 100;
    pointer-events: none;
}

.deco-corner::before,
.deco-corner::after {
    content: '';
    position: absolute;
    background: #e8b84b;
}

.deco-corner--tl {
    top: 0;
    left: 0;
}
.deco-corner--tl::before {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 2px;
}
.deco-corner--tl::after {
    top: 12px;
    left: 12px;
    width: 2px;
    height: 40px;
}

.deco-corner--tr {
    top: 0;
    right: 0;
}
.deco-corner--tr::before {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 2px;
}
.deco-corner--tr::after {
    top: 12px;
    right: 12px;
    width: 2px;
    height: 40px;
}

.deco-corner--bl {
    bottom: 0;
    left: 0;
}
.deco-corner--bl::before {
    bottom: 12px;
    left: 12px;
    width: 40px;
    height: 2px;
}
.deco-corner--bl::after {
    bottom: 12px;
    left: 12px;
    width: 2px;
    height: 40px;
}

.deco-corner--br {
    bottom: 0;
    right: 0;
}
.deco-corner--br::before {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 2px;
}
.deco-corner--br::after {
    bottom: 12px;
    right: 12px;
    width: 2px;
    height: 40px;
}

/* ========== Hero Section ========== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(74,144,217,0.08) 0%, #1a1a2e 70%);
}

.hud-frame {
    position: relative;
    border: 1px solid rgba(74,144,217,0.3);
    padding: 2rem;
    background: rgba(26,26,46,0.85);
}

.hud-frame--hero {
    padding: 4rem 3rem;
    max-width: 700px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(232,184,75,0.3);
    box-shadow: 0 0 40px rgba(74,144,217,0.1), inset 0 0 40px rgba(26,26,46,0.5);
}

.hud-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(74,144,217,0.6), transparent);
    animation: scanline 3s linear infinite;
}

.hud-scanline--slow {
    animation-duration: 6s;
}

@keyframes scanline {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0.3; }
}

.hero__content {
    position: relative;
}

.hero__title {
    font-family: 'Zilla Slab', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #f5f0e8;
    text-shadow: 0 0 30px rgba(232,184,75,0.3);
    margin: 1.5rem 0;
}

.hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #e8b84b;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    min-height: 1.6em;
}

.deco-ornament {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.deco-svg {
    width: 200px;
    height: auto;
}

.deco-ornament--footer .deco-svg {
    width: 300px;
}

.hud-data {
    position: absolute;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.hud-data--hero {
    bottom: 0.75rem;
    right: 1rem;
}

.hud-data--footer {
    position: static;
    justify-content: center;
    margin-top: 0.5rem;
}

.hud-label {
    color: #6c757d;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.hud-value {
    color: #4a90d9;
    font-family: 'Zilla Slab', serif;
    font-weight: 600;
}

/* ========== Sections ========== */

.section {
    padding: 6rem 5%;
    position: relative;
}

.section--z1 {
    background: linear-gradient(180deg, #1a1a2e 0%, rgba(26,26,46,0.95) 100%);
}

.section--z2 {
    background: linear-gradient(180deg, rgba(26,26,46,0.95) 0%, rgba(20,20,40,1) 100%);
}

.section--z3 {
    background: linear-gradient(180deg, rgba(20,20,40,1) 0%, #1a1a2e 100%);
}

.section--lyrics {
    padding: 6rem 10%;
    background: radial-gradient(ellipse at center, rgba(232,184,75,0.05) 0%, #1a1a2e 70%);
}

/* ========== Z-Pattern Layout ========== */

.z-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.z-row--right {
    flex-direction: row-reverse;
}

.z-content {
    flex: 1;
    min-width: 0;
}

.z-visual {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .z-row,
    .z-row--right {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ========== HUD Panel Frames ========== */

.hud-frame--panel {
    position: relative;
    padding: 2.5rem;
    border: 1px solid rgba(74,144,217,0.2);
    background: rgba(26,26,46,0.6);
}

.hud-corner {
    position: absolute;
    width: 12px;
    height: 12px;
}

.hud-corner::before,
.hud-corner::after {
    content: '';
    position: absolute;
    background: #e8b84b;
}

.hud-corner--tl { top: -1px; left: -1px; }
.hud-corner--tl::before { top: 0; left: 0; width: 12px; height: 2px; }
.hud-corner--tl::after { top: 0; left: 0; width: 2px; height: 12px; }

.hud-corner--tr { top: -1px; right: -1px; }
.hud-corner--tr::before { top: 0; right: 0; width: 12px; height: 2px; }
.hud-corner--tr::after { top: 0; right: 0; width: 2px; height: 12px; }

.hud-corner--bl { bottom: -1px; left: -1px; }
.hud-corner--bl::before { bottom: 0; left: 0; width: 12px; height: 2px; }
.hud-corner--bl::after { bottom: 0; left: 0; width: 2px; height: 12px; }

.hud-corner--br { bottom: -1px; right: -1px; }
.hud-corner--br::before { bottom: 0; right: 0; width: 12px; height: 2px; }
.hud-corner--br::after { bottom: 0; right: 0; width: 2px; height: 12px; }

/* ========== Typography ========== */

.section__heading {
    font-family: 'Zilla Slab', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    color: #f5f0e8;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section__heading--center {
    text-align: center;
}

.section__text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ========== Typewriter Blocks ========== */

.typewriter-block {
    font-family: 'Zilla Slab', serif;
    font-size: 0.9rem;
    color: #e8b84b;
    letter-spacing: 0.05em;
    line-height: 1.8;
    min-height: 3em;
    border-left: 2px solid rgba(232,184,75,0.3);
    padding-left: 1rem;
}

.typewriter-cursor {
    animation: blink 1s step-end infinite;
    color: #e8b84b;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========== Data Visualizations ========== */

.dataviz {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.dataviz__svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.dataviz__label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    fill: #6c757d;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dataviz__note {
    font-family: 'Zilla Slab', serif;
    font-size: 11px;
    fill: #f5f0e8;
    font-weight: 500;
}

.range-bar {
    fill: #4a90d9;
    opacity: 0.8;
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.range-bar.animated {
    opacity: 1;
}

.waveform-path,
.waveform-path-shadow {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.radar-data {
    transition: all 1.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* ========== HUD Metrics ========== */

.hud-metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hud-metric {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 1rem 0.5rem;
    border: 1px solid rgba(74,144,217,0.15);
    background: rgba(74,144,217,0.05);
}

.hud-metric__label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #6c757d;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.hud-metric__value {
    display: block;
    font-family: 'Zilla Slab', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a90d9;
    line-height: 1;
}

.hud-metric__unit {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    color: #6c757d;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

/* ========== Wide HUD Frame ========== */

.hud-frame--wide {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border: 1px solid rgba(232,184,75,0.2);
    background: rgba(26,26,46,0.7);
    position: relative;
    overflow: hidden;
}

/* ========== Deco Divider ========== */

.deco-divider {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 2rem;
}

.deco-divider__svg {
    width: 300px;
    height: auto;
}

/* ========== Lyric Display ========== */

.lyric-display {
    text-align: center;
}

.lyric-line {
    font-family: 'Zilla Slab', serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: #f5f0e8;
    line-height: 2.2;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.lyric-line.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Footer ========== */

.footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(232,184,75,0.15);
    background: rgba(20,20,40,0.95);
}

.footer__content {
    margin-top: 1.5rem;
}

.footer__text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #6c757d;
    letter-spacing: 0.1em;
}

/* ========== Animations ========== */

.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gold shimmer on Art Deco ornaments */
.deco-ornament svg path,
.deco-ornament svg line {
    filter: drop-shadow(0 0 3px rgba(232,184,75,0.3));
}

/* HUD glow effect */
.hud-frame--hero {
    animation: hudGlow 4s ease-in-out infinite alternate;
}

@keyframes hudGlow {
    0% { box-shadow: 0 0 30px rgba(74,144,217,0.08), inset 0 0 30px rgba(26,26,46,0.5); }
    100% { box-shadow: 0 0 50px rgba(74,144,217,0.15), inset 0 0 50px rgba(26,26,46,0.3); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .hud-frame--hero {
        padding: 2.5rem 1.5rem;
    }

    .hud-frame--panel {
        padding: 1.5rem;
    }

    .hud-frame--wide {
        padding: 2rem 1.5rem;
    }

    .section {
        padding: 4rem 5%;
    }

    .hud-metrics {
        gap: 0.75rem;
    }

    .deco-corner {
        width: 50px;
        height: 50px;
    }
}
