  /* Custom styles for Smiths Grove Auto Wash */

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

  /* Selection color */
  ::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #f0fdfa;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #060b14;
  }
  ::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #334155;
  }

  /* Gold shimmer animation for hero */
  @keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
  }

  .gold-shimmer {
    background: linear-gradient(90deg, #d4a017 0%, #f5d56e 50%, #d4a017 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
  }

  /* Service card hover glow */
  .service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), transparent, rgba(212, 160, 23, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }
  .service-card:hover::before {
    opacity: 1;
  }

  /* Mobile menu transitions */
  #mobileMenu.open {
    opacity: 1;
    pointer-events: all;
  }
  #mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
  }

  /* Mobile menu links animation */
  .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  }
  #mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }
  #mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
  #mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
  #mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
  #mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
  #mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

  /* Scroll reveal animations (progressive enhancement) */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
  }

  /* Ensure content is visible without JS */
  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      transform: none;
    }
  }

  /* Navbar glass effect when scrolled */
  #navbar.scrolled {
    background: rgba(6, 11, 20, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  }

  /* Focus styles for accessibility */
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
  }

  /* Responsive adjustments */
  @media (max-width: 640px) {
    #hero h1 {
      font-size: 2.25rem;
    }
    .service-card {
      padding: 1.5rem;
    }
  }

  @media (min-width: 641px) and (max-width: 768px) {
    #hero h1 {
      font-size: 3rem;
    }
  }

  @media (min-width: 1024px) {
    #hero h1 {
      font-size: 3.75rem;
    }
  }
