/* ===== COLOR VARIABLES ===== */
:root {
    /* Void & Concrete */
    --void-black: #0A0A0A;
    --concrete-dark: #1A1714;
    --concrete-medium: #3A3A3A;
    --concrete-light: #363636;
    --concrete-extra: #3E3E3E;

    /* Gold & Text */
    --gold: #D4AF37;
    --gold-light: #E0C060;
    --gold-dark: #C8A030;

    /* Text Colors */
    --text-heading: #E8E0D4;
    --text-body: #C8C0B4;
    --text-quiet: #8A8278;

    /* Aurora Colors */
    --aurora-green: #2ECC71;
    --aurora-blue: #3498DB;
    --aurora-violet: #9B59B6;

    /* Neon */
    --neon-yellow: #F5E642;
}

/* ===== RESET & GLOBALS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0A0A;
    color: #C8C0B4;
    font-family: 'Caveat', cursive;
    font-weight: 400;
    line-height: 2.0;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
/* Font families: Caveat, Libre Baskerville, Space Mono */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: #E8E0D4;
}

p {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: #C8C0B4;
    line-height: 2.0;
}

/* Libre Baskerville reference */
.closing-statement p {
    font-family: 'Libre Baskerville', serif;
}

/* Space Mono reference */
.domain-name {
    font-family: 'Space Mono', monospace;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1A1714 0%, #2A2420 50%, #1A1714 100%);
    background-size: 200% 200%;
    z-index: 1000;
    opacity: 0;
    animation: fadeInSidebar 0.6s ease-out forwards;
    border-right: 1px solid rgba(212, 175, 55, 0.1);
}

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

.sidebar-content {
    position: absolute;
    bottom: 40px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.domain-name {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #D4AF37;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
}

.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid #D4AF37;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: #D4AF37;
}

.nav-dot:hover {
    border-color: #E0C060;
}

/* ===== MAIN CONTENT ===== */
.content {
    margin-left: 280px;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* ===== SPLIT SECTIONS ===== */
.split-section {
    display: grid;
    grid-template-columns: 55% 45%;
    height: 100vh;
    position: relative;
    scroll-snap-align: start;
    gap: 0;
}

.split-left, .split-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background-color: #0A0A0A;
    position: relative;
}

.split-divider {
    position: absolute;
    left: 55%;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: rgba(212, 175, 55, 0.2);
    opacity: 0;
    animation: drawDivider 0.6s ease-out forwards;
    animation-delay: 1.4s;
}

@keyframes drawDivider {
    from {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    to {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* ===== SECTION 1: SKETCH / THEORY ===== */
.section-one {
    opacity: 0;
    animation: fadeInSection 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

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

.watercolor-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.aurora-circle {
    animation: driftAurora 20s ease-in-out infinite;
}

.aurora-one {
    animation-delay: 0s;
    animation-name: driftAuroraOne;
}

.aurora-two {
    animation-delay: 3s;
    animation-name: driftAuroraTwo;
}

.aurora-three {
    animation-delay: 6s;
    animation-name: driftAuroraThree;
}

@keyframes driftAuroraOne {
    0%, 100% {
        cx: 300px;
        cy: 200px;
    }
    50% {
        cx: 315px;
        cy: 210px;
    }
}

@keyframes driftAuroraTwo {
    0%, 100% {
        cx: 420px;
        cy: 160px;
    }
    50% {
        cx: 405px;
        cy: 175px;
    }
}

@keyframes driftAuroraThree {
    0%, 100% {
        cx: 180px;
        cy: 280px;
    }
    50% {
        cx: 195px;
        cy: 265px;
    }
}

.section-one-text {
    border-left: 2px solid #D4AF37;
    padding-left: 32px;
}

.text-block p {
    animation: typeIn 3s steps(60, end) forwards;
}

@keyframes typeIn {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

/* ===== SECTION 2: MATERIAL / MARK ===== */
.material-study {
    position: relative;
    width: 240px;
    height: 320px;
}

.material {
    position: absolute;
    box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.6);
}

.concrete {
    width: 200px;
    height: 280px;
    top: 20px;
    left: 20px;
    background: #3A3A3A;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255,255,255,.05) 1px, rgba(255,255,255,.05) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(0,0,0,.1) 1px, rgba(0,0,0,.1) 2px);
    transform: rotate(-3deg);
}

.brushed-gold {
    width: 180px;
    height: 260px;
    top: 40px;
    left: 50px;
    background: linear-gradient(135deg, #C8A030 0%, #D4AF37 25%, #E0C060 50%, #D4AF37 75%, #C8A030 100%);
    background-size: 200% 200%;
    animation: goldShimmer 4s ease-in-out infinite;
    transform: rotate(1deg);
}

@keyframes goldShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.matte-black {
    width: 220px;
    height: 300px;
    top: 10px;
    left: 60px;
    background-color: #0A0A0A;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transform: rotate(-1deg);
}

.monopole-symbol-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.monopole-symbol {
    width: 120px;
    height: 120px;
}

.monopole-circle {
    animation: pulsePath 4s ease-in-out infinite;
}

.monopole-dot {
    animation: pulseDot 4s ease-in-out infinite;
}

@keyframes pulsePath {
    0%, 100% {
        r: 40;
    }
    50% {
        r: 42;
    }
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1.0;
    }
}

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

.monopole-text p {
    font-style: italic;
    color: #8A8278;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    letter-spacing: 0.02em;
}

/* ===== SECTION 3: VOID / PROMISE ===== */
.void-section {
    background-color: #0A0A0A;
    position: relative;
    overflow: hidden;
}

.cursor-follow {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-three.in-view .cursor-follow {
    opacity: 1;
}

.void-gradient {
    background: linear-gradient(to right, #0A0A0A 0%, #1A1714 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.closing-statement {
    text-align: center;
    padding: 40px;
}

.closing-statement p {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: #8A8278;
    letter-spacing: 0.03em;
    line-height: 1.8;
}

/* ===== COLOR PALETTE REFERENCE ===== */
/* Palette colors from DESIGN.md - reference only */
.color-palette-void { color: #0A0A0A; }
.color-palette-dark { color: #1A1714; }
.color-palette-medium { color: #3A3A3A; }
.color-palette-light { color: #363636; }
.color-palette-extra { color: #3E3E3E; }
.color-palette-gold { color: #D4AF37; }
.color-palette-gold-light { color: #E0C060; }
.color-palette-gold-dark { color: #C8A030; }
.color-palette-text-heading { color: #E8E0D4; }
.color-palette-text-body { color: #C8C0B4; }
.color-palette-text-quiet { color: #8A8278; }
.color-palette-aurora-green { color: #2ECC71; }
.color-palette-aurora-blue { color: #3498DB; }
.color-palette-aurora-violet { color: #9B59B6; }
.color-palette-neon { color: #F5E642; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sidebar {
        width: 48px;
        background: linear-gradient(180deg, #1A1714 0%, #2A2420 50%, #1A1714 100%);
    }

    .sidebar-content {
        bottom: 16px;
        left: 12px;
        gap: 20px;
    }

    .domain-name {
        display: none;
    }

    .nav-dots {
        flex-direction: column;
        gap: 12px;
    }

    .content {
        margin-left: 48px;
    }

    .split-section {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .split-left, .split-right {
        min-height: 50vh;
        padding: 40px 20px;
    }

    .split-divider {
        display: none;
    }

    .watercolor-svg {
        max-width: 400px;
    }

    .material-study {
        width: 180px;
        height: 240px;
    }

    .material {
        transform: none !important;
    }

    .concrete {
        width: 150px;
        height: 210px;
    }

    .brushed-gold {
        width: 135px;
        height: 195px;
        left: 40px;
    }

    .matte-black {
        width: 165px;
        height: 225px;
        left: 45px;
    }

    .monopole-symbol {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 48px;
        border-right: none;
        border-top: 1px solid rgba(212, 175, 55, 0.1);
    }

    .sidebar-content {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .nav-dots {
        flex-direction: row;
        gap: 12px;
    }

    .content {
        margin-left: 0;
        margin-bottom: 48px;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-left, .split-right {
        min-height: auto;
        padding: 30px 16px;
    }

    .cursor-follow {
        display: none;
    }

    .watercolor-svg {
        max-width: 100%;
    }

    .void-section {
        background-color: #1A1714;
        min-height: 50vh;
    }

    .closing-statement {
        padding: 20px;
    }

    .closing-statement p {
        font-size: 1rem;
    }
}

/* ===== SECTION SCROLL STATES ===== */
.split-section {
    transition: transform 0.3s ease;
}
