/* bada.studio — Nocturnal Glass Workshop */

:root {
    --void: #0a0a12;
    --neon-fuchsia: #ff2d7b;
    --mint: #00e5a0;
    --candle: #ffb347;
    --glass-white: #e8e4f0;
    --smoked: #3a3648;
    --deep: #1c1b2e;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--void);
    color: var(--glass-white);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: linear-gradient(to bottom, rgba(10,10,18,0.9) 0%, rgba(10,10,18,0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.4s ease;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.logo-korean {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--neon-fuchsia);
}

.logo-dot {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--mint);
}

.logo-studio {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--glass-white);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--glass-white);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: attr(data-index);
    font-size: 10px;
    color: var(--smoked);
    position: absolute;
    top: -12px;
    left: 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--neon-fuchsia);
}

.nav-link:hover::before {
    color: var(--neon-fuchsia);
}

/* Zones (Sections) */
.zone {
    position: relative;
    min-height: 100vh;
    padding: 120px 48px 80px;
    overflow: hidden;
}

.zone-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Candle Glow Effects */
.candle-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    animation: candleFlicker 4s ease-in-out infinite;
}

.candle-glow-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: 10%;
    background: radial-gradient(circle, rgba(255,179,71,0.15) 0%, transparent 70%);
    animation-delay: 0s;
}

.candle-glow-2 {
    width: 350px;
    height: 350px;
    bottom: 20%;
    left: 5%;
    background: radial-gradient(circle, rgba(255,45,123,0.1) 0%, transparent 70%);
    animation-delay: 1.5s;
}

.candle-glow-3 {
    width: 400px;
    height: 400px;
    top: 40%;
    right: -5%;
    background: radial-gradient(circle, rgba(0,229,160,0.08) 0%, transparent 70%);
    animation-delay: 2.8s;
}

.candle-glow-4 {
    width: 600px;
    height: 600px;
    top: 10%;
    left: -10%;
    background: radial-gradient(circle, rgba(255,179,71,0.12) 0%, transparent 70%);
    animation-delay: 0.5s;
}

.candle-glow-5 {
    width: 450px;
    height: 450px;
    top: 5%;
    right: 15%;
    background: radial-gradient(circle, rgba(255,45,123,0.1) 0%, transparent 70%);
    animation-delay: 1s;
}

.candle-glow-6 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    left: 20%;
    background: radial-gradient(circle, rgba(0,229,160,0.08) 0%, transparent 70%);
    animation-delay: 2.2s;
}

.candle-glow-7 {
    width: 500px;
    height: 500px;
    top: 20%;
    left: 30%;
    background: radial-gradient(circle, rgba(255,179,71,0.15) 0%, transparent 70%);
    animation-delay: 0.8s;
}

@keyframes candleFlicker {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    25% { opacity: 0.8; transform: scale(1.05); }
    50% { opacity: 0.5; transform: scale(0.95); }
    75% { opacity: 0.9; transform: scale(1.02); }
}

/* Glass Panel Base */
.glass-panel {
    background: linear-gradient(135deg, rgba(232,228,240,0.06) 0%, rgba(58,54,72,0.08) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(232,228,240,0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,228,240,0.2), transparent);
}

/* Wax Drip Effect */
.wax-drip {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
}

.wax-drip-hero {
    background: 
        radial-gradient(ellipse 30px 20px at 15% 0%, rgba(255,179,71,0.15) 0%, transparent 100%),
        radial-gradient(ellipse 50px 30px at 40% 0%, rgba(255,179,71,0.1) 0%, transparent 100%),
        radial-gradient(ellipse 25px 25px at 70% 0%, rgba(255,179,71,0.12) 0%, transparent 100%),
        radial-gradient(ellipse 40px 20px at 90% 0%, rgba(255,179,71,0.08) 0%, transparent 100%);
}

/* Label Mono */
.label-mono {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--smoked);
    text-transform: uppercase;
    display: block;
    margin-bottom: 24px;
}

/* --- ZONE 1: Workshop (Hero) --- */
.zone-workshop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 140px;
}

.glass-panel-hero {
    max-width: 800px;
    padding: 56px 64px;
    margin-bottom: 32px;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.3s forwards;
}

.glass-panel-inner {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--glass-white);
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.highlight-fuchsia {
    color: var(--neon-fuchsia);
    font-style: normal;
    text-shadow: 0 0 40px rgba(255,45,123,0.3);
}

.highlight-mint {
    color: var(--mint);
    font-style: normal;
    text-shadow: 0 0 40px rgba(0,229,160,0.3);
}

.highlight-candle {
    color: var(--candle);
    font-style: normal;
    text-shadow: 0 0 40px rgba(255,179,71,0.3);
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--glass-white);
    opacity: 0.7;
    max-width: 480px;
}

.glass-panel-aside {
    max-width: 380px;
    padding: 28px 36px;
    margin-left: 80px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.8s ease-out 0.8s forwards;
}

.glass-panel-aside::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -40px;
    width: 32px;
    height: 1px;
    background: var(--smoked);
    transform: translateY(-50%);
}

.aside-text {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    font-style: italic;
    color: var(--glass-white);
    opacity: 0.5;
    line-height: 1.6;
}

/* Sketch Waves */
.sketch-wave {
    position: absolute;
    pointer-events: none;
}

.sketch-wave-hero {
    bottom: 40px;
    left: 0;
    right: 0;
    height: 200px;
    opacity: 0.5;
}

.sketch-wave-process {
    bottom: 20px;
    right: 0;
    width: 50%;
    height: 100px;
    opacity: 0.3;
}

.sketch-wave-footer {
    bottom: 60px;
    left: 0;
    right: 0;
    height: 100px;
    opacity: 0.4;
}

.sketch-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.sketch-path.animate {
    stroke-dashoffset: 0;
}

.sketch-delay-1 {
    transition-delay: 0.5s;
}

.sketch-delay-2 {
    transition-delay: 1s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--smoked);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--smoked), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* --- ZONE 2: Process --- */
.zone-process {
    padding-top: 140px;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-panel-process {
    padding: 48px;
}

.glass-panel-warm {
    border-color: rgba(255,179,71,0.15);
}

.glass-panel-warm::before {
    background: linear-gradient(90deg, transparent, rgba(255,179,71,0.2), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--glass-white);
    margin-bottom: 24px;
}

.body-text {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--glass-white);
    opacity: 0.7;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.glass-panel-step {
    padding: 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 20px;
    align-items: start;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 300;
    color: var(--smoked);
    grid-row: 1 / 3;
    line-height: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--glass-white);
    letter-spacing: -0.01em;
}

.step-desc {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--glass-white);
    opacity: 0.6;
    line-height: 1.5;
    grid-column: 2;
}

.sketch-icon {
    width: 48px;
    height: 48px;
    grid-row: 1 / 3;
    opacity: 0.7;
}

/* --- ZONE 3: Works --- */
.zone-works {
    padding-top: 140px;
}

.works-header {
    max-width: 1200px;
    margin: 0 auto 64px;
}

.works-gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    padding: 0;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,45,123,0.25);
}

.work-card-large {
    grid-row: 1 / 3;
}

.work-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--deep) 0%, var(--void) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.work-card-large .work-image {
    aspect-ratio: auto;
    height: calc(100% - 80px);
    min-height: 300px;
}

.work-sketch {
    width: 80%;
    height: 80%;
    opacity: 0.8;
}

.work-info {
    padding: 20px 24px;
}

.work-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--glass-white);
    margin-bottom: 4px;
}

.work-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--smoked);
    letter-spacing: 0.04em;
}

/* --- ZONE 4: Contact --- */
.zone-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 0;
}

.glass-panel-contact {
    max-width: 700px;
    padding: 64px;
    margin: 0 auto;
    text-align: center;
    border-color: rgba(255,45,123,0.12);
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--glass-white);
    margin-bottom: 24px;
}

.contact-body {
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 40px;
    border: 1px solid rgba(255,45,123,0.4);
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.4s ease;
    background: rgba(255,45,123,0.05);
}

.contact-link:hover {
    background: rgba(255,45,123,0.15);
    border-color: var(--neon-fuchsia);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,45,123,0.2);
}

.contact-link-text {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--neon-fuchsia);
    letter-spacing: 0.02em;
}

.contact-link-arrow {
    font-size: 20px;
    color: var(--neon-fuchsia);
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-link-arrow {
    transform: translateX(4px);
}

/* Footer */
.contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px;
    margin-top: auto;
}

.footer-left {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.footer-logo {
    font-size: 20px;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--smoked);
}

.footer-label {
    margin-bottom: 0;
}

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Entrance Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: var(--smoked);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-fuchsia);
}

/* Responsive */
@media (max-width: 768px) {
    .site-nav {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link::before {
        display: none;
    }

    .zone {
        padding: 100px 24px 60px;
    }

    .glass-panel-hero {
        padding: 36px 32px;
        max-width: 100%;
    }

    .glass-panel-aside {
        margin-left: 0;
    }

    .glass-panel-aside::after {
        display: none;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .glass-panel-process {
        padding: 32px;
    }

    .works-gallery {
        grid-template-columns: 1fr;
    }

    .work-card-large {
        grid-row: auto;
    }

    .work-card-large .work-image {
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: auto;
    }

    .glass-panel-contact {
        padding: 40px 28px;
    }

    .contact-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 32px 24px;
    }

    .glass-panel-step {
        grid-template-columns: auto 1fr;
        padding: 24px;
    }

    .sketch-icon {
        display: none;
    }
}
