  /* Base & utilities */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { overflow-x: hidden; }

  /* Scroll reveal (progressive enhancement) */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .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; }
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(8, 19, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  }

  /* Service card hover */
  .service-card {
    will-change: transform;
  }

  /* Smooth anchor offset */
  section[id] {
    scroll-margin-top: 80px;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #f0f4f8; }
  ::-webkit-scrollbar-thumb { background: #1e4070; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #0f2140; }

  /* Selection color */
  ::selection { background: rgba(212, 160, 23, 0.3); color: #0f2140; }
</style>
