/* opensource.day - Fairycore / Dark-Neon Midnight Garden */

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(
        to bottom,
        #0A0A14 0%,
        #0A0A14 15%,
        #0F1020 30%,
        #1A1A30 50%,
        #0F1020 70%,
        #0A0A14 85%,
        #0A0A14 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Nunito', sans-serif;
    color: #B0D8C0;
    position: relative;
}

/* Watercolor glow zones */
.glow-zone {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

.glow-green {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.04) 0%, transparent 70%);
}

.glow-lavender {
    background: radial-gradient(circle, rgba(138, 96, 208, 0.04) 0%, transparent 70%);
}

.glow-pink {
    background: radial-gradient(circle, rgba(255, 110, 199, 0.03) 0%, transparent 70%);
}

/* Firefly particles */
#fireflies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #00FF88;
    opacity: 0;
    animation: firefly-drift linear infinite;
}

.firefly:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; }
.firefly:nth-child(2) { left: 12%; animation-duration: 15s; animation-delay: 1.2s; }
.firefly:nth-child(3) { left: 20%; animation-duration: 11s; animation-delay: 2.5s; }
.firefly:nth-child(4) { left: 28%; animation-duration: 14s; animation-delay: 0.8s; }
.firefly:nth-child(5) { left: 35%; animation-duration: 13s; animation-delay: 3.1s; }
.firefly:nth-child(6) { left: 42%; animation-duration: 16s; animation-delay: 1.7s; }
.firefly:nth-child(7) { left: 48%; animation-duration: 10s; animation-delay: 4.2s; }
.firefly:nth-child(8) { left: 55%; animation-duration: 14s; animation-delay: 0.3s; }
.firefly:nth-child(9) { left: 62%; animation-duration: 12s; animation-delay: 2.8s; }
.firefly:nth-child(10) { left: 68%; animation-duration: 15s; animation-delay: 1.5s; }
.firefly:nth-child(11) { left: 75%; animation-duration: 11s; animation-delay: 3.6s; }
.firefly:nth-child(12) { left: 82%; animation-duration: 13s; animation-delay: 0.6s; }
.firefly:nth-child(13) { left: 88%; animation-duration: 16s; animation-delay: 2.1s; }
.firefly:nth-child(14) { left: 93%; animation-duration: 12s; animation-delay: 4.5s; }
.firefly:nth-child(15) { left: 8%; animation-duration: 14s; animation-delay: 5.2s; }
.firefly:nth-child(16) { left: 18%; animation-duration: 11s; animation-delay: 6.0s; }
.firefly:nth-child(17) { left: 32%; animation-duration: 15s; animation-delay: 3.8s; }
.firefly:nth-child(18) { left: 45%; animation-duration: 13s; animation-delay: 7.1s; }
.firefly:nth-child(19) { left: 58%; animation-duration: 12s; animation-delay: 5.7s; }
.firefly:nth-child(20) { left: 72%; animation-duration: 16s; animation-delay: 2.3s; }
.firefly:nth-child(21) { left: 85%; animation-duration: 14s; animation-delay: 6.5s; }
.firefly:nth-child(22) { left: 15%; animation-duration: 11s; animation-delay: 8.0s; }
.firefly:nth-child(23) { left: 38%; animation-duration: 13s; animation-delay: 7.4s; }
.firefly:nth-child(24) { left: 65%; animation-duration: 15s; animation-delay: 4.8s; }
.firefly:nth-child(25) { left: 90%; animation-duration: 12s; animation-delay: 6.8s; }

@keyframes firefly-drift {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.15;
        transform: translateY(50vh) translateX(20px);
    }
    70% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.05;
    }
    100% {
        transform: translateY(-20vh) translateX(-15px);
        opacity: 0;
    }
}

/* Vine SVG overlay */
.vine-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.vine {
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 2s ease;
}

.vine.visible {
    opacity: 1;
}

.vine-1 { stroke: #00FF88; stroke-opacity: 0.2; }
.vine-2 { stroke: #8A60D0; stroke-opacity: 0.15; }
.vine-3 { stroke: #00FF88; stroke-opacity: 0.18; }
.vine-4 { stroke: #FF6EC7; stroke-opacity: 0.12; }
.vine-5 { stroke: #8A60D0; stroke-opacity: 0.2; }
.vine-6 { stroke: #00FF88; stroke-opacity: 0.15; }

/* Section layout */
.section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
}

#hero {
    min-height: 100vh;
}

.content-column {
    max-width: 600px;
    width: 100%;
    padding: 0 24px;
}

/* Typography */
.title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 56px;
    color: #00FF88;
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    animation: title-fade-in 1s ease forwards;
}

@keyframes title-fade-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tagline {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #B0D8C0;
    text-align: center;
    margin-top: 16px;
    opacity: 0;
    animation: tagline-fade-in 1s ease 0.4s forwards;
}

@keyframes tagline-fade-in {
    to {
        opacity: 1;
    }
}

.section-heading {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: #00FF88;
    margin-bottom: 24px;
}

.body-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: #B0D8C0;
    margin-bottom: 16px;
}

.botanical-note {
    font-family: 'Spectral', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 15px;
    color: #8A60D0;
    margin-top: 24px;
}

/* Mushroom morph */
.mushroom-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

#mushroom-cap {
    transition: d 0.6s ease;
}

#mushroom-svg.morphed #mushroom-cap {
    d: path("M 40 120 C 40 60, 70 30, 100 30 C 130 30, 160 60, 160 120 Z");
}

.mushroom-spore {
    animation: spore-float 4s ease-in-out infinite alternate;
}

.mushroom-spore:nth-child(3) { animation-delay: 0.5s; }
.mushroom-spore:nth-child(4) { animation-delay: 1s; }
.mushroom-spore:nth-child(5) { animation-delay: 1.5s; }

@keyframes spore-float {
    0% { transform: translateY(0); opacity: 0.2; }
    100% { transform: translateY(-8px); opacity: 0.4; }
}

/* Dewdrop morph */
.dewdrop-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

#dewdrop-shape {
    transition: d 0.6s ease;
}

#dewdrop-svg.morphed #dewdrop-shape {
    d: path("M 50 15 C 52 15, 75 45, 75 60 C 75 78, 63 88, 50 88 C 37 88, 25 78, 25 60 C 25 45, 48 15, 50 15 Z");
}

/* Metadata text */
.meta-text {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #4A8A6A;
}

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

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

    .glow-zone {
        width: 350px;
        height: 350px;
    }

    .section {
        padding: 48px 0;
    }
}
