/* ============================================================
   ODU ACTIVE — ANIMATIONS.CSS
   All keyframes, entrance animations, transitions
   Built by Nesture
   ============================================================ */

/* ── ENTRANCE ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

/* ── UTILITY ANIMATION CLASSES ───────────────────────────── */
/* Apply these + a delay via inline style or modifier class  */
.anim-fade-up    { opacity: 0; animation: fadeUp   0.75s ease forwards; }
.anim-fade-in    { opacity: 0; animation: fadeIn   0.75s ease forwards; }
.anim-fade-left  { opacity: 0; animation: fadeLeft 0.75s ease forwards; }
.anim-fade-right { opacity: 0; animation: fadeRight 0.75s ease forwards; }
.anim-scale-in   { opacity: 0; animation: scaleIn  0.75s ease forwards; }

/* Delay helpers */
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }
.anim-delay-7 { animation-delay: 0.7s; }
.anim-delay-8 { animation-delay: 0.8s; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
/* Elements start hidden, JS adds .revealed when in viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal--left {
  transform: translateX(-28px);
}
.reveal--left.revealed {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(28px);
}
.reveal--right.revealed {
  transform: translateX(0);
}

/* Stagger delay for groups of reveals */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── PARTICLE CANVAS ─────────────────────────────────────── */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── ORANGE DOT ──────────────────────────────────────────── */
.dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-orange);
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  box-shadow: 0 0 10px rgba(232,68,10,0.7), 0 0 24px rgba(232,68,10,0.3);
  transition: transform 0.15s;
}

.dot:hover { transform: scale(1.4); }

.dot.visible {
  animation: dotAppear 0.4s ease forwards,
             dotPulse  1.2s ease 0.4s infinite;
}

.dot.hiding { animation: dotDisappear 0.3s ease forwards; }
.dot.hit    { animation: dotHit 0.35s ease forwards !important; }

@keyframes dotAppear {
  0%   { opacity: 0; transform: scale(0); }
  60%  { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

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

@keyframes dotHit {
  0%   { transform: scale(1);   opacity: 1; }
  40%  { transform: scale(2);   opacity: 0.6; }
  100% { transform: scale(0);   opacity: 0; }
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(232,68,10,0.7), 0 0 24px rgba(232,68,10,0.3);
  }
  50% {
    box-shadow: 0 0 18px rgba(232,68,10,1), 0 0 40px rgba(232,68,10,0.5);
  }
}

/* ── EMBER PARTICLES ─────────────────────────────────────── */
.ember {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  animation: emberFly var(--dur) ease forwards;
}

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

/* ── HOVER GLOW ──────────────────────────────────────────── */
.hover-glow {
  transition: box-shadow var(--transition-base);
}
.hover-glow:hover {
  box-shadow: 0 0 24px var(--color-orange-glow);
}
