  /* Base & Utilities */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  ::selection {
    background-color: rgba(255, 87, 41, 0.3);
    color: #f6f6f6;
  }

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

  ::-webkit-scrollbar-track {
    background: #1a1a1a;
  }

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

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

  /* Scroll Reveal Animations */
  .reveal-element {
    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-element {
      opacity: 0;
      transform: translateY(30px);
    }

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

    .reveal-element:nth-child(1) { transition-delay: 0.05s; }
    .reveal-element:nth-child(2) { transition-delay: 0.1s; }
    .reveal-element:nth-child(3) { transition-delay: 0.15s; }
    .reveal-element:nth-child(4) { transition-delay: 0.2s; }
    .reveal-element:nth-child(5) { transition-delay: 0.25s; }
  }

  /* Mobile Menu */
  #mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  #mobile-menu:not(.open) {
    opacity: 0;
    pointer-events: none;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  /* Form select arrow */
  select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
  }

  /* Image loading placeholder */
  img {
    background-color: #252525;
  }

  /* Focus visible for accessibility */
  :focus-visible {
    outline: 2px solid #ff5729;
    outline-offset: 2px;
  }

  /* Smooth image transitions */
  img {
    transition: opacity 0.3s ease;
  }

  img[data-src] {
    opacity: 0;
  }

  img.loaded {
    opacity: 1;
  }
