/* ========================================
   20241204.com - Aurora Frost Design
   ======================================== */

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

:root {
    --deep-void: #0a0a1a;
    --midnight-layer: #121230;
    --aurora-green: #00e68a;
    --aurora-violet: #8b5cf6;
    --aurora-teal: #06b6d4;
    --aurora-rose: #f472b6;
    --frost-white: #e8edf5;
    --soft-fog: rgba(255, 255, 255, 0.07);
    --candle-gold: #fbbf24;
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.06);
}

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

body {
    background-color: var(--deep-void);
    color: var(--frost-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Aurora Gradient Background --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: linear-gradient(
        135deg,
        var(--aurora-green),
        var(--aurora-teal),
        var(--aurora-violet),
        var(--aurora-rose),
        var(--aurora-green)
    );
    background-size: 400% 400%;
    animation: auroraShift 20s ease infinite;
    opacity: 0.25;
}

@keyframes auroraShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* --- Navigation Pill --- */
.nav-pill {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--frost-white);
    letter-spacing: 0.05em;
    cursor: default;
    user-select: none;
}

.nav-flame-icon {
    font-size: 0.9rem;
    animation: flamePulse 2s ease-in-out infinite;
}

@keyframes flamePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

/* --- Candle Element --- */
.candle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    width: 30px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.candle-glow {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.candle-body {
    width: 12px;
    height: 60px;
    background: linear-gradient(to bottom, #f5e6c8, #e8d5b0);
    border-radius: 2px 2px 3px 3px;
    position: relative;
}

.candle-body::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #444;
    border-radius: 1px;
}

.candle-flame {
    position: absolute;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 24px;
}

.flame-outer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 24px;
    background: radial-gradient(ellipse at 50% 90%, var(--candle-gold) 0%, #f59e0b 30%, rgba(251, 191, 36, 0.3) 60%, transparent 80%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flameFlicker 3s ease-in-out infinite;
}

.flame-inner {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 14px;
    background: radial-gradient(ellipse at 50% 90%, #fff 0%, var(--candle-gold) 50%, transparent 80%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 1;
    animation: flameFlickerInner 2.3s ease-in-out infinite;
}

@keyframes flameFlicker {
    0% { transform: translateX(-50%) scaleY(1) scaleX(1); opacity: 1; }
    15% { transform: translateX(-50%) scaleY(1.05) scaleX(0.95); opacity: 0.95; }
    30% { transform: translateX(-50%) scaleY(0.92) scaleX(1.03); opacity: 1; }
    50% { transform: translateX(-50%) scaleY(1.08) scaleX(0.97); opacity: 0.9; }
    65% { transform: translateX(-50%) scaleY(0.95) scaleX(1.02); opacity: 1; }
    80% { transform: translateX(-50%) scaleY(1.02) scaleX(0.98); opacity: 0.93; }
    100% { transform: translateX(-50%) scaleY(1) scaleX(1); opacity: 1; }
}

@keyframes flameFlickerInner {
    0% { transform: translateX(-50%) scaleY(1); opacity: 0.9; }
    25% { transform: translateX(-50%) scaleY(1.1); opacity: 1; }
    50% { transform: translateX(-50%) scaleY(0.88); opacity: 0.85; }
    75% { transform: translateX(-50%) scaleY(1.05); opacity: 0.95; }
    100% { transform: translateX(-50%) scaleY(1); opacity: 0.9; }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.hero-glass {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15em;
    font-family: 'Righteous', cursive;
    font-size: clamp(3rem, 8vw, 9rem);
    line-height: 1;
    color: var(--frost-white);
}

.date-char {
    display: inline-block;
    padding: 0.05em 0.12em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transform: perspective(800px) rotateY(var(--char-tilt));
    transition: transform 0.6s ease, background 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.date-char:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: perspective(800px) rotateY(0deg) scale(1.05);
}

.date-separator {
    background: transparent;
    border-color: transparent;
    font-size: 0.6em;
    opacity: 0.5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    letter-spacing: 0.2em;
    text-transform: lowercase;
    opacity: 0.6;
}

/* --- Frost Crystals --- */
.frost-crystal {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
    animation: frostRotate 120s linear infinite;
}

.frost-crystal-1 {
    width: 140px;
    height: 140px;
    top: 10%;
    right: 8%;
}

.frost-crystal-2 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 12%;
}

.frost-crystal-transition {
    position: absolute;
    width: 60px;
    height: 60px;
    bottom: -30px;
    right: 15%;
    z-index: 2;
}

.frost-crystal-3 {
    bottom: -35px;
    right: auto;
    left: 20%;
}

@keyframes frostRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Content Sections --- */
.content-section {
    position: relative;
    z-index: 1;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 10vh 5vw;
    margin-bottom: 10vh;
}

.section-left {
    justify-content: flex-start;
    padding-left: 12%;
}

.section-right {
    justify-content: flex-end;
    padding-right: 12%;
}

.section-center {
    justify-content: center;
}

/* --- Watercolor Washes --- */
.watercolor-wash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.wash-green {
    background:
        radial-gradient(ellipse 50vw 40vh at 20% 30%, rgba(0, 230, 138, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 35vw 30vh at 70% 60%, rgba(0, 230, 138, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 45vw 35vh at 40% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 65%);
}

.wash-violet {
    background:
        radial-gradient(ellipse 55vw 45vh at 75% 40%, rgba(139, 92, 246, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 40vw 35vh at 30% 70%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50vw 40vh at 60% 20%, rgba(244, 114, 182, 0.03) 0%, transparent 65%);
}

.wash-teal {
    background:
        radial-gradient(ellipse 48vw 38vh at 25% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 42vw 32vh at 65% 30%, rgba(6, 182, 212, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 55vw 45vh at 45% 75%, rgba(0, 230, 138, 0.03) 0%, transparent 65%);
}

.wash-rose {
    background:
        radial-gradient(ellipse 50vw 42vh at 70% 45%, rgba(244, 114, 182, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 38vw 30vh at 25% 65%, rgba(244, 114, 182, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 46vw 36vh at 55% 25%, rgba(139, 92, 246, 0.03) 0%, transparent 65%);
}

.wash-gold {
    background:
        radial-gradient(ellipse 45vw 40vh at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 35vw 30vh at 30% 35%, rgba(251, 191, 36, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 40vw 35vh at 70% 70%, rgba(244, 114, 182, 0.03) 0%, transparent 65%);
}

/* --- Glass Cards --- */
.glass-card {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 2.5rem 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.section-meta {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--aurora-teal);
    opacity: 0.7;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Righteous', cursive;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: var(--frost-white);
}

.section-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.8;
    opacity: 0.75;
    margin-bottom: 0.8rem;
}

.section-text:last-child {
    margin-bottom: 0;
}

.mono-accent {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    letter-spacing: 0.3em;
    opacity: 0.5;
    margin-top: 0.5rem;
}

/* --- Stagger Animation --- */
.stagger-container > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-container.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-container.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger-container.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger-container.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger-container.visible > *:nth-child(5) { transition-delay: 320ms; }

.stagger-container.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Restore correct opacities after animation */
.stagger-container.visible > .section-meta { opacity: 0.7; }
.stagger-container.visible > .section-text { opacity: 0.75; }
.stagger-container.visible > .mono-accent { opacity: 0.5; }

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    margin-top: 10vh;
}

.footer-glass {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.footer-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    opacity: 0.4;
    text-transform: lowercase;
}

/* --- Parallax Utility (applied via JS) --- */
.aurora-bg.parallax {
    will-change: transform;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-left,
    .section-right {
        justify-content: center;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .hero-glass {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .hero-date {
        gap: 0.05em;
    }

    .date-char {
        padding: 0.03em 0.08em;
        border-radius: 5px;
    }

    .glass-card {
        padding: 2rem 1.8rem;
        max-width: 100%;
    }

    .candle {
        bottom: 1rem;
        left: 1rem;
        transform: scale(0.8);
        transform-origin: bottom left;
    }

    .frost-crystal-1,
    .frost-crystal-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-date {
        flex-wrap: wrap;
        gap: 0.08em;
    }

    .nav-pill {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.9rem;
        font-size: 0.65rem;
    }
}
