/* === Base & Typography === */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(240, 96, 32, 0.2);
  color: #1a1d23;
}

/* === Navbar === */
.nav-link-text {
  color: #1a1d23;
}

#navbar.scrolled .nav-link-text {
  color: #2a2e35;
}

#navbar.scrolled .nav-link {
  color: #4a4f58;
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar {
  background-color: transparent;
}

/* === Mobile Menu === */
.mobile-nav-link {
  color: #2a2e35;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

  .reveal.revealed {
    opacity: 1;
    transform: none;
  }

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a1a5ab;
}

/* === Focus Styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #f06020;
  outline-offset: 2px;
}

/* === Input Autocomplete === */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* === Print Styles === */
@media print {
  nav, #mobile-menu-btn, .reveal {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .bg-charcoal-900, .bg-charcoal-950 {
    background: #fff !important;
    color: #000 !important;
  }
}
