  /* Custom styles beyond Tailwind */

  /* Smooth scroll offset for fixed nav */
  section[id] {
    scroll-margin-top: 80px;
  }

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

  #navbar.scrolled .nav-link {
    color: #1a3e80;
  }

  #navbar.scrolled .nav-link:hover {
    color: #0a1c3d;
    background: #e3edf7;
  }

  #navbar.scrolled .font-display {
    color: #0a1c3d;
  }

  /* Service card hover lift */
  .service-card {
    transform: translateY(0);
  }

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

  /* Neighborhood card hover overlay */
  .neighborhood-card:hover .absolute {
    background: linear-gradient(to top, rgba(6, 16, 42, 0.95) via rgba(6, 16, 42, 0.4) to transparent);
  }

  /* Testimonial card subtle float */
  .testimonial-card {
    transform: translateY(0);
  }

  .testimonial-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
  }

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

  @keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
  }

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

  /* Mobile menu animation */
  #mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  #mobile-menu.open {
    max-height: 400px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  /* Mobile link animation */
  .mobile-link {
    transform: translateX(-10px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  #mobile-menu.open .mobile-link {
    transform: translateX(0);
    opacity: 1;
  }

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

  /* Scroll reveal animations (below fold only) */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

    .reveal.visible {
      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; }
  }

  /* Selection color */
  ::selection {
    background: #34d399;
    color: #0a1c3d;
  }

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

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

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

  ::-webkit-scrollbar-thumb:hover {
    background: #7ba4d4;
  }
