  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { overflow-x: hidden; }

  /* Smooth transitions for reveal animations */
  .reveal-up, .reveal-left, .reveal-right {
    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) {
    .reveal-up, .reveal-left, .reveal-right {
      opacity: 0;
    }
    .reveal-up { transform: translateY(32px); }
    .reveal-left { transform: translateX(-32px); }
    .reveal-right { transform: translateX(32px); }
    .reveal-up.is-visible, .reveal-left.is-visible, .reveal-right.is-visible {
      opacity: 1;
      transform: none;
    }
  }

  .delay-75  { transition-delay: 75ms; }
  .delay-100 { transition-delay: 100ms; }
  .delay-150 { transition-delay: 150ms; }
  .delay-200 { transition-delay: 200ms; }

  /* Header scroll state */
  #site-header.scrolled {
    background: rgba(8, 17, 56, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  }

  /* Mobile menu transition */
  #mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
  }

  /* Subtle image hover */
  img { max-width: 100%; height: auto; }

  /* Selection color */
  ::selection { background: rgba(111, 187, 143, 0.3); }

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #f4fbf8; }
  ::-webkit-scrollbar-thumb { background: #9fd3b6; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #6fbb8f; }

  /* Focus visible */
  :focus-visible { outline: 2px solid #48a172; outline-offset: 2px; border-radius: 4px; }

  @media (max-width: 768px) {
    html { scroll-padding-top: 72px; }
  }
