  /* Base */
  *, *::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(249, 112, 102, 0.2);
    color: #f6f6f7;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: #0f1317;
  }
  ::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #f97066;
  }

  /* Navigation */
  #navbar {
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  }

  #navbar.scrolled {
    background: rgba(15, 19, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(63, 70, 80, 0.3);
  }

  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f97066;
    transition: width 0.3s ease;
  }

  .nav-link:hover::after {
    width: 100%;
  }

  /* Mobile Menu */
  .menu-line {
    display: block;
  }

  #menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
  }
  #menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  #menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(2px, -2px);
  }

  #mobileMenu.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  }

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

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

  /* Parallax Cards */
  .parallax-card {
    will-change: transform;
    transition: transform 0.1s linear;
  }

  /* Reveal Animations */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }

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

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

  /* Focus visible */
  a:focus-visible, button:focus-visible {
    outline: 1px solid rgba(249, 112, 102, 0.5);
    outline-offset: 2px;
  }
