/* historic.quest - Neon Cabinet of Curiosities */
/* Colors: #0C0810, #00D4FF, #F0E6F0, #FFFFFF, #E83E8C, #120E14, #A8A0B0, #706878, #C4943A */
/* Fonts: Bodoni Moda (display), Space Grotesk (UI), Inter (body), Lora (quotes) */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0C0810;
    color: #F0E6F0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* Dust Particle Canvas */
#dust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* Neon Glow Overlay */
#neon-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(232, 62, 140, 0.03) 0%, transparent 70%);
}

/* Scroll Sections */
.scroll-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* === THRESHOLD SECTION === */
#threshold {
    flex-direction: column;
    gap: 24px;
}

.neon-line {
    width: 0;
    height: 2px;
    position: relative;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#neon-line-magenta {
    background: #E83E8C;
    box-shadow: 0 0 12px #E83E8C, 0 0 30px rgba(232, 62, 140, 0.4);
}

#neon-line-magenta.active {
    width: 200px;
}

#neon-line-cyan {
    background: #00D4FF;
    box-shadow: 0 0 12px #00D4FF, 0 0 30px rgba(0, 212, 255, 0.4);
}

#neon-line-cyan.active {
    width: 160px;
}

.hero-title {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.1;
    color: #F0E6F0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
    letter-spacing: 2px;
}

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

.title-dot {
    color: #E83E8C;
    text-shadow: 0 0 20px rgba(232, 62, 140, 0.6);
}

.hero-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #A8A0B0;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease 1.6s;
}

.hero-tagline.visible {
    opacity: 1;
}

/* === ARTIFACT CLUSTERS === */
.artifact-cluster {
    position: relative;
    max-width: 340px;
    transform: translateX(-10vw);
}

.artifact-cluster.artifact-right {
    transform: translateX(10vw);
}

.vintage-frame {
    position: relative;
    border: 1px solid #706878;
    padding: 12px;
    background: rgba(12, 8, 16, 0.85);
}

.vintage-frame::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid rgba(168, 160, 176, 0.25);
    pointer-events: none;
}

.frame-inner {
    padding: 24px;
}

.artifact-number {
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 14px;
    color: #E83E8C;
    text-shadow: 0 0 8px rgba(232, 62, 140, 0.4);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.artifact-heading {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.15;
    color: #F0E6F0;
    margin-bottom: 16px;
}

.artifact-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #A8A0B0;
    margin-bottom: 20px;
}

.catalog-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C4943A;
    text-shadow: 0 0 6px rgba(196, 148, 58, 0.3);
    padding-top: 16px;
    border-top: 1px solid rgba(112, 104, 120, 0.3);
}

/* Accent lines */
.cyan-accent-line,
.magenta-accent-line {
    position: absolute;
    width: 2px;
    height: 60px;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
}

.cyan-accent-line {
    background: linear-gradient(to bottom, #00D4FF, transparent);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.magenta-accent-line {
    background: linear-gradient(to bottom, #E83E8C, transparent);
    box-shadow: 0 0 8px rgba(232, 62, 140, 0.3);
}

/* Artifact reveal animation */
.artifact-cluster {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.artifact-cluster.revealed {
    opacity: 1;
    transform: translateX(0) !important;
}

/* === FINALE SECTION === */
#finale {
    flex-direction: column;
}

.finale-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.finale-heading {
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: #F0E6F0;
}

.finale-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    color: #A8A0B0;
    max-width: 400px;
}

.finale-cta {
    margin-top: 16px;
}

.cta-glow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00D4FF;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    padding: 12px 32px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: inline-block;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.cta-glow:hover {
    border-color: #00D4FF;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.cta-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 255, 0.05);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-glow:hover::after {
    opacity: 1;
}

/* === SCROLL PROGRESS === */
#scroll-progress {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 100px;
    background: rgba(112, 104, 120, 0.2);
    z-index: 100;
}

#scroll-progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #E83E8C, #00D4FF);
    box-shadow: 0 0 6px rgba(232, 62, 140, 0.4);
    transition: height 0.1s linear;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
    .hero-title {
        font-size: 72px;
    }

    .artifact-heading {
        font-size: 36px;
    }

    .artifact-cluster {
        max-width: 380px;
    }

    .finale-heading {
        font-size: 36px;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 96px;
    }

    .artifact-cluster {
        transform: translateX(-20vw);
    }

    .artifact-cluster.artifact-right {
        transform: translateX(20vw);
    }
}
