/* Neo Gen Title — Animation Utilities */

.glow-hover {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-hover::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.4s ease;
}

.glow-hover:hover::after { opacity: 0.4; }

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.text-reveal-wrap {
  overflow: hidden;
  display: inline-block;
}

.text-reveal-inner {
  display: inline-block;
  transform: translateY(110%);
}

.split-line {
  overflow: hidden;
  display: block;
}

.split-line-inner {
  display: block;
  transform: translateY(100%);
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
}

.parallax-layer {
  will-change: transform;
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

.floating-delay-1 { animation-delay: -1s; }
.floating-delay-2 { animation-delay: -2s; }
.floating-delay-3 { animation-delay: -3s; }

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.rotate-slow {
  animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 106, 0, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 106, 0, 0.6); }
}

.line-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.line-draw.animated {
  animation: lineDraw 2s ease forwards;
}

@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.magnetic-wrap {
  transition: transform 0.2s ease;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 50%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary);
}

.network-line {
  stroke: rgba(255, 106, 0, 0.3);
  stroke-width: 1;
  fill: none;
}

.state-flash {
  animation: stateFlash 0.6s ease;
}

@keyframes stateFlash {
  0%, 100% { fill: rgba(255, 106, 0, 0.55); stroke: #C24100; }
  50% { fill: var(--primary); stroke: var(--navy); stroke-width: 2; }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

.counter-animate {
  display: inline-block;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.expansion-network {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.testimonial-slide-enter {
  animation: slideEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideEnter {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-ripple:active::after { opacity: 1; }

.icon-spin-hover:hover svg {
  animation: iconSpin 0.6s ease;
}

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.map-path-animate {
  transition: fill 0.4s ease, filter 0.4s ease;
}

.licensed-pulse {
  animation: licensedPulse 3s ease-in-out infinite;
}

@keyframes licensedPulse {
  0%, 100% { fill: rgba(255, 106, 0, 0.45); stroke: #C24100; }
  50% { fill: rgba(255, 106, 0, 0.7); stroke: #9A3412; stroke-width: 1.75; }
}

.timeline-step .timeline-dot svg {
  width: 32px;
  height: 32px;
}

.process-icon-bounce {
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
