/* ==========================================================================
   VHUWON MATHERS — HIGH-PERFORMANCE ANIMATION SYSTEM
   Domain: gautambhuwan.com.np
   Optimized for 60/120 FPS, GPU Memory Conservation, & Reduced Motion
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.2);
  }
  50% {
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
  }
}

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

/* Fast & Lightweight Reveal Utility Classes (No global will-change layer bloating) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.04s; }
.reveal-delay-2 { transition-delay: 0.08s; }
.reveal-delay-3 { transition-delay: 0.12s; }
.reveal-delay-4 { transition-delay: 0.16s; }

/* Subtle Hero Image Aura */
.hero-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(6, 182, 212, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite;
}

/* Mobile GPU Performance Optimization */
@media (max-width: 768px) {
  .hero-glow-aura {
    animation: none;
    filter: blur(20px);
  }
  
  .reveal {
    transform: translateY(8px);
    transition-duration: 0.2s;
  }
}

/* Reduced Motion Compliance */
@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 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-glow-aura {
    animation: none !important;
  }
}
