/* ============================================================
   ANIMATIONS — Florida Viking Fest
   GSAP-controlled reveal classes + CSS keyframes
   ============================================================ */

/* --------------------------------------------------
   REVEAL STATES — currently disabled for performance
   All elements visible immediately; no scroll delay.
   -------------------------------------------------- */

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.stagger-children > * {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------
   COUNTER ANIMATION
   -------------------------------------------------- */

.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------
   GOLD LINE DRAW
   -------------------------------------------------- */

.line-draw {
  width: 0;
  transition: width 0.8s var(--ease-out-expo);
}

.line-draw.is-visible {
  width: 60px;
}

/* --------------------------------------------------
   NAV TRANSITION
   -------------------------------------------------- */

.nav {
  will-change: background-color, padding;
}

/* --------------------------------------------------
   CARD HOVER STATES
   -------------------------------------------------- */

.card-hover {
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base),
              border-color var(--duration-base);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* --------------------------------------------------
   LINK UNDERLINE ANIMATION
   -------------------------------------------------- */

.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-base) var(--ease-out-expo);
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------
   PAGE FADE IN
   -------------------------------------------------- */

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

.page-fade-in {
  animation: pageFadeIn 0.6s var(--ease-out-expo) forwards;
}

/* --------------------------------------------------
   PULSE GLOW (for CTA button)
   -------------------------------------------------- */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(139, 26, 26, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(139, 26, 26, 0.6),
                0 0 60px rgba(212, 122, 31, 0.2);
  }
}

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

/* --------------------------------------------------
   FLOAT (for scroll indicator, decorative elements)
   -------------------------------------------------- */

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

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

/* --------------------------------------------------
   SHIMMER (for loading states or gold accents)
   -------------------------------------------------- */

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

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--color-gold-dim) 0%,
    var(--color-gold-light) 40%,
    var(--color-gold-dim) 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* --------------------------------------------------
   RUNE FLICKER (decorative background text)
   -------------------------------------------------- */

@keyframes flicker {
  0%, 95%, 100% { opacity: 0.04; }
  97%            { opacity: 0.08; }
}

.rune-bg {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: var(--weight-bold);
  color: var(--color-gold);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
  letter-spacing: var(--tracking-widest);
  animation: flicker 8s ease-in-out infinite;
}

/* --------------------------------------------------
   MOBILE: disable heavy animations
   -------------------------------------------------- */

@media (max-width: 768px) {
  .rune-bg {
    display: none;
  }
}
