  /* Custom styles for J&S Auto Repair */

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

  /* Selection color */
  ::selection {
    background-color: #F5C518;
    color: #1A0D20;
  }

  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #F5F0F7;
  }
  ::-webkit-scrollbar-thumb {
    background: #8B4D8C;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #5B2C6F;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(91, 44, 111, 0.08);
  }

  #navbar.scrolled .nav-link {
    color: #4A2358;
  }

  #navbar.scrolled .nav-link:hover {
    color: #1A0D20;
  }

  /* Service card hover effects */
  .service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(91, 44, 111, 0.2);
  }

  /* Testimonial card hover */
  .testimonial-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  .testimonial-card:hover {
    transform: translateY(-4px);
  }

  /* Mobile menu animations */
  #mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  /* 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;
  }
  #menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
  }

  /* Mobile link animation */
  .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  #mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }
  #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
  #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
  #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
  #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
  #mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
  #mobile-menu.open .mobile-link:nth-child(6) { 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 ease, transform 0.7s ease;
    }
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
  }

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

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

  /* Print styles */
  @media print {
    #navbar, #contact-form, #form-success {
      display: none;
    }
    body {
      color: #000;
      background: #fff;
    }
  }
