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

  /* Scroll reveal base — content is always visible */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Only animate when JS adds the .visible class */
  body.js-enabled .reveal.animated {
    opacity: 0;
    transform: translateY(30px);
  }

  body.js-enabled .reveal.animated.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    .reveal,
    body.js-enabled .reveal.animated,
    body.js-enabled .reveal.animated.visible {
      opacity: 1;
      transform: none;
      transition: none;
    }
    html {
      scroll-behavior: auto;
    }
  }

  /* Nav active state */
  #nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #f7f7f8;
  }
  ::-webkit-scrollbar-thumb {
    background: #a1a1aa;
    border-radius: 5px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #71717a;
  }
</style>
