/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   Senior UX Animation Polish
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25), 0 0 40px rgba(99, 102, 241, 0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.45), 0 0 60px rgba(99, 102, 241, 0.3);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Micro-interaction classes */
.anim-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-scale-up {
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-float {
  animation: floatGentle 5s ease-in-out infinite;
}

.anim-pulse {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Stagger animation helper for card grids */
.phone-grid > *:nth-child(1) { animation-delay: 0.05s; }
.phone-grid > *:nth-child(2) { animation-delay: 0.1s; }
.phone-grid > *:nth-child(3) { animation-delay: 0.15s; }
.phone-grid > *:nth-child(4) { animation-delay: 0.2s; }
.phone-grid > *:nth-child(5) { animation-delay: 0.25s; }
.phone-grid > *:nth-child(6) { animation-delay: 0.3s; }
.phone-grid > *:nth-child(7) { animation-delay: 0.35s; }
.phone-grid > *:nth-child(8) { animation-delay: 0.4s; }
