/* =============================================
   Snow Effect - Festive Winter Animation
   Pure CSS snowfall animation
   ============================================= */

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0.8;
}

/* Different sizes for variety */
.snowflake.small { font-size: 0.6em; opacity: 0.5; }
.snowflake.medium { font-size: 1em; opacity: 0.7; }
.snowflake.large { font-size: 1.4em; opacity: 0.9; }

/* Snowflake positions and animation durations */
.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 15%; animation-duration: 8s; animation-delay: 0.5s; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 14s; animation-delay: 2s; }
.snowflake:nth-child(5) { left: 25%; animation-duration: 9s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 30%; animation-duration: 11s; animation-delay: 0s; }
.snowflake:nth-child(7) { left: 35%; animation-duration: 13s; animation-delay: 3s; }
.snowflake:nth-child(8) { left: 40%; animation-duration: 7s; animation-delay: 0.5s; }
.snowflake:nth-child(9) { left: 45%; animation-duration: 10s; animation-delay: 2s; }
.snowflake:nth-child(10) { left: 50%; animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(11) { left: 55%; animation-duration: 9s; animation-delay: 0s; }
.snowflake:nth-child(12) { left: 60%; animation-duration: 15s; animation-delay: 3s; }
.snowflake:nth-child(13) { left: 65%; animation-duration: 8s; animation-delay: 1.5s; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 11s; animation-delay: 2.5s; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 10s; animation-delay: 0.5s; }
.snowflake:nth-child(16) { left: 80%; animation-duration: 13s; animation-delay: 1s; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 9s; animation-delay: 2s; }
.snowflake:nth-child(18) { left: 90%; animation-duration: 12s; animation-delay: 0s; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 8s; animation-delay: 3s; }
.snowflake:nth-child(20) { left: 3%; animation-duration: 14s; animation-delay: 1.5s; }
.snowflake:nth-child(21) { left: 97%; animation-duration: 11s; animation-delay: 2s; }
.snowflake:nth-child(22) { left: 12%; animation-duration: 10s; animation-delay: 0.5s; }
.snowflake:nth-child(23) { left: 38%; animation-duration: 9s; animation-delay: 1s; }
.snowflake:nth-child(24) { left: 62%; animation-duration: 13s; animation-delay: 2.5s; }
.snowflake:nth-child(25) { left: 88%; animation-duration: 7s; animation-delay: 0s; }

/* Snowfall animation with gentle swaying */
@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(30px);
        opacity: 0;
    }
}

/* Mobile optimization - smaller/lighter snowflakes for performance */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.5em;
        opacity: 0.5;
    }
    .snowflake.small { font-size: 0.4em; opacity: 0.4; }
    .snowflake.medium { font-size: 0.5em; opacity: 0.5; }
    .snowflake.large { font-size: 0.6em; opacity: 0.6; }
}
