/* ==========================================================================
   LE BON MANGEUR - ANIMATIONS & DYNAMIC EFFECTS
   ========================================================================== */

/* Keyframe Animations */
@keyframes pulseNew {
  0%, 100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 87, 34, 0.9);
    transform: scale(1.05);
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

@keyframes floatCard {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes crispyFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

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

/* Utilities for Animations */
.animate-crispy {
  animation: crispyFloat 5s ease-in-out infinite;
}

.animate-glow {
  box-shadow: var(--shadow-glow);
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

/* Layer Exploded Specific Transitions */
.layer-item {
  transform-origin: center center;
}

.layer-item:nth-child(1) { transition-delay: 0.05s; }
.layer-item:nth-child(2) { transition-delay: 0.1s; }
.layer-item:nth-child(3) { transition-delay: 0.15s; }
.layer-item:nth-child(4) { transition-delay: 0.2s; }
.layer-item:nth-child(5) { transition-delay: 0.25s; }
.layer-item:nth-child(6) { transition-delay: 0.3s; }
.layer-item:nth-child(7) { transition-delay: 0.35s; }

/* Interactive 3D tilt hover classes */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

/* Crispy particle spark effect */
.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  pointer-events: none;
  animation: sparkFade 1s ease-out forwards;
}

@keyframes sparkFade {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx, 20px), var(--ty, -30px)) scale(0);
    opacity: 0;
  }
}
