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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

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

  ::selection {
    background: #d4a017;
    color: #0f1a2e;
  }

  /* Mobile menu transitions */
  #mobile-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

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

  .mobile-link {
    transition: opacity 0.2s ease;
  }

  .mobile-link:hover {
    opacity: 0.7;
  }

  /* Reveal animations — progressive enhancement via JS */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal.is-visible {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(10, 18, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  }

  #navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
  }

  /* Smooth image loading */
  img {
    display: block;
    max-width: 100%;
  }

  /* Focus styles */
  a:focus-visible, button:focus-visible {
    outline: 2px solid #d4a017;
    outline-offset: 3px;
    border-radius: 4px;
  }

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

  ::-webkit-scrollbar-track {
    background: #0f1a2e;
  }

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

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