  /* Custom styles for Southern Comfort Primary & Chronic Care */

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

  /* Selection color */
  ::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #faf8f4;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0d1f15;
  }
  ::-webkit-scrollbar-thumb {
    background: #2e6348;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
  }

  /* Hero animations */
  .hero-badge {
    animation: fadeInUp 0.8s ease-out both;
  }
  .hero-badge { animation-delay: 0.1s; }

  h1 {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.2s;
  }

  p.text-lg {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.35s;
  }

  .flex.flex-wrap {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.5s;
  }

  .flex.gap-10 {
    animation: fadeInUp 0.8s ease-out both;
    animation-delay: 0.65s;
  }

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

  /* Service cards hover */
  .service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  }
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(13, 31, 21, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

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

  /* Mobile link animations */
  .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; }

  /* Menu button animation */
  .menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  #menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  #menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
  }
  #menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
  }

  /* Intersection observer reveal animations */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered reveal for service cards */
  .service-card:nth-child(1) { transition-delay: 0.05s; }
  .service-card:nth-child(2) { transition-delay: 0.1s; }
  .service-card:nth-child(3) { transition-delay: 0.15s; }
  .service-card:nth-child(4) { transition-delay: 0.2s; }
  .service-card:nth-child(5) { transition-delay: 0.25s; }
  .service-card:nth-child(6) { transition-delay: 0.3s; }

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

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