/* Efeito de Neve - Flocos caindo */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50; /* Abaixo do header (z-index 98-1000) mas acima do conteúdo */
    overflow: hidden;
    will-change: transform;
}

.snowflake {
    position: absolute;
    top: -50px; /* Começa mais acima para não travar no header */
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear forwards; /* forwards para não repetir e travar */
    user-select: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes fall {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    to {
        transform: translateY(calc(100vh + 50px)) rotate(360deg);
        opacity: 0.9;
    }
}

/* Diferentes tamanhos e velocidades para os flocos */
.snowflake:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; font-size: 0.8em; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; font-size: 1em; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 14s; animation-delay: 2s; font-size: 0.9em; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 0.5s; font-size: 1.1em; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 1.5s; font-size: 0.85em; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 15s; animation-delay: 2.5s; font-size: 1.2em; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 10s; animation-delay: 0.3s; font-size: 0.95em; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 1.8s; font-size: 1.05em; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 14s; animation-delay: 0.7s; font-size: 0.9em; }
.snowflake:nth-child(10) { left: 15%; animation-duration: 11s; animation-delay: 2.2s; font-size: 1.15em; }

/* Flocos adicionais com posições aleatórias */
.snowflake:nth-child(n+11) {
    left: calc(var(--snow-left) * 1%);
    animation-duration: calc(10s + var(--snow-duration) * 1s);
    animation-delay: calc(var(--snow-delay) * 1s);
    font-size: calc(0.8em + var(--snow-size) * 0.4em);
}

/* Opacidade variável para efeito mais realista */
.snowflake {
    opacity: calc(0.7 + var(--snow-opacity) * 0.3);
}

