/* ============================================
   AKASH UNIVERSE — Animations
   ============================================ */

/* — Keyframes — */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0,229,255,0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 20px rgba(0,229,255,0.6); }
}

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

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 2px); }
  40% { clip-path: inset(40% 0 20% 0); transform: translate(2px, -1px); }
  60% { clip-path: inset(60% 0 10% 0); transform: translate(-1px, 1px); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(1px, -2px); }
}

@keyframes border-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes typing-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* — Utility Animation Classes — */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-rotate {
  animation: rotate-slow 20s linear infinite;
}

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* — Stagger Delays — */
[data-stagger] > *:nth-child(1) { --stagger-delay: 0s; }
[data-stagger] > *:nth-child(2) { --stagger-delay: 0.05s; }
[data-stagger] > *:nth-child(3) { --stagger-delay: 0.1s; }
[data-stagger] > *:nth-child(4) { --stagger-delay: 0.15s; }
[data-stagger] > *:nth-child(5) { --stagger-delay: 0.2s; }
[data-stagger] > *:nth-child(6) { --stagger-delay: 0.25s; }
[data-stagger] > *:nth-child(7) { --stagger-delay: 0.3s; }
[data-stagger] > *:nth-child(8) { --stagger-delay: 0.35s; }

/* — Parallax Layers — */
.parallax-layer {
  will-change: transform;
}

/* — Reduced Motion — */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-rotate,
  .animate-pulse,
  .animate-shimmer {
    animation: none;
  }
  
  .parallax-layer {
    transform: none !important;
  }

  .hero__name .char {
    opacity: 1;
    transform: none;
  }

  .hero__greeting,
  .hero__title,
  .hero__cta,
  .hero__scroll-indicator {
    opacity: 1;
    transform: none;
  }

  [data-animate] {
    opacity: 1;
  }
}
