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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    overflow-x: hidden;
  }

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

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

  .hamburger-line {
    display: block;
    transition: all 0.3s ease;
  }

  #mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  #mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  #mobile-toggle.active .hamburger-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* Service card hover */
  .service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  }

  .service-card:hover {
    transform: translateY(-4px);
  }

  /* Fade-in animations */
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .fade-in-delay-1 { transition-delay: 0.1s; }
  .fade-in-delay-2 { transition-delay: 0.2s; }
  .fade-in-delay-3 { transition-delay: 0.3s; }
  .fade-in-delay-4 { transition-delay: 0.4s; }
  .fade-in-delay-5 { transition-delay: 0.5s; }

  /* Floating animation for stat cards */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }

  .float-1 { animation: float 4s ease-in-out infinite; }
  .float-2 { animation: float 5s ease-in-out infinite 0.5s; }
  .float-3 { animation: float 4.5s ease-in-out infinite 1s; }

  /* Selection color */
  ::selection {
    background: rgba(91, 58, 92, 0.15);
    color: #5B3A5C;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f7f3f8;
  }

  ::-webkit-scrollbar-thumb {
    background: #d8bfd8;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #a86faf;
  }

  /* Focus styles */
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #5B3A5C;
    outline-offset: 2px;
  }

  /* Reduce motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
  }
