/* ==========================================================================
   BAM PORTFOLIO - KEYFRAMES & MICRO-ANIMATIONS
   ========================================================================== */

/* Shimmer Light Effect across cards */
@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 80%
  );
  transform: rotate(45deg);
  animation: shimmer 6s infinite ease-in-out;
  pointer-events: none;
}

/* Floating Elements */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float-subtle 4s ease-in-out infinite;
}

/* Glowing Neon Pulse */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3), inset 0 0 10px rgba(99, 102, 241, 0.1);
  }
  50% {
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.6), inset 0 0 20px rgba(236, 72, 153, 0.3);
  }
}

.animate-glow {
  animation: glow-pulse 3s infinite ease-in-out;
}

/* Text Gradient Flow */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient-text {
  background-size: 200% auto;
  animation: gradient-flow 4s linear infinite;
}

/* Slide in from Bottom Fade */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scale pop for interactive click */
.btn-press {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Photo Booth Flash */
@keyframes camera-flash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

.flash-active {
  animation: camera-flash 0.35s ease-out forwards;
}

/* Pulse Ring for Orbit Nodes */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

.pulse-ring-active {
  animation: pulse-ring 2.5s infinite;
}
