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

  /* Scroll reveal animations */
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

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

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  }

  #navbar.scrolled .font-display {
    color: #0f172a;
  }

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

  /* Selection color */
  ::selection {
    background: #99f6e4;
    color: #134e4a;
  }
