/* lovely.day - Evolved Minimal Horizontal Scroll */
/* Color Palette */
:root {
    --twilight-violet: #2c2438;
    --plum-dusk: #4a4358;
    --lavender-mist: #e8e0f0;
    --morning-gold: #d4a853;
    --amber-dawn: #b8863a;
    --soft-cream: #f7f4f0;
    --pearl-gray: #eae6e2;
    --rose-horizon: #c97b6b;
    --deep-indigo: #1a1528;
    --mid-violet: #3a2e50;
    --soft-lavender: #8e7ea8;
    --dark-violet: #4a3a5e;
    --rose-dusk: #8e6070;

    /* Sky gradient custom properties */
    --sky-1: #1a1528;
    --sky-2: #2c2438;
    --sky-3: #3a2e50;
    --sky-4: #4a3a5e;
}

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

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 350;
    background: var(--deep-indigo);
}

/* Sky gradient background */
.sky-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 100%, var(--sky-3) 0%, var(--sky-2) 30%, var(--sky-1) 60%, var(--sky-4) 100%);
    transition: background 0.1s linear;
}

/* Mountain layers */
.mountains {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 35vh;
    z-index: 1;
    pointer-events: none;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    will-change: transform;
}

.mountain-far {
    opacity: 0.15;
    z-index: 1;
}

.mountain-mid {
    opacity: 0.3;
    z-index: 2;
}

.mountain-near {
    opacity: 0.5;
    z-index: 3;
}

/* Breath particles */
.breath-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(232, 224, 240, 0.6);
    mix-blend-mode: screen;
}

.p1 { left: 10%; bottom: 40%; animation: breathe 8s ease-in-out infinite; }
.p2 { left: 25%; bottom: 55%; animation: breathe 10s ease-in-out 1s infinite; }
.p3 { left: 40%; bottom: 35%; animation: breathe 9s ease-in-out 2s infinite; }
.p4 { left: 55%; bottom: 50%; animation: breathe 11s ease-in-out 0.5s infinite; }
.p5 { left: 70%; bottom: 45%; animation: breathe 7s ease-in-out 3s infinite; }
.p6 { left: 15%; bottom: 60%; animation: breathe 12s ease-in-out 1.5s infinite; }
.p7 { left: 80%; bottom: 38%; animation: breathe 9s ease-in-out 2.5s infinite; }
.p8 { left: 50%; bottom: 52%; animation: breathe 10s ease-in-out 4s infinite; }

@keyframes breathe {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-80px) scale(1.2);
        opacity: 0.4;
    }
    90% {
        opacity: 0;
    }
}

/* Light rays */
.light-rays {
    position: fixed;
    bottom: 30%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    transform: translateX(-50%);
}

.ray {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 60vh;
    background: linear-gradient(to top, rgba(212, 168, 83, 0.3), transparent);
    transform-origin: bottom center;
}

.r1 { transform: rotate(-20deg); opacity: 0.4; }
.r2 { transform: rotate(-10deg); opacity: 0.6; }
.r3 { transform: rotate(0deg); opacity: 0.8; }
.r4 { transform: rotate(10deg); opacity: 0.6; }
.r5 { transform: rotate(20deg); opacity: 0.4; }

/* Dew drops */
.dew-drops {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.dew {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(212, 168, 83, 0.3));
    box-shadow: 0 0 4px rgba(212, 168, 83, 0.3);
}

.d1 { top: 65%; left: 20%; animation: dewGlow 4s ease-in-out infinite; }
.d2 { top: 72%; left: 35%; animation: dewGlow 5s ease-in-out 1s infinite; }
.d3 { top: 58%; left: 50%; animation: dewGlow 3.5s ease-in-out 0.5s infinite; }
.d4 { top: 68%; left: 65%; animation: dewGlow 4.5s ease-in-out 2s infinite; }
.d5 { top: 75%; left: 80%; animation: dewGlow 6s ease-in-out 1.5s infinite; }
.d6 { top: 62%; left: 10%; animation: dewGlow 5.5s ease-in-out 3s infinite; }

@keyframes dewGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Time marker */
.time-marker {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 20;
    pointer-events: none;
}

.time-label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft-lavender);
    background: rgba(26, 21, 40, 0.4);
    padding: 6px 12px;
    border-radius: 2px;
    backdrop-filter: blur(8px);
    transition: color 0.6s ease, background 0.6s ease;
}

/* Scroll container */
.scroll-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    z-index: 5;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-track {
    display: flex;
    width: 800vw;
    height: 100vh;
}

/* Zones */
.zone {
    flex-shrink: 0;
    width: 160vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
}

.zone-content {
    max-width: 600px;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

/* Zone headlines */
.zone-headline {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 56px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.zone-headline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Zone text */
.zone-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 350;
    font-size: 18px;
    letter-spacing: 0.005em;
    line-height: 1.65;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

.zone-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pre-dawn zone */
.headline-predawn { color: var(--lavender-mist); }
.text-predawn { color: rgba(232, 224, 240, 0.7); }

/* Dawn zone */
.zone-content-dawn {
    max-width: 550px;
}
.headline-dawn { color: var(--morning-gold); border-left: 2px solid #8e6070; padding-left: 20px; }
.text-dawn { color: rgba(232, 224, 240, 0.8); }
.text-dawn-2 {
    transition-delay: 0.3s;
}

/* Morning zone */
.zone-content-morning {
    max-width: 700px;
    text-align: center;
}

.logotype {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 96px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--twilight-violet);
    margin-bottom: 32px;
    display: inline-block;
}

.logo-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-char.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo-dot {
    color: var(--morning-gold);
}

.text-morning {
    color: var(--plum-dusk);
    font-size: 20px;
}

/* Afternoon zone */
.zone-content-afternoon {
    max-width: 900px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.content-card {
    flex: 1;
    background: rgba(234, 230, 226, 0.85);
    padding: 40px;
    border-radius: 4px;
    backdrop-filter: blur(8px);
}

.card-1 {
    transform: translateY(0);
}

.card-2 {
    transform: translateY(40px);
}

.card-label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-dawn);
    margin-bottom: 16px;
    display: block;
}

.headline-afternoon {
    font-size: 36px;
    color: var(--twilight-violet);
}

.text-afternoon {
    color: var(--plum-dusk);
}

/* Dusk zone */
.zone-content-dusk {
    max-width: 550px;
    text-align: center;
}

.headline-dusk { color: var(--lavender-mist); }
.text-dusk { color: rgba(232, 224, 240, 0.6); }
.text-dusk-2 {
    transition-delay: 0.3s;
}

.dusk-label {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft-lavender);
    margin-top: 40px;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.8s ease 0.6s;
}

.dusk-label.visible {
    opacity: 0.6;
}

/* Horizon line */
.horizon-line {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 1px;
    background: var(--deep-indigo);
    z-index: 30;
    transition: background 0.3s ease;
}

.horizon-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--morning-gold);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(212, 168, 83, 0.6);
    transition: left 0.05s linear, background 0.3s ease, box-shadow 0.3s ease;
}

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

    .logotype {
        font-size: 56px;
    }

    .zone-text {
        font-size: 16px;
    }

    .zone-content {
        padding: 0 24px;
    }

    .zone-content-afternoon {
        flex-direction: column;
        gap: 24px;
        padding: 0 24px;
    }

    .content-card {
        padding: 24px;
    }

    .card-2 {
        transform: translateY(0);
    }

    .headline-afternoon {
        font-size: 28px;
    }

    .time-marker {
        top: 16px;
        right: 16px;
    }
}
