  /* Custom styles for Empire Tax Services */

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }

  /* Scroll reveal animations - progressive enhancement */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }

    /* Staggered delays */
    .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
    .scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.26s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.33s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
  }

  /* Ensure default visibility for reduced-motion or no-JS */
  @media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
      opacity: 1;
      transform: none;
    }
  }

  /* Floating card animation */
  @media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
      animation: float1 6s ease-in-out infinite;
    }
    .floating-card-2 {
      animation: float2 7s ease-in-out infinite;
    }
    .floating-card-3 {
      animation: float3 5s ease-in-out infinite;
    }
  }

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

  @keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
  }

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

  /* Navbar scroll state */
  .navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  /* Selection color */
  ::selection {
    background-color: #16a34a;
    color: #fefdf8;
  }

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

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

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

  ::-webkit-scrollbar-thumb:hover {
    background: #15803d;
  }

  /* Focus visible for accessibility */
  *:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
  }

  /* Mobile menu transition */
  #mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #mobileMenu.open {
    max-height: 400px;
  }
