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

  html {
    scroll-behavior: smooth;
  }

  body {
    overflow-x: hidden;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0f172a;
  }
  ::-webkit-scrollbar-thumb {
    background: #4A1942;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
  }

  /* Selection */
  ::selection {
    background: #f59e0b;
    color: #0f172a;
  }

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

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

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

  /* Scroll reveal animations — progressive enhancement via prefers-reduced-motion */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
  }

  /* Service card hover lift */
  #services .group:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  }

  /* Gallery image overlay */
  .group {
    position: relative;
  }
  .group::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 25, 66, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
  }
  .group:hover::after {
    opacity: 1;
  }

  /* Form select arrow */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
  }

  /* Mobile hamburger animation */
  #mobile-toggle.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  #mobile-toggle.active .nav-line:nth-child(2) {
    opacity: 0;
  }
  #mobile-toggle.active .nav-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
  }
