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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    background-color: #0D0B14;
    color: #B8A8C8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Fog Layers */
.fog-layer {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 1;
}

.fog-layer-1 {
    background: radial-gradient(ellipse at 20% 50%, rgba(42, 31, 61, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(42, 31, 61, 0.1) 0%, transparent 40%);
    animation: fogDrift1 45s ease-in-out infinite;
}

.fog-layer-2 {
    background: radial-gradient(ellipse at 60% 70%, rgba(42, 31, 61, 0.12) 0%, transparent 45%),
                radial-gradient(ellipse at 30% 30%, rgba(74, 47, 107, 0.08) 0%, transparent 50%);
    animation: fogDrift2 60s ease-in-out infinite;
}

.fog-layer-3 {
    background: radial-gradient(ellipse at 50% 50%, rgba(42, 31, 61, 0.08) 0%, transparent 60%);
    animation: fogDrift3 35s ease-in-out infinite;
}

@keyframes fogDrift1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(3%, -2%); }
    50% { transform: translate(-2%, 3%); }
    75% { transform: translate(2%, 1%); }
}

@keyframes fogDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-3%, 2%); }
    66% { transform: translate(2%, -3%); }
}

@keyframes fogDrift3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(4%, 2%); }
}

/* Particle Mist */
.particle-mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.mist-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #E8E0F0;
    border-radius: 50%;
    opacity: 0.1;
    animation: mistRise linear infinite;
}

@keyframes mistRise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

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

.boo-text {
    display: flex;
    gap: 4px;
}

.boo-letter {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 64px;
    color: #E8E0F0;
    opacity: 0;
    text-shadow: 0 0 30px rgba(74, 47, 107, 0.3);
    transition: transform 5s ease, opacity 3s ease;
}

.boo-letter.visible {
    opacity: 0.8;
}

.boo-letter.drifting {
    opacity: 0.6;
}

.boo-letter.drifting[data-index="0"] {
    transform: translateX(-20px);
}

.boo-letter.drifting[data-index="1"] {
    transform: translateY(-10px);
}

.boo-letter.drifting[data-index="2"] {
    transform: translateX(20px);
}

/* Content Sections */
.content-section {
    position: relative;
    min-height: 120vh;
    display: flex;
    align-items: center;
    z-index: 3;
    padding: 0 10%;
}

.content-block {
    max-width: 480px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.content-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

.content-left {
    margin-right: auto;
}

.content-right {
    margin-left: auto;
}

.content-center {
    margin: 0 auto;
    text-align: center;
}

/* Typography */
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 48px;
    color: rgba(232, 224, 240, 0.8);
    text-shadow: 0 0 30px rgba(74, 47, 107, 0.3);
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-body {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(184, 168, 200, 0.7);
    max-width: 400px;
}

.content-right .section-body {
    margin-left: auto;
}

.content-center .section-body {
    margin: 0 auto;
}

.whisper-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    color: #8B7FA0;
    opacity: 0.5;
    text-shadow: 0 0 30px #4A2F6B;
    line-height: 1.6;
}

.final-whisper {
    font-size: 36px;
    color: rgba(232, 224, 240, 0.6);
}

/* Section backgrounds for depth */
.section-3 {
    background: linear-gradient(180deg, transparent 0%, #1A1425 50%, transparent 100%);
}

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

::-webkit-scrollbar-track {
    background: #0D0B14;
}

::-webkit-scrollbar-thumb {
    background: #2A1F3D;
    border-radius: 2px;
}
