  /* Base & Scrollbar */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

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

  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f0fdf4;
  }
  ::-webkit-scrollbar-thumb {
    background: #bbf7d0;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #86efac;
  }

  /* Scroll Reveal — progressive enhancement, hidden by default via JS */
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .scroll-reveal.revealed.reveal-active {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Navbar transitions */
  #navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.06);
  }

  /* Active nav link */
  .nav-link.active {
    color: #0f172a !important;
  }
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #10b981;
    border-radius: 1px;
  }

  /* Hero gradient animation */
  @keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  /* Pulse dot */
  @keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
  }

  .animate-pulse-dot {
    animation: soft-pulse 2s ease-in-out infinite;
  }

  /* Card hover glow */
  .glow-card:hover {
    box-shadow: 0 0 40px rgba(110, 231, 183, 0.15);
  }

  /* Mobile menu animation */
  #mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  /* Button focus styles */
  a:focus-visible, button:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Selection color */
  ::selection {
    background: rgba(110, 231, 183, 0.3);
    color: #0f172a;
  }
</style>
