/* ================================================
   QTV — Custom styles (anti-AI-slop edition)
   Complements Tailwind CDN
   ================================================ */

/* ---------- Reveal Animation (staggered) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---------- Navbar scroll state ---------- */
#navbar.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(12, 17, 22, 0.04),
              0 4px 24px rgba(12, 17, 22, 0.04);
}

/* ---------- Nav link hover underline ---------- */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- Hamburger animation ---------- */
#hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#hamburger.active span:nth-child(2) {
  opacity: 0;
}

#hamburger.active span:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(4px, -4px);
}

#mobileMenu.open {
  display: flex;
}

/* ---------- Scroll line animation ---------- */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.15); }
}

/* ---------- Selection color ---------- */
::selection {
  background: rgba(27, 94, 107, 0.15);
  color: inherit;
}
