@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatDiamond {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes neonDrift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: fadeUp 620ms ease forwards;
}

.hero-content > * {
  animation: fadeUp 760ms ease both;
}

.hero-content > *:nth-child(2) {
  animation-delay: 80ms;
}

.hero-content > *:nth-child(3) {
  animation-delay: 160ms;
}

.hero-content > *:nth-child(4) {
  animation-delay: 240ms;
}

.hero-content > *:nth-child(5) {
  animation-delay: 320ms;
}

.diamond-frame img,
.goal-diamond,
.page-hero-content::after {
  animation: floatDiamond 4.4s ease-in-out infinite;
}

.text-gradient {
  background-size: 220% 220%;
  animation: neonDrift 6s ease infinite;
}

.project-card,
.news-card,
.social-card,
.donation-card,
.gallery-card,
.stat-card,
.info-card {
  will-change: transform;
}

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

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