  /* Base reset & global styles */
  *, *::before, *::after {
    box-sizing: border-box;
  }

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

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

  /* Ensure all links without underline class are clean */
  a.no-underline {
    text-decoration: none;
  }

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

  /* Only apply hidden state when JS adds the class */
  .reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }

  /* Reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    .reveal.is-hidden {
      opacity: 1;
      transform: translateY(0);
    }
    html {
      scroll-behavior: auto;
    }
    .group:hover img {
      transform: none;
    }
  }

  /* Navbar glass effect when scrolled */
  #navbar.scrolled {
    background: rgba(4, 11, 24, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #040B18;
  }
  ::-webkit-scrollbar-thumb {
    background: #1B3A5C;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #1FBF90;
  }

  /* Selection color */
  ::selection {
    background: rgba(31, 191, 144, 0.3);
    color: #fff;
  }
