/* ============================================
   VULCANO GRILL — Animations & Keyframes
   ============================================ */

/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   BRAND — FIRE & GLOW
   ============================================ */

@keyframes fireGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(242, 108, 42, 0.3),
                0 0 60px rgba(242, 108, 42, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(242, 108, 42, 0.5),
                0 0 100px rgba(224, 64, 160, 0.2);
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(242, 108, 42, 0.4);
  }
  50% {
    text-shadow: 0 0 40px rgba(242, 108, 42, 0.7),
                 0 0 80px rgba(224, 64, 160, 0.3);
  }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================
   AMBIENT — SUBTLE MOTION
   ============================================ */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

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

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

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

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* ============================================
   SCROLL — REVEAL
   ============================================ */

@keyframes revealUp {
  from {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0% 0 0 0);
    opacity: 1;
  }
}

@keyframes revealLeft {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0% 0 0);
  }
}

@keyframes drawLine {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

/* ============================================
   LOGO RING — GRADIENT SPIN
   ============================================ */

@keyframes ringRotate {
  from { --ring-angle: 0deg; }
  to   { --ring-angle: 360deg; }
}

/* ============================================
   MARQUEE
   ============================================ */

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ============================================
   PARTICLES (used in CTA button)
   ============================================ */

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.anim-fade-up {
  animation: fadeUp 0.7s var(--ease-out) both;
}

.anim-fade-in {
  animation: fadeIn 0.5s ease both;
}

.anim-scale-in {
  animation: scaleIn 0.6s var(--ease-out) both;
}

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

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

.anim-fire-glow {
  animation: fireGlow 2.5s ease-in-out infinite;
}

.anim-text-glow {
  animation: textGlow 2.5s ease-in-out infinite;
}

.anim-gradient {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.anim-spin-slow {
  animation: spinSlow 20s linear infinite;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.7s; }

/* Scroll reveal (JS adds .revealed class) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   REDUCE MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
