/**
 * MoonaTech Modern Animations & Micro-Interactions
 * Ultra-smooth 60fps GPU-accelerated CSS animations
 */

:root {
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseIndicator {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3), 0 0 30px rgba(0, 245, 160, 0.15);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6), 0 0 45px rgba(0, 245, 160, 0.3);
  }
}

@keyframes marqueeInfinite {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Hero Section Above-The-Fold Entrance */
.hero-content {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-telemetry-stage {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

/* Scroll Reveal States (Graceful Degradation - Content is visible by default) */
body.theme-js-ready [data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

body.theme-js-ready [data-animate="fade-left"] {
  transform: translateX(-24px);
}

body.theme-js-ready [data-animate="fade-right"] {
  transform: translateX(24px);
}

body.theme-js-ready [data-animate="fade-in"] {
  transform: translateY(20px);
}

body.theme-js-ready [data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered delay helper classes */
.delay-100 { transition-delay: 80ms !important; }
.delay-200 { transition-delay: 160ms !important; }
.delay-300 { transition-delay: 240ms !important; }
.delay-400 { transition-delay: 320ms !important; }

/* Micro-Interactions on Cards */
.service-card, .client-bento-card, .stat-box, .about-feature-box {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

/* Hamburger Morph */
.hamburger-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
