  /* Custom styles for Rexroad Supply Company */

  :root {
    --color-midnight-900: #051524;
    --color-midnight-800: #0a2540;
    --color-mint-300: #5eead4;
    --color-mint-400: #2ed3b8;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    overflow-x: hidden;
  }

  /* Scroll reveal animations - progressive enhancement */
  @media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
      opacity: 1;
      transform: none;
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
      opacity: 1;
      transform: none;
    }
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(10, 37, 64, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(5, 21, 36, 0.3);
  }

  #navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  /* Product card hover effect */
  .group:hover .group-hover\:bg-mint-30\/25 {
    background-color: rgba(94, 234, 212, 0.25);
  }

  /* Mobile menu transitions */
  #mobileMenu {
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Button focus states */
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
  }

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

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

  ::-webkit-scrollbar-thumb {
    background: #143d66;
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
  }

  /* Selection color */
  ::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #0a2540;
  }

  /* Mobile link hover */
  .mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-link:last-child {
    border-bottom: none;
  }

  /* Form select styling */
  select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a2540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
  }

  /* Map container */
  .reveal-left iframe,
  .reveal-right iframe {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
  }

  .reveal-left iframe:hover,
  .reveal-right iframe:hover {
    filter: saturate(1) contrast(1);
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
