@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 18px 35px rgba(139, 92, 246, 0.26);
  }

  50% {
    box-shadow: 0 22px 42px rgba(255, 120, 175, 0.32);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.stagger-children > * {
  opacity: 0;
  transform: translateY(22px);
}

.stagger-children.revealed > * {
  animation: riseIn 0.65s ease forwards;
}

.stagger-children.revealed > *:nth-child(2) {
  animation-delay: 0.08s;
}

.stagger-children.revealed > *:nth-child(3) {
  animation-delay: 0.16s;
}

.stagger-children.revealed > *:nth-child(4) {
  animation-delay: 0.24s;
}

.stagger-children.revealed > *:nth-child(5) {
  animation-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
