/* ==========================================================================
   Animations & Micro-interactions - Alphi Gabriel Portfolio
   ========================================================================== */

/* Pulse for status indicators */
@keyframes pulseAnimation {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* Terminal Cursor Blink */
@keyframes cursorBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Simmering Pot Steam Rising */
@keyframes steamRise {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0;
  }
  30% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-24px) scaleX(1.4);
    opacity: 0;
  }
}

.steam-bubble {
  position: absolute;
  top: -8px;
  width: 14px;
  height: 14px;
  background: rgba(217, 119, 6, 0.4);
  border-radius: 50%;
  animation: steamRise 2s infinite ease-out;
}

.steam-bubble:nth-child(1) { left: 30%; animation-delay: 0.2s; }
.steam-bubble:nth-child(2) { left: 50%; animation-delay: 0.8s; }
.steam-bubble:nth-child(3) { left: 70%; animation-delay: 1.4s; }

/* MTG Card Holofoil Sheen */
.mtg-card-mockup::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    rgba(255, 215, 0, 0.18),
    rgba(0, 191, 255, 0.18),
    transparent
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
}

.mtg-card-mockup:hover::after {
  left: 200%;
  transition: left 1s ease-in-out;
}

/* Floating Badges */
@keyframes floatUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.floating-elem {
  animation: floatUp 3s ease-in-out infinite;
}

/* Fade in for dynamic cards */
.fade-in-entry {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInEntry 0.4s ease-out forwards;
}

@keyframes fadeInEntry {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}