/* ============================================================
   MakMedia — Extra Animations
   ============================================================ */

/* Gradient text shimmer */
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.text-shimmer {
  background: linear-gradient(90deg, #6C63FF, #00E5FF, #FF4D6D, #6C63FF);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

/* Card glow on hover */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(108,99,255,0.2); }
  50%      { box-shadow: 0 0 40px rgba(108,99,255,0.4); }
}

/* Floating animation variants */
.float-slow { animation: float 6s ease-in-out infinite; }
.float-medium { animation: float 4s ease-in-out infinite; }
.float-fast { animation: float 2.5s ease-in-out infinite; }
.float-delay-1 { animation-delay: -1s; }
.float-delay-2 { animation-delay: -2s; }
.float-delay-3 { animation-delay: -3s; }

/* Rotate animation */
.rotate-slow { animation: spin 30s linear infinite; }
.rotate-medium { animation: spin 15s linear infinite; }

/* Tilt on hover */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform var(--transition-normal);
}

/* Magnetic button */
.magnetic-btn {
  transition: transform 0.3s var(--ease-out);
}

/* Particle effect placeholder */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* Text scramble */
.text-scramble {
  display: inline-block;
  min-width: 1ch;
}

/* Morphing blob */
@keyframes morph {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50%  { border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%; }
  75%  { border-radius: 60% 30% 60% 40% / 70% 50% 40% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
.morph-blob {
  animation: morph 8s ease-in-out infinite;
}

/* Underline grow */
.underline-grow {
  position: relative;
  display: inline-block;
}
.underline-grow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}
.underline-grow:hover::after {
  width: 100%;
}

/* Slide-in from sides */
@keyframes slideInLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideInUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Count-up animation for numbers (handled via JS) */
.counter[data-target] {
  font-variant-numeric: tabular-nums;
}

/* Stagger children on view */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out);
}
.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(10) { transition-delay: 0.50s; opacity: 1; transform: translateY(0); }

/* Glow border */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(108, 99, 255, 0.3); }
  50%      { border-color: rgba(108, 99, 255, 0.8); }
}
.glow-border {
  animation: borderGlow 3s ease-in-out infinite;
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--clr-primary);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
