  /* Custom styles beyond Tailwind */

  html {
    scroll-behavior: smooth;
  }

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

  /* Navbar scroll state */
  #navbar {
    background: transparent;
  }

  #navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(161, 48, 71, 0.08);
  }

  /* Mobile menu transitions */
  #mobile-menu.open {
    transform: translateX(0);
  }

  /* Menu button animation */
  #menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  #menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Scroll reveal animations */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

  /* Staggered reveal delays */
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }

  /* Selection color */
  ::selection {
    background: rgba(194, 75, 100, 0.2);
    color: inherit;
  }

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

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

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

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

  /* Select dropdown arrow */
  select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
  }

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

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

  img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  img[loading="lazy"].loaded {
    opacity: 1;
  }
