/* Christmas Snow Animation for SaverSaurus */

/* Snowflake container - doesn't block interaction */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Individual snowflake styling */
.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    opacity: 0.9;
    animation: fall linear infinite;
    user-select: none;
}

/* Falling animation */
@keyframes fall {
    0% {
        top: -10%;
        opacity: 0.9;
    }
    100% {
        top: 110%;
        opacity: 0.3;
    }
}

/* Swaying animation for more natural movement */
@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

/* Create variety in snowflakes with different speeds and positions */
.snowflake:nth-child(1) { left: 2%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2em; }
.snowflake:nth-child(2) { left: 8%; animation-duration: 12s; animation-delay: 1s; font-size: 0.8em; }
.snowflake:nth-child(3) { left: 14%; animation-duration: 15s; animation-delay: 2s; font-size: 1.5em; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 11s; animation-delay: 3s; font-size: 1em; }
.snowflake:nth-child(5) { left: 26%; animation-duration: 13s; animation-delay: 0.5s; font-size: 1.3em; }
.snowflake:nth-child(6) { left: 32%; animation-duration: 14s; animation-delay: 1.5s; font-size: 0.9em; }
.snowflake:nth-child(7) { left: 38%; animation-duration: 16s; animation-delay: 2.5s; font-size: 1.1em; }
.snowflake:nth-child(8) { left: 44%; animation-duration: 12s; animation-delay: 3.5s; font-size: 1.4em; }
.snowflake:nth-child(9) { left: 50%; animation-duration: 10s; animation-delay: 0.8s; font-size: 0.7em; }
.snowflake:nth-child(10) { left: 56%; animation-duration: 13s; animation-delay: 1.8s; font-size: 1.2em; }
.snowflake:nth-child(11) { left: 62%; animation-duration: 15s; animation-delay: 2.8s; font-size: 1em; }
.snowflake:nth-child(12) { left: 68%; animation-duration: 11s; animation-delay: 3.8s; font-size: 1.5em; }
.snowflake:nth-child(13) { left: 74%; animation-duration: 14s; animation-delay: 0.3s; font-size: 0.8em; }
.snowflake:nth-child(14) { left: 80%; animation-duration: 12s; animation-delay: 1.3s; font-size: 1.3em; }
.snowflake:nth-child(15) { left: 86%; animation-duration: 16s; animation-delay: 2.3s; font-size: 1.1em; }
.snowflake:nth-child(16) { left: 92%; animation-duration: 13s; animation-delay: 3.3s; font-size: 0.9em; }
.snowflake:nth-child(17) { left: 5%; animation-duration: 11s; animation-delay: 4s; font-size: 1.4em; }
.snowflake:nth-child(18) { left: 17%; animation-duration: 14s; animation-delay: 0.7s; font-size: 1em; }
.snowflake:nth-child(19) { left: 35%; animation-duration: 15s; animation-delay: 1.7s; font-size: 1.2em; }
.snowflake:nth-child(20) { left: 65%; animation-duration: 10s; animation-delay: 2.7s; font-size: 0.8em; }

/* Add sway to some snowflakes for more natural movement */
.snowflake:nth-child(odd) {
    animation-name: fall, sway;
}

/* Responsive: fewer snowflakes on mobile for better performance */
@media (max-width: 768px) {
    .snowflake:nth-child(n+11) {
        display: none;
    }
}

/* Subtle Christmas glow effect on navbar during scroll */
.navbar {
    transition: box-shadow 0.3s ease;
}

.navbar.christmas-glow {
    box-shadow: 0 2px 20px rgba(255, 77, 77, 0.1);
}

/* Optional: Add festive border to footer */
.site-footer {
    border-top: 2px solid rgba(255, 77, 77, 0.1);
}
