  /* Custom styles for Pegasus Crystals */

  html {
    scroll-behavior: smooth;
  }

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

  /* Scroll reveal animations - progressive enhancement, only when JS runs and user prefers motion */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-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);
    }

    .scroll-reveal.revealed {
      opacity: 0;
      transform: translateY(24px);
    }

    .scroll-reveal.revealed.visible {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Fallback: ensure content is always visible */
  @media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    box-shadow: 0 1px 20px rgba(106, 29, 29, 0.08);
  }

  /* Mobile menu animation */
  #mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  #mobile-menu.open {
    max-height: 400px;
  }

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

  ::-webkit-scrollbar-track {
    background: #fdf8f5;
  }

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

  ::-webkit-scrollbar-thumb:hover {
    background: #9a2626;
  }

  /* Selection color */
  ::selection {
    background: #b83535;
    color: #fefcfb;
  }

  /* Focus visible styles */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #b83535;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Smooth image loading */
  img {
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  /* Subtle hover lift for cards */
  .group:hover {
    transform: translateY(-2px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .group {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
