/* ===== Custom Properties ===== */
:root {
    --void-base: #0a0a14;
    --nebula-mid: #1a1035;
    --spectral-cyan: #00e5ff;
    --phantom-violet: #b14aed;
    --iridescent-pink: #ff2d7b;
    --smoke-gray: #8a8a9e;
    --phosphor-white: #e8e0f0;
    --bubble-membrane: rgba(0, 229, 255, 0.08);
    --elastic-out: cubic-bezier(0.34, 1.56, 0.64, 1);
    --elastic-in-out: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

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

body {
    margin: 0;
    padding: 0;
    background: var(--void-base);
    overflow-x: hidden;
    color: var(--phosphor-white);
    font-family: 'Libre Baskerville', serif;
}

/* ===== Main Scroll Container ===== */
#scroll-container {
    scroll-snap-type: y proximity;
    overflow-y: auto;
    height: 100vh;
}

/* ===== Hero Sections ===== */
.hero-section {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-0 .section-bg {
    background: linear-gradient(170deg, #0a0a14 0%, #1a1035 40%, #0a0a14 100%);
}
.section-1 .section-bg {
    background: linear-gradient(170deg, #1a1035 0%, #0a0a14 50%, #1a1035 100%);
}
.section-2 .section-bg {
    background: linear-gradient(170deg, #0a0a14 0%, #1a1035 60%, #0a0a14 100%);
}
.section-3 .section-bg {
    background: linear-gradient(170deg, #1a1035 0%, #0a0a14 40%, #1a1035 100%);
}
.section-4 .section-bg {
    background: linear-gradient(170deg, #0a0a14 0%, #1a1035 50%, #0a0a14 100%);
}

/* ===== Bubble Layer ===== */
.bubble-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--bubble-membrane), transparent 70%);
    border: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.06), inset 0 0 20px rgba(177, 74, 237, 0.03);
    animation: float var(--float-duration, 12s) ease-in-out infinite alternate;
    animation-delay: var(--float-delay, 0s);
    will-change: transform;
    transition: transform 0.6s var(--elastic-out);
}

.bubble .bubble-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poiret One', cursive;
    color: var(--spectral-cyan);
    opacity: 0.15;
    font-size: 1.5rem;
    pointer-events: none;
}

@keyframes float {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-15vh) scale(0.95); }
}

/* ===== Scanlines ===== */
.scanlines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.scanline {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00e5ff, #b14aed, #ff2d7b);
    opacity: 0;
    animation: scanline-sweep var(--scan-duration, 5s) linear infinite;
    animation-delay: var(--scan-delay, 0s);
}

@keyframes scanline-sweep {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { top: 105%; opacity: 0; }
}

/* ===== Section Content ===== */
.section-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s var(--elastic-out);
}

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

/* ===== Wordmark ===== */
.wordmark {
    font-family: 'Poiret One', cursive;
    font-size: clamp(15vw, 20vw, 25vw);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--phosphor-white);
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
}

.wordmark-glitch {
    font-family: 'Poiret One', cursive;
    font-size: clamp(15vw, 20vw, 25vw);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--iridescent-pink);
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
}

/* ===== Section Headings ===== */
.section-heading {
    font-family: 'Poiret One', cursive;
    font-size: clamp(12vw, 18vw, 24vw);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--phosphor-white);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--spectral-cyan);
    display: block;
    margin-bottom: 1rem;
}

/* ===== Body Text ===== */
.body-text {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--smoke-gray);
    max-width: 600px;
    margin: 0 auto;
}

.hero-tagline {
    margin-top: 0.5rem;
}

/* ===== Gradient Line ===== */
.gradient-line {
    width: 60%;
    height: 1px;
    margin: 2.5rem auto 0;
    background: linear-gradient(90deg, transparent, #00e5ff, #b14aed, #ff2d7b, transparent);
    animation: pulse-line 4s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ===== Art Deco Frame ===== */
.deco-frame {
    position: absolute;
    inset: 5%;
    pointer-events: none;
    z-index: 0;
}

.deco-frame svg {
    width: 100%;
    height: 100%;
}

.deco-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.5s ease;
}

.section-content.visible ~ .deco-frame .deco-path,
.visible .deco-path {
    stroke-dashoffset: 0;
}

/* We handle deco-path animation via parent section class */
.hero-section.in-view .deco-path {
    stroke-dashoffset: 0;
}

/* ===== Domain Footer ===== */
.domain-footer {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    color: var(--phantom-violet);
    margin-top: 3rem;
}
