/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Header ── */
#site-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#site-header.scrolled {
  background: rgba(253, 252, 250, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.06);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #14b8a6;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Hero ── */
.hero-bg { will-change: transform; }
.hero-overlay {
  background-image: linear-gradient(135deg, rgba(2, 10, 18, 0.88) 0%, rgba(10, 37, 64, 0.72) 50%, rgba(10, 37, 64, 0.4) 100%);
}
.hero-badge {
  animation: fadeInDown 0.8s ease both;
}
.hero-bg img {
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  animation: fadeInUp 1s ease 1.2s both;
  opacity: 0.6;
}

/* ── Reveal Animations ── */
.reveal-card, .reveal-text {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-card.visible, .reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-card:nth-child(1) { transition-delay: 0.05s; }
.reveal-card:nth-child(2) { transition-delay: 0.12s; }
.reveal-card:nth-child(3) { transition-delay: 0.19s; }
.reveal-card:nth-child(4) { transition-delay: 0.26s; }

/* ── Keyframes ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hover card lift ── */
.reveal-card {
  will-change: transform, box-shadow;
}

/* ── Smooth focus ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Selection ── */
::selection {
  background: rgba(20, 184, 166, 0.2);
  color: #0a2540;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-badge { font-size: 0.7rem; }
}
