/* ============================================
   DEADLOCK® — Animations & GSAP Helpers
   ============================================ */

/* Reveal classes (initial state set by GSAP) */
.reveal-heading,
.reveal-stagger,
.reveal-left,
.reveal-right { will-change: transform, opacity; }

/* Page transition */
main { animation: pageFade 0.5s ease forwards; }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gold accent underline on section titles */
.gold-accent-title { position: relative; display: inline-block; }
.gold-accent-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  margin-top: 12px;
}

/* Hover shimmer on gold buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 150%; }

/* Timeline line draw animation */
@keyframes drawLine {
  from { stroke-dashoffset: 600; }
  to   { stroke-dashoffset: 0; }
}
.process-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.process-line.animated { animation: drawLine 1.2s ease forwards; }

/* Floating subtle glow for hero */
@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(200,150,62,0.08); }
  50%       { box-shadow: 0 0 80px rgba(200,150,62,0.15); }
}

/* Smooth underline for nav active */
.nav-link.active::after { width: calc(100% - 20px); }

/* Image parallax wrapper */
.parallax-section { overflow: hidden; }

/* Stagger children preset */
.stagger-children > * { opacity: 0; transform: translateY(24px); }
.stagger-children.animated > * { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger-children.animated > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.animated > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.animated > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.animated > *:nth-child(4) { transition-delay: 0.3s; }

/* Loading state */
.is-loading { opacity: 0; }
