  /* Custom styles — beyond Tailwind */

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

  /* Selection color */
  ::selection {
    background-color: rgba(54, 95, 43, 0.15);
    color: #1f3a1b;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #faf9f6;
  }
  ::-webkit-scrollbar-thumb {
    background: #c5dab8;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #9abc8a;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(54, 95, 43, 0.08);
  }

  /* Floating card animations */
  @media (prefers-reduced-motion: no-preference) {
    .floating-card {
      animation: float 6s ease-in-out infinite;
    }
    .floating-card:nth-child(2) {
      animation-delay: -1.5s;
      animation-duration: 7s;
    }
    .floating-card:nth-child(3) {
      animation-delay: -3s;
      animation-duration: 5.5s;
    }
    .floating-card:nth-child(4) {
      animation-delay: -4.5s;
      animation-duration: 6.5s;
    }
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
  }

  /* Service card hover */
  .service-card {
    transition: background-color 0.5s ease;
  }

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

  /* 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; }

  /* Menu button animation */
  #menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  #menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
  }
  #menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
  }

  /* Scroll reveal (progressive enhancement — hidden by default, shown by JS) */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      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; }
  }

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