/* Explain: Adds winter and festive Christmas decorations like snowfall and seasonal accents. */
/* Winter & festive Christmas decorations: snowfall, garlands and seasonal accents */

.snow-layer {
    position: fixed;
    inset: 0;
    z-index: 45;
    overflow: hidden;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    top: -8vh;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 32%, #ffffff 0%, #eaf5ff 36%, rgba(163, 203, 232, 0.8) 70%, rgba(163, 203, 232, 0) 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 6px rgba(120, 165, 205, 0.75);
    animation-name: snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

@keyframes snow-fall {
    0% {
        transform: translate3d(0, -8vh, 0);
    }

    100% {
        transform: translate3d(var(--drift, 0px), 112vh, 0);
    }
}

.garland {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1;
    line-height: 0;
    pointer-events: none;
    filter: drop-shadow(0 12px 20px rgba(20, 48, 63, 0.22));
}

.garland svg {
    display: block;
    width: 100%;
    max-width: 1400px;
    height: auto;
    margin: 0 auto;
}

.garland-top {
    position: relative;
    top: auto;
    z-index: 1;
    margin-bottom: 0;
    filter: none;
}

.garland-bulb {
    transform-box: fill-box;
    transform-origin: center;
    animation: garland-twinkle 2.8s ease-in-out infinite;
}

.garland-bulb--delay-1 {
    animation-delay: 0.45s;
}

.garland-bulb--delay-2 {
    animation-delay: 0.9s;
}

.garland-bulb--delay-3 {
    animation-delay: 1.35s;
}

.garland-bulb--delay-4 {
    animation-delay: 1.8s;
}

.garland-bulb--delay-5 {
    animation-delay: 2.25s;
}

@keyframes garland-twinkle {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* Frosty glow around section headings */
.section-kicker {
    text-shadow: 0 0 18px rgba(163, 203, 232, 0.55);
}

/* Festive accent under each section heading */
.section-kicker::before {
    background: linear-gradient(90deg, var(--christmas-red), var(--christmas-gold));
}

@media (prefers-reduced-motion: reduce) {
    .snow-layer {
        display: none;
    }

    .garland-bulb {
        animation: none;
    }
}