  /* Base & utilities */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { overflow-x: hidden; }

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #141419; }
  ::-webkit-scrollbar-thumb { background: #3d3d47; border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #565662; }

  /* Selection */
  ::selection { background: rgba(255, 82, 56, 0.3); color: #f5f5f7; }

  /* Floating particles */
  .particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.4;
  }
  .float-1 {
    width: 6px; height: 6px;
    background: #ff6b5a;
    top: 20%; left: 15%;
    animation: float 8s ease-in-out infinite;
  }
  .float-2 {
    width: 4px; height: 4px;
    background: #d4a84b;
    top: 40%; left: 80%;
    animation: float 10s ease-in-out infinite reverse;
  }
  .float-3 {
    width: 8px; height: 8px;
    background: #ff5238;
    top: 70%; left: 25%;
    animation: float 12s ease-in-out infinite;
  }
  .float-4 {
    width: 5px; height: 5px;
    background: #e8c36a;
    top: 15%; left: 70%;
    animation: float 9s ease-in-out infinite reverse;
  }
  .float-5 {
    width: 3px; height: 3px;
    background: #ff6b5a;
    top: 85%; left: 60%;
    animation: float 11s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.2); }
    50% { transform: translate(-20px, -80px) scale(0.8); }
    75% { transform: translate(40px, -40px) scale(1.1); }
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 61, 71, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* Service card hover glow */
  .service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.5s ease;
  }

  /* Gallery item hover */
  .gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Scroll reveal base (progressive enhancement) */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(30px);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
  }

  /* Mobile menu transition */
  #mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  #mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
  }

  /* Focus visible for accessibility */
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #ff5238;
    outline-offset: 2px;
  }

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