/* pzz.lu — Fairycore Meditation Space */
/* Colors: #091209, #7a9e7e, #c9874a, #0d1f17, #1b3a2d, #f4ede4, #2d5a3f, #d4a95e */

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

html, body {
    height: 100%;
    overflow: hidden;
    background: #091209;
    color: #f4ede4;
    font-family: 'Lora', serif;
}

/* The Candle Path — Horizontal Scroll Container */
.candle-path {
    display: flex;
    width: 600vw;
    height: 100vh;
    transition: transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Individual Scenes */
.scene {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

/* Scene Backgrounds */
.scene-1 {
    background: radial-gradient(ellipse at 50% 80%, #1b3a2d 0%, #0d1f17 40%, #091209 100%);
}

.scene-2 {
    background: radial-gradient(ellipse at 30% 60%, #2d5a3f 0%, #1b3a2d 30%, #0d1f17 60%, #091209 100%);
}

.scene-3 {
    background: radial-gradient(ellipse at 70% 40%, #1b3a2d 0%, #0d1f17 50%, #091209 100%);
}

.scene-4 {
    background: radial-gradient(ellipse at 50% 50%, #2d5a3f 0%, #1b3a2d 25%, #0d1f17 55%, #091209 100%);
}

.scene-5 {
    background: radial-gradient(ellipse at 40% 70%, #1b3a2d 0%, #0d1f17 45%, #091209 100%);
}

.scene-6 {
    background: radial-gradient(ellipse at 50% 50%, #1b3a2d 0%, #091209 70%);
}

/* Typography */
.scene-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: 0.08em;
    line-height: 1.15;
    color: #f4ede4;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.scene.active .scene-title {
    opacity: 1;
    transform: translateY(0);
}

.scene-text {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #7a9e7e;
    letter-spacing: 0.02em;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.4s ease 0.3s, transform 1.4s ease 0.3s;
}

.scene.active .scene-text {
    opacity: 1;
    transform: translateY(0);
}

.scene-annotation {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: #d4a95e;
    opacity: 0;
    margin-top: 2rem;
    transition: opacity 1.6s ease 0.6s;
}

.scene.active .scene-annotation {
    opacity: 0.7;
}

/* Fireflies */
.firefly {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4a95e;
    box-shadow: 0 0 8px 3px rgba(212, 169, 94, 0.4), 0 0 20px 6px rgba(212, 169, 94, 0.15);
    animation: fireflyPulse 4s ease-in-out infinite, fireflyDrift 8s ease-in-out infinite;
    animation-delay: var(--delay);
    z-index: 3;
}

@keyframes fireflyPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.6); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes fireflyDrift {
    0%, 100% { translate: 0 0; }
    25% { translate: 10px -8px; }
    50% { translate: -5px -15px; }
    75% { translate: 8px 5px; }
}

/* Candle Glow (Scene 4) */
.candle-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 169, 94, 0.15) 0%, transparent 70%);
    animation: candleFlicker 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes candleFlicker {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    33% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.05); }
    66% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
}

/* Botanical SVGs */
.botanical-fern {
    position: absolute;
    bottom: 5%;
    right: 10%;
    width: 150px;
    height: auto;
    opacity: 0.7;
    animation: gentleSway 6s ease-in-out infinite;
}

.botanical-mushroom {
    position: absolute;
    bottom: 8%;
    left: 15%;
    width: 100px;
    height: auto;
    opacity: 0.8;
}

.mushroom-small {
    left: auto;
    right: 20%;
    bottom: 5%;
    width: 70px;
    opacity: 0.6;
}

.botanical-spiral {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 180px;
    height: auto;
    opacity: 0.5;
    animation: slowRotate 30s linear infinite;
}

.botanical-lily {
    position: absolute;
    bottom: 15%;
    left: 20%;
    width: 140px;
    height: auto;
    opacity: 0.7;
}

.botanical-book {
    position: absolute;
    bottom: 10%;
    right: 12%;
    width: 160px;
    height: auto;
    opacity: 0.6;
}

@keyframes gentleSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

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

/* Scroll Hint */
.scroll-hint {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-text {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: #d4a95e;
    opacity: 0.7;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(5px); opacity: 1; }
}

/* Scene Dots */
.scene-dots {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7a9e7e;
    opacity: 0.3;
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.5s ease;
    cursor: pointer;
}

.dot.active {
    opacity: 1;
    background: #d4a95e;
    transform: scale(1.4);
}

/* Responsive */
@media (max-width: 768px) {
    .botanical-fern,
    .botanical-mushroom,
    .botanical-spiral,
    .botanical-lily,
    .botanical-book,
    .mushroom-small {
        width: 80px;
        opacity: 0.5;
    }

    .scene-dots {
        bottom: 1rem;
    }

    .scroll-hint {
        bottom: 1rem;
        right: 1rem;
    }
}
