/* ========================================
   SKILAPLATA - Animations
   ======================================== */

/* --- Global Snowfall (JS particles) --- */
.snowfall-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: snowflake-fall linear infinite, snowflake-sway ease-in-out infinite;
}

@keyframes snowflake-fall {
  0% {
    top: -10px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100vh;
    opacity: 0;
  }
}

@keyframes snowflake-sway {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(15px);
  }
  75% {
    transform: translateX(-15px);
  }
}

/* --- Bounce (scroll chevron) --- */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grids */
.activities-grid .reveal:nth-child(1) { transition-delay: 0s; }
.activities-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.activities-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.activities-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.pricing-grid .reveal:nth-child(1) { transition-delay: 0s; }
.pricing-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

/* --- Subtle pulse for stats --- */
@keyframes pulse-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
  }
}

.stat-number {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  .hero-snowfall::before,
  .hero-snowfall::after {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll {
    animation: none;
  }

  .stat-number {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
