/* Fade In Up */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-cosmic), transform var(--transition-cosmic);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .fade-in:nth-child(7) { transition-delay: 0.6s; }

/* Fade In Scale */
.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-cosmic), transform var(--transition-cosmic);
}

.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Slide In Left */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-cosmic), transform var(--transition-cosmic);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide In Right */
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-cosmic), transform var(--transition-cosmic);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Glow Pulse */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(125,211,252,0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(125,211,252,0.2), 0 0 60px rgba(167,139,250,0.1);
  }
}

.glow-pulse {
  animation: glow-pulse 4s ease-in-out infinite;
}

/* Gradient Shift */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-shift {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Counter Animation */
.counter-value {
  display: inline-block;
  transition: all 0.5s ease;
}

/* Particle field */
@keyframes particle-drift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: particle-drift var(--duration, 15s) var(--delay, 0s) linear infinite;
  opacity: 0;
}

/* Nebula Gradient Background Animation */
@keyframes nebula-flow {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -15px) rotate(2deg); }
  66% { transform: translate(-10px, 10px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.nebula-bg {
  animation: nebula-flow 30s ease-in-out infinite;
}

/* Shimmer skeleton */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}