/* =========================================================
   Custom styles that go beyond Tailwind utility classes.
   EDITABLE: tweak animation timing/easing here if desired.
========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  scroll-padding-top: 5rem;
}

/* Scroll-reveal animation (toggled by script.js via IntersectionObserver) */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky header shadow once page is scrolled */
header.scrolled {
  box-shadow: 0 4px 20px -8px rgba(15, 63, 107, 0.15);
}

/* Slow pulse for "in progress" timeline dot */
@keyframes pulse-slow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 166, 246, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(56, 166, 246, 0); }
}
.animate-pulse-slow {
  animation: pulse-slow 2.5s ease-in-out infinite;
}

/* Active nav link underline */
.nav-link {
  position: relative;
}
.nav-link.active {
  color: #0a6cc1;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #128ae3;
  border-radius: 2px;
}
