  /* Scroll reveal base — content always visible by default */
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }

  /* Selection color */
  ::selection {
    background-color: rgba(239, 191, 22, 0.3);
    color: #ffffff;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0c1833;
  }
  ::-webkit-scrollbar-thumb {
    background: #2e4fa3;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #4168ca;
  }

  /* Navbar transition */
  #navbar.scrolled {
    background-color: rgba(8, 15, 31, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* Mobile menu animation */
  #mobile-menu {
    animation: slideDown 0.2s ease-out;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

  /* Image lazy load fallback */
  img[loading="lazy"] {
    opacity: 1;
  }
