  /* Base */
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    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, 122, 69, 0.2);
    color: #1a1a1f;
  }

  /* Scroll reveal animations */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal[data-delay="1"] { transition-delay: 0.1s; }
  .reveal[data-delay="2"] { transition-delay: 0.2s; }
  .reveal[data-delay="3"] { transition-delay: 0.3s; }
  .reveal[data-delay="4"] { transition-delay: 0.4s; }

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

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

  #navbar.scrolled .menu-line {
    background: #1a1a1f;
  }

  /* Mobile menu animation */
  #mobile-menu.open {
    transform: translateX(0);
  }

  #mobile-menu.closed {
    transform: translateX(100%);
  }

  /* Hamburger animation */
  #menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
  }
  #menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
  }
  #menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
  }

  /* Mobile links animation */
  .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
  }

  #mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }

  #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
  #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
  #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
  #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
  #mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: #f7f7f8;
  }
  ::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #b0b0b8;
  }

  /* Input autofill styling */
  input:-webkit-autofill,
  textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
  }
