@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
  }
  50% {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  }
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  90% {
    opacity: 0.08;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slow) ease forwards;
}

.animate-slide-up {
  animation: slideUp var(--transition-slow) ease forwards;
}

.animate-scale-in {
  animation: scaleIn var(--transition-slow) ease forwards;
}

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

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.25);
  pointer-events: none;
  animation: rippleAnim 0.6s ease-out forwards;
}

.bg-bubbles {
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  animation: bubbleFloat linear infinite;
}

.hero > * {
  animation: slideUp var(--transition-slow) ease both;
}

.hero > *:nth-child(1) { animation-delay: 0.1s; }
.hero > *:nth-child(2) { animation-delay: 0.2s; }
.hero > *:nth-child(3) { animation-delay: 0.25s; }
.hero > *:nth-child(4) { animation-delay: 0.3s; }
.hero > *:nth-child(5) { animation-delay: 0.4s; }

.featured-card {
  animation: slideUp var(--transition-slow) ease 0.5s both;
}

.links .link-card {
  animation: slideUp var(--transition-slow) ease both;
}

.links .link-card:nth-child(1) { animation-delay: 0.15s; }
.links .link-card:nth-child(2) { animation-delay: 0.2s; }
.links .link-card:nth-child(3) { animation-delay: 0.25s; }
.links .link-card:nth-child(4) { animation-delay: 0.3s; }
.links .link-card:nth-child(5) { animation-delay: 0.35s; }
.links .link-card:nth-child(6) { animation-delay: 0.4s; }

.footer {
  animation: fadeIn var(--transition-slow) ease both;
}

@media (prefers-reduced-motion: reduce) {
  .hero > *,
  .featured-card,
  .links .link-card,
  .footer {
    opacity: 1;
    animation: none;
  }

  .bubble,
  .animate-float,
  .animate-glow {
    animation: none;
  }
}
