  /* Custom styles beyond Tailwind */

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

  /* Selection color */
  ::selection {
    background-color: #F9DDD0;
    color: #8F4C38;
  }

  /* Scroll reveal base - visible by default for progressive enhancement */
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  /* When JS is enabled, hide initially and animate in */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal[data-revealed="false"] {
      opacity: 0;
      transform: translateY(30px);
    }
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  }

  /* Mobile menu transitions */
  #mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  #mobileMenu.open {
    max-height: 400px;
    padding: 0;
  }

  /* Custom focus styles */
  input:focus, select:focus, textarea:focus {
    outline: none;
  }

  /* Hero gradient animation */
  @keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  /* Subtle card hover lift */
  .group:hover {
    transform: translateY(-2px);
  }

  /* Image hover zoom */
  .rounded-2xl.overflow-hidden img {
    transition: transform 0.6s ease;
  }

  .rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
  }

  /* Prevent layout shift on select */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    html {
      scroll-behavior: auto;
    }
  }
