/* ---- Base & Utilities ---- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Reveal Animations ---- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* stagger delays set inline via style attribute */

/* ---- Navbar ---- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(250, 251, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(10, 35, 66, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #A8E6CF;
  border-radius: 1px;
  transition: width 0.3s ease;
}

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

/* ---- Mobile Menu ---- */
.mobile-link {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(10, 35, 66, 0.06);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ---- Form ---- */
input:focus,
textarea:focus {
  outline: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FAFBF9;
}

::-webkit-scrollbar-thumb {
  background: #A8E6CF;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7BCDB0;
}

/* ---- Selection ---- */
::selection {
  background: #A8E6CF;
  color: #0A2342;
}
