  /* Custom styles for J&M on Capital */

  html {
    scroll-behavior: smooth;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Navbar glass effect */
  #navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  /* Floating cards */
  .floating-card {
    animation: float 4s ease-in-out infinite;
  }

  .card-1 {
    animation-delay: 0s;
  }

  .card-2 {
    animation-delay: -2s;
  }

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

  /* Scroll reveal — progressive enhancement via JS */
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .js .scroll-reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .js .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
    .js .scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
    .js .scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
    .js .scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
  }

  /* Hero scroll indicator pulse */
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
  }

  /* Mobile menu transition */
  #mobileMenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f8fafc;
  }
  ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }

  /* Selection color */
  ::selection {
    background: rgba(13, 148, 136, 0.15);
    color: #1e293b;
  }
