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

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

  body {
    overflow-x: hidden;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #1A1A1A;
  }
  ::-webkit-scrollbar-thumb {
    background: #E8644A;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #F0785E;
  }

  /* Selection */
  ::selection {
    background: #E8644A;
    color: #fff;
  }

  /* Navigation */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E8644A;
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }

  #navbar.scrolled .nav-logo,
  #navbar.scrolled .nav-link {
    color: #fff;
  }

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

  .mobile-nav-link {
    position: relative;
  }
  .mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #E8644A;
    transition: width 0.3s ease;
    margin: 0 auto;
  }
  .mobile-nav-link:hover::after {
    width: 60%;
  }

  /* Reveal animations */
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-left {
    transform: translateX(-40px);
  }
  .reveal-right {
    transform: translateX(40px);
  }
  .reveal-bottom {
    transform: translateY(0);
    transition-delay: 0.4s;
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }

  /* Stagger children */
  .reveal-up.visible ~ .reveal-up,
  .reveal-left.visible ~ .reveal-left,
  .reveal-right.visible ~ .reveal-right {
    transition-delay: 0.1s;
  }

  /* Hero text reveal */
  .reveal-left {
    transition-delay: 0.2s;
  }
  .reveal-bottom {
    transition-delay: 0.6s;
  }

  /* Image hover */
  .group img {
    will-change: transform;
  }

  /* Form focus */
  input:focus,
  textarea:focus {
    outline: none;
  }

  /* Smooth image loading */
  img {
    image-rendering: auto;
    loading: lazy;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    html {
      scroll-behavior: auto;
    }
    .reveal-up,
    .reveal-left,
    .reveal-right {
      opacity: 1;
      transform: none;
    }
  }

  /* Wide screens */
  @media (min-width: 1280px) {
    .reveal-left { transition-delay: 0.1s; }
    .reveal-right { transition-delay: 0.2s; }
  }
