  /* Base & Utilities */
  *, *::before, *::after {
    box-sizing: border-box;
  }

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

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  ::selection {
    background-color: rgba(13, 148, 136, 0.15);
    color: #0f766e;
  }

  /* Scroll Reveal */
  .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);
    }
  }

  /* Navbar */
  #navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.4s ease, background 0.4s ease;
  }

  #navbar.scrolled {
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.97);
  }

  .nav-logo-text {
    color: #0f172a;
  }

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

  .mobile-nav-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  }

  #mobileMenu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
  }

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

  /* Hamburger */
  #menuBtn.open #menuLine1 {
    transform: rotate(45deg) translate(3px, 3px);
  }
  #menuBtn.open #menuLine2 {
    opacity: 0;
  }
  #menuBtn.open #menuLine3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
  }

  /* 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='%2394a3b8' 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;
    -webkit-appearance: none;
  }

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

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

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f8fafc;
  }
  ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
