  /* Custom styles beyond Tailwind */
  html {
    scroll-behavior: smooth;
  }

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

  /* Selection color */
  ::selection {
    background-color: rgba(249, 112, 102, 0.2);
    color: #181d25;
  }

  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f5f6f7;
  }
  ::-webkit-scrollbar-thumb {
    background: #c5c9d0;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #9ba2ad;
  }

  /* Reveal animations - progressive enhancement only */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Default visible state for reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* Navbar transition */
  #navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  }

  /* Mobile menu animation */
  #mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #mobileMenu.open {
    max-height: 400px;
  }

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

  /* Image loading placeholder */
  img {
    background-color: #f5f6f7;
  }
