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

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

/* Navigation */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}

.nav-scrolled {
  box-shadow: 0 1px 20px rgba(3, 17, 38, 0.08);
}

/* Mobile menu */
.menu-line {
  display: block;
}

.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(0.25rem, 0.25rem);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.15rem, -0.15rem);
  width: 1.25rem;
}

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #789abd;
}

/* Selection */
::selection {
  background: #a8e6cf;
  color: #031126;
}

/* Image loading placeholder */
img {
  background-color: #e8eef4;
}
