/* ── Base & Utilities ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #0a1628;
  background-color: #f0faf6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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 ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(240, 250, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* ── Mobile Menu ── */
.burger-line {
  display: block;
  transition: all 0.3s ease;
}

#mobile-toggle.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#mobile-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

#mobile-toggle.active .burger-line:nth-child(3) {
  width: 5px;
  transform: rotate(-45deg) translate(4px, -4px);
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #2d9e8a;
}

/* ── Selection ── */
::selection {
  background: #a8ebd2;
  color: #0a1628;
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid #2d9e8a;
  outline-offset: 2px;
}

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

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

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

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

/* ── Form Styles ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a1628' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── Smooth transitions for all interactive elements ── */
button, a {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
