  *, *::before, *::after {
    box-sizing: border-box;
  }

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

  body {
    overflow-x: hidden;
  }

  ::selection {
    background-color: rgba(5, 150, 105, 0.2);
    color: #064e3b;
  }

  /* Scroll reveal animations - progressive enhancement */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    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);
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
    }

    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Mobile menu */
  .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #mobile-menu.open .mobile-link {
    opacity: 0;
    transform: translateY(-10px);
  }

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

  /* Navbar scroll state */
  #navbar.scrolled {
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
  }

  /* Form select arrow */
  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='%23065f46' stroke-width='2' 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;
    appearance: none;
  }

  /* Smooth image loading */
  img {
    image-rendering: auto;
    loading: lazy;
  }

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