/* ===== BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(20, 36, 64, 0.08);
}

#navbar.scrolled .font-display {
  color: #142470;
}

.nav-link {
  color: #142470;
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
}

#menu-icon-open span:nth-child(1) {
  transform-origin: center;
}
#menu-icon-open span:nth-child(3) {
  width: 1.4rem;
}

body.menu-open #menu-icon-open span:nth-child(1) {
  transform: rotate(45deg) translate(0.35rem, 0.35rem);
}
body.menu-open #menu-icon-open span:nth-child(2) {
  opacity: 0;
}
body.menu-open #menu-icon-open span:nth-child(3) {
  width: 1.4rem;
  transform: rotate(-45deg) translate(0.35rem, -0.35rem);
}

body.menu-open #menu-icon-open {
  position: relative;
}

body.menu-open #menu-icon-close {
  display: none;
}

#menu-icon-close {
  display: none;
}

body.menu-open #menu-icon-close {
  display: flex;
}

body.menu-open #menu-icon-open {
  display: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* ===== BUTTON HOVER GLOW ===== */
a[href="#contact"]:hover {
  transform: translateY(-1px);
}

/* ===== FORM FOCUS ===== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdf7;
}
::-webkit-scrollbar-thumb {
  background: #86e3bc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4fd19a;
}
