/* mysterious.day - Surreal Dreamscape */
/* Colors: #C5B8D0, #0F0D18, #2A1F3D, #1A1528, #7B6B8A, #0D0B14, #B8A0C8, #F0E6FF, #D4AF37 */
/* Fonts: Cormorant Garamond, Crimson Pro, Nunito Sans */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0D0B14;
    color: #C5B8D0;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.9;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Central vertical line */
.central-line {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100vh;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* Fog layers */
.fog-layer {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 2;
}

.fog-layer-1 {
    width: 800px;
    height: 800px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(42, 31, 61, 0.15) 0%, transparent 70%);
    animation: fogDrift1 45s ease-in-out infinite alternate;
}

.fog-layer-2 {
    width: 600px;
    height: 600px;
    top: 30%;
    right: -150px;
    background: radial-gradient(circle, rgba(42, 31, 61, 0.12) 0%, transparent 70%);
    animation: fogDrift2 55s ease-in-out infinite alternate;
}

.fog-layer-3 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(26, 21, 40, 0.18) 0%, transparent 70%);
    animation: fogDrift3 38s ease-in-out infinite alternate;
}

.fog-layer-4 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 40%;
    background: radial-gradient(circle, rgba(123, 107, 138, 0.08) 0%, transparent 70%);
    animation: fogDrift4 60s ease-in-out infinite alternate;
}

.fog-layer-5 {
    width: 700px;
    height: 700px;
    top: 20%;
    right: 20%;
    background: radial-gradient(circle, rgba(184, 160, 200, 0.05) 0%, transparent 70%);
    animation: fogDrift5 50s ease-in-out infinite alternate;
}

@keyframes fogDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 40px) scale(1.1); }
}

@keyframes fogDrift2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 30px) scale(1.15); }
}

@keyframes fogDrift3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -50px) scale(1.05); }
}

@keyframes fogDrift4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, -40px) scale(1.2); }
}

@keyframes fogDrift5 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 60px) scale(0.95); }
}

/* Floating apparitions container */
.apparitions-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.apparition {
    position: absolute;
    opacity: 0;
    animation: apparitionFloat linear infinite;
}

.apparition svg {
    width: 100%;
    height: 100%;
}

@keyframes apparitionFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translate(var(--drift-x), var(--drift-y)) rotate(var(--drift-r));
        opacity: 0;
    }
}

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

.hero-content {
    text-align: center;
    position: relative;
}

.title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 56px;
    letter-spacing: 0.06em;
    color: #E8DFF0;
    display: inline-block;
    min-height: 1.2em;
}

.title .char {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.title .char.visible {
    opacity: 1;
}

.subtitle {
    font-family: 'Crimson Pro', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 28px;
    color: #B8A0C8;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.2s ease 0.5s, transform 1.2s ease 0.5s;
}

.subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fog transitions between sections */
.fog-transition {
    height: 200px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(42, 31, 61, 0.15) 40%,
        rgba(42, 31, 61, 0.15) 60%,
        transparent 100%
    );
    position: relative;
    z-index: 3;
}

/* Sections */
.section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 80px 20px;
}

.section-inner {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 42px;
    letter-spacing: 0.06em;
    color: #E8DFF0;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-body {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.9;
    color: #C5B8D0;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

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

.pull-quote {
    font-family: 'Crimson Pro', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 24px;
    color: #B8A0C8;
    border-left: 2px solid #D4AF37;
    padding-left: 24px;
    margin: 40px auto;
    max-width: 500px;
    text-align: left;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.pull-quote.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Dream motif SVG */
.dream-motif {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    opacity: 0;
    transition: opacity 1.2s ease 0.3s;
}

.dream-motif.visible {
    opacity: 1;
}

.dream-svg {
    width: 200px;
    height: 200px;
    animation: dreamRotate 60s linear infinite;
}

@keyframes dreamRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Diagonal section clips */
.section-revelation {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    background: linear-gradient(180deg, rgba(26, 21, 40, 0.3) 0%, transparent 100%);
}

.section-dreamscape {
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    background: linear-gradient(180deg, transparent 0%, rgba(26, 21, 40, 0.2) 50%, transparent 100%);
}

.section-whisper {
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    background: linear-gradient(180deg, rgba(15, 13, 24, 0.4) 0%, transparent 100%);
}

.section-culmination {
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    background: linear-gradient(180deg, transparent 0%, rgba(42, 31, 61, 0.15) 100%);
}

/* Domain echo */
.domain-echo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 72px;
    letter-spacing: 0.08em;
    color: #2A1F3D;
    margin-top: 60px;
    opacity: 0;
    transition: opacity 2s ease, color 2s ease;
}

.domain-echo.visible {
    opacity: 1;
    color: #7B6B8A;
}

/* Footer */
.footer {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 80px 20px 60px;
}

.footer-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #7B6B8A, transparent);
    margin: 0 auto 30px;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.15em;
    color: #7B6B8A;
    text-transform: lowercase;
}

/* Scroll-driven parallax layers */
.parallax-fg {
    position: relative;
    z-index: 5;
}

.parallax-mg {
    position: relative;
    z-index: 3;
}

.parallax-bg {
    position: relative;
    z-index: 1;
}

/* Clock icon that appears on scroll */
.clock-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.clock-icon.visible {
    opacity: 0.4;
}

.clock-icon svg {
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 20px;
    }

    .section-heading {
        font-size: 30px;
    }

    .domain-echo {
        font-size: 42px;
    }

    .pull-quote {
        font-size: 18px;
    }

    .fog-layer-1,
    .fog-layer-2,
    .fog-layer-5 {
        display: none;
    }
}
