  /* Custom styles for Advantage Kwik-Dry */

  :root {
    --midnight: #0A2540;
    --mint: #2DD4BF;
    --cream: #F8FAFC;
  }

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

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

  body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Navbar scroll effect */
  #navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
  }

  #navbar.scrolled .nav-link {
    color: rgba(10, 37, 64, 0.7) !important;
  }

  /* Service card hover lift */
  .service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  }

  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(10, 37, 64, 0.15);
  }

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

  #mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
  }

  #mobileMenu.open .mobile-link {
    animation: slideUp 0.4s ease forwards;
  }

  #mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.05s; }
  #mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.1s; }
  #mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.15s; }
  #mobileMenu.open .mobile-link:nth-child(5) { animation-delay: 0.2s; }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(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;
  }

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

  /* Scroll reveal animations */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .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; }

  /* Custom select 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='%230A2540' stroke-width='2.5' 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;
  }

  /* Selection color */
  ::selection {
    background: rgba(45, 212, 191, 0.3);
    color: #0A2540;
  }

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

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

  /* Reduce motion for accessibility */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
    .service-card:hover {
      transform: none;
    }
    * {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Large screen adjustments */
  @media (min-width: 1024px) {
    .service-card:hover {
      box-shadow: 0 25px 80px rgba(10, 37, 64, 0.18);
    }
  }

  /* Mobile optimizations */
  @media (max-width: 640px) {
    html {
      scroll-padding-top: 70px;
    }

    #hero h1 {
      font-size: 2.75rem;
      line-height: 1.1;
    }

    .floating-card {
      position: relative;
      bottom: auto;
      left: auto;
      margin-top: 1rem;
    }
  }
