/* ==========================================
   GLOBAL SNOWFALL EFFECT
   ========================================== */
.snowfall-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  font-size: clamp(10px, 2vw, 20px);
  animation: fall linear infinite;
  opacity: 0.8;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) {
  left: 5%;
  animation-duration: 8s;
  animation-delay: 0s;
  font-size: 14px;
}

.snowflake:nth-child(2) {
  left: 10%;
  animation-duration: 10s;
  animation-delay: 1s;
  font-size: 18px;
}

.snowflake:nth-child(3) {
  left: 15%;
  animation-duration: 7s;
  animation-delay: 2s;
  font-size: 12px;
}

.snowflake:nth-child(4) {
  left: 20%;
  animation-duration: 9s;
  animation-delay: 0.5s;
  font-size: 16px;
}

.snowflake:nth-child(5) {
  left: 25%;
  animation-duration: 11s;
  animation-delay: 1.5s;
  font-size: 15px;
}

.snowflake:nth-child(6) {
  left: 30%;
  animation-duration: 6s;
  animation-delay: 2.5s;
  font-size: 13px;
}

.snowflake:nth-child(7) {
  left: 35%;
  animation-duration: 8.5s;
  animation-delay: 0.2s;
  font-size: 17px;
}

.snowflake:nth-child(8) {
  left: 40%;
  animation-duration: 9.5s;
  animation-delay: 1.2s;
  font-size: 14px;
}

.snowflake:nth-child(9) {
  left: 45%;
  animation-duration: 7.5s;
  animation-delay: 2.8s;
  font-size: 11px;
}

.snowflake:nth-child(10) {
  left: 50%;
  animation-duration: 10.5s;
  animation-delay: 0.8s;
  font-size: 19px;
}

.snowflake:nth-child(11) {
  left: 55%;
  animation-duration: 8.2s;
  animation-delay: 1.8s;
  font-size: 13px;
}

.snowflake:nth-child(12) {
  left: 60%;
  animation-duration: 6.5s;
  animation-delay: 0.3s;
  font-size: 16px;
}

.snowflake:nth-child(13) {
  left: 65%;
  animation-duration: 9.8s;
  animation-delay: 2.2s;
  font-size: 12px;
}

.snowflake:nth-child(14) {
  left: 70%;
  animation-duration: 7.8s;
  animation-delay: 1.4s;
  font-size: 15px;
}

.snowflake:nth-child(15) {
  left: 75%;
  animation-duration: 11.2s;
  animation-delay: 0.6s;
  font-size: 18px;
}

.snowflake:nth-child(16) {
  left: 80%;
  animation-duration: 8.8s;
  animation-delay: 2.6s;
  font-size: 14px;
}

.snowflake:nth-child(17) {
  left: 85%;
  animation-duration: 6.8s;
  animation-delay: 0.9s;
  font-size: 11px;
}

.snowflake:nth-child(18) {
  left: 90%;
  animation-duration: 10.2s;
  animation-delay: 1.7s;
  font-size: 17px;
}

.snowflake:nth-child(19) {
  left: 95%;
  animation-duration: 7.2s;
  animation-delay: 2.9s;
  font-size: 13px;
}

.snowflake:nth-child(20) {
  left: 92%;
  animation-duration: 9.2s;
  animation-delay: 0.4s;
  font-size: 16px;
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .snowflake:nth-child(n+11) {
    display: none;
  }
  
  .snowflake {
    font-size: clamp(8px, 2vw, 14px);
  }
}