  /* Custom styles for Crum's Heating & Cooling */

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

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

  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0f172a;
  }
  ::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
  }

  /* Navbar transition */
  #navbar.scrolled {
    background: rgba(8, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* Nav link hover underline animation */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2dd4bf;
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }

  /* Hero badge animation */
  .hero-badge {
    animation: fadeInDown 0.8s ease forwards;
  }

  /* Hero headline animation */
  h1 {
    animation: fadeInUp 0.8s ease 0.2s both;
  }

  /* Hero paragraph */
  p {
    animation: fadeInUp 0.8s ease 0.4s both;
  }

  /* Hero buttons */
  .hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s both;
  }

  /* Stats animation */
  .stats-bar {
    animation: fadeInUp 0.8s ease 0.8s both;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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

  /* Product card hover effects */
  .product-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  }

  /* Service card hover effects */
  .service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  .service-card:hover {
    transform: translateY(-4px);
  }

  /* Mobile menu animations */
  #mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  #mobileMenu.active {
    opacity: 1;
    pointer-events: all;
  }
  #mobileMenu.inactive {
    opacity: 0;
    pointer-events: none;
  }

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

  /* Scroll reveal animations */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  /* Reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    .reveal-hidden {
      opacity: 1;
      transform: none;
    }
    .product-card,
    .service-card {
      transition: none;
    }
    .hero-badge,
    h1,
    p,
    .hero-buttons,
    .stats-bar {
      animation: none;
    }
  }

  /* Image loading placeholder */
  img {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    min-height: 200px;
  }

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

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .font-serif {
      line-height: 1.1;
    }
  }
