/* ============================================
   LA LETTERS - ANIMATIONS
   ============================================ */

/* === FADE IN ON SCROLL === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* === NEON FLICKER === */
@keyframes neon-flicker {
  0%, 18%, 22%, 26%, 62%, 66%, 100% {
    opacity: 1;
    text-shadow:
      0 0 7px #fff,
      0 0 20px #fff,
      0 0 42px #9B1C1C,
      0 0 82px rgba(155,28,28,0.5);
  }
  20%, 24%, 64% {
    opacity: 0.82;
    text-shadow:
      0 0 4px rgba(255,255,255,0.5),
      0 0 12px rgba(155,28,28,0.3);
  }
}
@keyframes neon-flicker-subtle {
  0%, 35%, 39%, 100% {
    opacity: 1;
    text-shadow:
      0 0 7px #ffb3b3,
      0 0 20px #cc2222,
      0 0 42px rgba(155,28,28,0.6);
  }
  37% {
    opacity: 0.7;
    text-shadow: 0 0 4px rgba(255,179,179,0.3);
  }
}
.flicker { animation: neon-flicker 10s ease-in-out infinite; }
.flicker-subtle { animation: neon-flicker-subtle 14s ease-in-out infinite; }

/* === NEON BORDER TRACE === */
@keyframes border-trace {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}
.neon-border-trace {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.neon-border-trace::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(90deg, transparent 0%, #9B1C1C 25%, #ff4444 50%, #9B1C1C 75%, transparent 100%);
  background-size: 300% 100%;
  animation: border-trace 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.neon-border-trace:hover::before {
  opacity: 1;
}

/* === LIGHT SWEEP ON BUTTONS === */
@keyframes light-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* === GLOW PULSE === */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(155,28,28,0.2); }
  50% { box-shadow: 0 0 40px rgba(155,28,28,0.4), 0 0 80px rgba(155,28,28,0.15); }
}
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

/* === SPARK PARTICLES === */
@keyframes spark-float {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(var(--tx, 50px), var(--ty, -80px)) scale(0); opacity: 0; }
}
.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 6px #ff4444, 0 0 12px rgba(155,28,28,0.4);
  pointer-events: none;
}

/* === PAGE TRANSITION === */
/* === LOADING SCREEN === */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.4s ease;
}
.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loading-screen img {
  width: 160px;
  height: auto;
  animation: loading-pulse 1s ease-in-out infinite;
}
.loading-bar-track {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  width: 0%;
  background: #9B1C1C;
  box-shadow: 0 0 8px rgba(155,28,28,0.6);
  border-radius: 2px;
  animation: loading-fill 0.8s ease-out forwards;
}
@keyframes loading-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes loading-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* === CHASE LIGHTS (Reviews) === */
@keyframes chase-dot {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* === COUNTER SCRAMBLE === */
@keyframes counter-glow {
  0%, 100% { text-shadow: 0 0 10px rgba(155,28,28,0.3); }
  50% { text-shadow: 0 0 25px rgba(155,28,28,0.6), 0 0 50px rgba(155,28,28,0.2); }
}

/* === MAGNETIC BUTTON === */
.magnetic-btn {
  transition: transform 0.2s ease-out;
}

/* === LOADING STATE === */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === REVEAL LINE === */
@keyframes reveal-line {
  0% { width: 0; }
  100% { width: 100%; }
}
.reveal-line {
  height: 1px;
  background: #9B1C1C;
  box-shadow: 0 0 8px rgba(155,28,28,0.4);
}

/* === FLOAT ANIMATION === */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* === ICON POWER-ON === */
@keyframes icon-power-on {
  0% { opacity: 0.2; color: rgba(155,28,28,0.3); transform: scale(0.8); }
  60% { opacity: 1; color: #ff4444; transform: scale(1.1); }
  100% { opacity: 1; color: #9B1C1C; transform: scale(1); }
}

/* === TIMELINE ENERGY === */
@keyframes energy-flow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.energy-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #9B1C1C, #ff4444, #9B1C1C, transparent);
  background-size: 200% 100%;
}
.energy-line.active {
  animation: energy-flow 2s linear infinite;
}
