  /* Base styles */
  html {
    scroll-behavior: smooth;
  }

  body {
    overflow-x: hidden;
  }

  /* Selection color */
  ::selection {
    background-color: rgba(147, 51, 234, 0.15);
    color: #581c87;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #faf5ff;
  }
  ::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
  }

  /* Hero animations */
  .hero-fade {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.8s ease forwards;
  }
  .hero-fade:nth-child(1) { animation-delay: 0.1s; }
  .hero-fade:nth-child(2) { animation-delay: 0.3s; }
  .hero-fade:nth-child(3) { animation-delay: 0.5s; }
  .hero-fade:nth-child(4) { animation-delay: 0.7s; }

  @keyframes heroFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hero decorative elements */
  .hero-deco {
    opacity: 0;
    animation: decoAppear 1.2s ease forwards;
    animation-delay: 0.6s;
  }
  .hero-deco:nth-child(2) { animation-delay: 0.8s; }
  .hero-deco:nth-child(3) { animation-delay: 1.0s; }
  .hero-deco:nth-child(4) { animation-delay: 1.1s; }
  .hero-deco:nth-child(5) { animation-delay: 1.2s; }
  .hero-deco:nth-child(6) { animation-delay: 1.3s; }
  .hero-deco:nth-child(7) { animation-delay: 1.4s; }

  @keyframes decoAppear {
    to { opacity: 1; }
  }

  /* Hero floating dots */
  .hero-dot {
    opacity: 0;
    animation: dotPulse 3s ease-in-out infinite;
    animation-delay: 1s;
  }
  .hero-dot:nth-child(2) { animation-delay: 1.5s; }
  .hero-dot:nth-child(3) { animation-delay: 2s; }
  .hero-dot:nth-child(4) { animation-delay: 2.5s; }
  .hero-dot:nth-child(5) { animation-delay: 3s; }

  @keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
  }

  /* Scroll reveal animations */
  .section-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .section-reveal {
      opacity: 0;
      transform: translateY(32px);
    }
    .section-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* 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);
  }

  /* Neighborhood card */
  .neighborhood-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  .neighborhood-card:hover {
    box-shadow: 0 24px 64px rgba(88, 28, 135, 0.3);
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(147, 51, 234, 0.08);
  }
  #navbar.scrolled .nav-text {
    color: #581c87;
  }
  #navbar.scrolled .nav-link {
    color: rgba(88, 28, 135, 0.6);
  }
  #navbar.scrolled .nav-link:hover {
    color: #581c87;
  }
  #navbar.scrolled .menu-line {
    background-color: #581c87;
  }

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

  .mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  #mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }
  #mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
  #mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
  #mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
  #mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
  #mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

  /* Menu button animation */
  #menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
  }
  #menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Focus styles */
  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
  }

  /* Smooth transitions for all interactive elements */
  a, button {
    transition: all 0.3s ease;
  }

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