/* ==========================================================================
   STARK INDUSTRIES BD — ANIMATIONS & KEYFRAMES
   Iron Man / J.A.R.V.I.S. Visual FX
   ========================================================================== */

@keyframes pulse-core {
  0% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), inset 0 0 15px rgba(0, 229, 255, 0.3);
    border-color: rgba(0, 229, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 45px rgba(0, 229, 255, 0.9), inset 0 0 30px rgba(0, 229, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.95);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), inset 0 0 15px rgba(0, 229, 255, 0.3);
    border-color: rgba(0, 229, 255, 0.6);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

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

@keyframes hud-scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(1000%);
  }
}

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

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

/* Arc Reactor Spin Simulation (for WebGL Fallback) */
.spin-slow {
  animation: radar-spin 36s linear infinite;
}

.spin-slow-reverse {
  animation: radar-spin 48s linear infinite reverse;
}

.spin-medium {
  animation: radar-spin 18s linear infinite;
}

/* Subtle Shimmer for Metallic Highlights */
.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    transparent 45%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 55%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: shimmer-slide 8s infinite ease-in-out;
}

@keyframes shimmer-slide {
  0% {
    transform: translate(-100%, -100%) rotate(25deg);
  }
  20%, 100% {
    transform: translate(100%, 100%) rotate(25deg);
  }
}

/* Section Fade In Stagger Classes for GSAP or CSS */
.reveal-item {
  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);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility Reduced Motion */
@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;
  }
  .radar-sweep, .loader-arc-core::before, .spin-slow, .spin-slow-reverse {
    animation: none !important;
  }
}
