  html {
    scroll-behavior: smooth;
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  /* Header scroll state */
  #header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* Hero fade-in animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #hero > .relative.z-10 > * {
    animation: fadeInUp 0.8s ease-out forwards;
  }

  #hero > .relative.z-10 > *:nth-child(2) { animation-delay: 0.15s; }
  #hero > .relative.z-10 > *:nth-child(3) { animation-delay: 0.3s; }
  #hero > .relative.z-10 > *:nth-child(4) { animation-delay: 0.45s; }
  #hero > .relative.z-10 > *:nth-child(5) { animation-delay: 0.6s; }
  #hero > .relative.z-10 > *:nth-child(6) { animation-delay: 0.75s; }

  /* Scroll reveal animations */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }

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

  /* Service card hover tilt effect */
  #services .group {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  #services .group:hover {
    transform: translateY(-4px);
  }

  /* Mobile menu transition */
  #mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #mobile-menu.open {
    max-height: 400px;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #081831;
  }

  ::-webkit-scrollbar-thumb {
    background: #C8A45E;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #D4AF54;
  }

  /* Selection color */
  ::selection {
    background: #C8A45E;
    color: #081831;
  }

  /* Focus visible styles */
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #C8A45E;
    outline-offset: 2px;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    #hero > .relative.z-10 > * { animation: none; opacity: 1; }
  }

  /* Header height */
  #header {
    height: 72px;
  }

  /* Ensure mobile menu links close menu */
  .mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .mobile-link:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
  }
