  /* Custom styles for Craven Ink */

  html {
    scroll-behavior: smooth;
  }

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

  /* Scroll reveal base — always visible by default */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Only apply hidden state when JS adds the class and user prefers motion */
  @media (prefers-reduced-motion: no-preference) {
    .reveal.is-hidden {
      opacity: 0;
      transform: translateY(30px);
    }
  }

  /* Mobile menu transitions */
  #mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
  }

  #mobileMenu.open {
    max-height: 500px;
    opacity: 1;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(13, 13, 14, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Image hover zoom container */
  .group img {
    will-change: transform;
  }

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

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

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

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

  /* Selection color */
  ::selection {
    background: rgba(255, 107, 74, 0.3);
    color: #ffffff;
  }

  /* Input autofill override */
  input:-webkit-autofill,
  textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1C1C1E inset !important;
    -webkit-text-fill-color: #ffffff !important;
  }
</style>
