/* ============================================================
   Moventraxio — mx-animations.css
   Animation keyframes and special effects
   ============================================================ */

/* ── Floating Particles ── */
.mx-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mx-particle {
  position: absolute;
  border-radius: 50%;
  animation: mx-float linear infinite;
  opacity: 0;
}

@keyframes mx-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% { opacity: 0.4; }
  90% { opacity: 0.2; }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

/* ── Glow Orbs ── */
.mx-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.mx-glow-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 229, 255, 0.06);
  top: -200px;
  right: -100px;
  animation: mx-orb-drift 15s ease-in-out infinite alternate;
}

.mx-glow-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.07);
  bottom: -100px;
  left: -150px;
  animation: mx-orb-drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes mx-orb-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* ── Shimmer ── */
.mx-shimmer {
  position: relative;
  overflow: hidden;
}

.mx-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: skewX(-20deg);
  animation: mx-shimmer-slide 4s ease-in-out infinite;
}

@keyframes mx-shimmer-slide {
  0% { left: -60%; }
  100% { left: 120%; }
}

/* ── Scan Line ── */
.mx-scan-line {
  position: relative;
  overflow: hidden;
}

.mx-scan-line::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mx-accent-cyan), transparent);
  opacity: 0.3;
  animation: mx-scan 6s linear infinite;
}

@keyframes mx-scan {
  0% { top: -5%; }
  100% { top: 105%; }
}

/* ── Counter Spin ── */
@keyframes mx-count-up {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Hero Typing Cursor ── */
.mx-typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--mx-accent-cyan);
  margin-left: 2px;
  vertical-align: middle;
  animation: mx-blink 1.1s step-end infinite;
}

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

/* ── Gradient Shift ── */
@keyframes mx-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.mx-gradient-animated {
  background: linear-gradient(270deg, var(--mx-accent-cyan), var(--mx-accent-purple), #0090ff);
  background-size: 300% 300%;
  animation: mx-gradient-shift 6s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Bounce In ── */
@keyframes mx-bounce-in {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

.mx-bounce-in {
  animation: mx-bounce-in 0.6s ease forwards;
}

/* ── Stagger Children ── */
.mx-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.mx-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.mx-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.mx-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.mx-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.mx-stagger > *:nth-child(6) { transition-delay: 0.3s; }

/* ── Rotate ── */
@keyframes mx-rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Slide In ── */
@keyframes mx-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mx-slide-up {
  animation: mx-slide-up 0.5s ease forwards;
}

/* ── Progress Bar Pulse ── */
@keyframes mx-bar-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 229, 255, 0.4); }
  50% { box-shadow: 0 0 16px rgba(0, 229, 255, 0.7); }
}

.mx-progress-bar-fill {
  animation: mx-bar-pulse 2.5s ease-in-out infinite;
}

/* ── SVG Hex Background ── */
.mx-hex-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpolygon stroke='rgba(0,229,255,0.04)' stroke-width='1' points='30 1 58 16 58 46 30 61 2 46 2 16'/%3E%3Cpolygon stroke='rgba(0,229,255,0.04)' stroke-width='1' points='30 43 58 58 58 88 30 103 2 88 2 58'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 104px;
}

/* ── Fade Overlay ── */
.mx-fade-bottom {
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* ── Ring Pulse ── */
@keyframes mx-ring-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.mx-ring-pulse {
  animation: mx-ring-pulse 2.5s ease-out infinite;
}

/* ── Neon flicker ── */
@keyframes mx-neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 8px var(--mx-accent-cyan), 0 0 20px var(--mx-accent-cyan);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}
