  /* Custom styles for MKB Realtors — Roanoke Real Estate */

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

  /* Selection color */
  ::selection {
    background-color: rgba(74, 222, 128, 0.3);
    color: #f0fdf4;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0c1e32;
  }
  ::-webkit-scrollbar-thumb {
    background: #2e5f91;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
  }

  /* Nav scroll state */
  #nav.scrolled {
    background-color: rgba(6, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46, 95, 145, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* Mobile menu animation */
  #mobileMenu {
    animation: slideDown 0.3s ease-out;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

    .reveal-up.hidden-reveal,
    .reveal-left.hidden-reveal,
    .reveal-right.hidden-reveal {
      opacity: 0;
      transform: translateY(30px);
    }
    .reveal-left.hidden-reveal {
      transform: translateX(-30px);
    }
    .reveal-right.hidden-reveal {
      transform: translateX(30px);
    }
  }

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

  /* Select dropdown styling */
  select {
    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='%239bb5d4' 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 12px center;
    padding-right: 36px;
  }

  /* Hero image parallax-like subtle effect */
  #hero img {
    will-change: transform;
  }

  /* Service card hover glow */
  .group:hover .group-hover\:bg-mint-500\/20 {
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.1);
  }

  /* Neighborhood card image zoom */
  .group:hover img {
    transform: scale(1.05);
  }

  /* Button press effect */
  button, a {
    -webkit-tap-highlight-color: transparent;
  }

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

  /* Landscape mobile adjustments */
  @media (max-height: 500px) and (orientation: landscape) {
    #hero {
      min-height: auto;
      padding-top: 80px;
      padding-bottom: 40px;
    }
    #hero h1 {
      font-size: 2.5rem;
    }
  }

  /* Large screen typography */
  @media (min-width: 1280px) {
    .font-display {
      font-feature-settings: "ss01", "ss02";
    }
  }
