  /* Custom styles beyond Tailwind */
  :root {
    --scroll-behavior: smooth;
  }

  html {
    scroll-behavior: smooth;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  /* Scroll reveal animations - progressive enhancement */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    /* Stagger children */
    .grid .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .grid .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .grid .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .grid .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .grid .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
  }

  /* Navbar scroll state */
  header.scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  }

  /* Hero gradient fallback */
  #hero {
    background: linear-gradient(135deg, #0a1628 0%, #142d54 50%, #1a3a6b 100%);
  }

  /* Custom selection color */
  ::selection {
    background: #2dd4a0;
    color: #0a1628;
  }

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

  /* Mobile menu transition */
  #mobileMenu {
    animation: slideDown 0.3s ease;
  }

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

  /* Button hover micro-interaction */
  a, button {
    -webkit-tap-highlight-color: transparent;
  }

  /* Image aspect ratio helpers */
  .img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Subtle pattern overlay for sections */
  .pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 24px 24px;
  }
