  *, *::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: rgba(255, 87, 51, 0.3);
    color: #fff;
  }

  /* Hero Animations */
  .hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
  }

  .hero-anim:nth-child(2) { animation-delay: 0.15s; }
  .hero-anim:nth-child(3) { animation-delay: 0.3s; }
  .hero-anim:nth-child(4) { animation-delay: 0.45s; }

  @keyframes heroReveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Scroll Reveal — below the fold only */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .hero-anim {
      opacity: 1;
      transform: none;
      animation: none;
    }
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
    html {
      scroll-behavior: auto;
    }
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Image shimmer placeholder */
  img {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 50%, #2d2d2d 100%);
    background-size: 400% 400%;
    animation: shimmer 1.5s ease-in-out;
  }

  @keyframes shimmer {
    0% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  ::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #FF5733;
  }

  /* Mobile menu animation */
  #mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  #mobileMenu.open {
    max-height: 500px;
    padding-top: 0;
    padding-bottom: 0;
  }
