  /* Custom styles for DM Mobile Riverdale */

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

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

  /* Scroll reveal animations — progressive enhancement */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Fallback: always visible if JS disabled */
  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Navbar transition */
  #nav {
    background: transparent;
  }
  #nav.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
  }
  #nav.scrolled .nav-logo-text {
    color: #14532d;
  }

  /* Image hover zoom wrapper */
  .reveal img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Gradient text utility */
  .text-gradient {
    background: linear-gradient(135deg, #166534, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #fdf9ef;
  }
  ::-webkit-scrollbar-thumb {
    background: #bbf7d0;
    border-radius: 9999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #86efac;
  }

  /* Mobile menu animation */
  #mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Form focus styles */
  input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  }

  /* Button ripple-like hover effect */
  a, button {
    -webkit-tap-highlight-color: transparent;
  }

  /* Asymmetric hero image float */
  @media (prefers-reduced-motion: no-preference) {
    .hero-float {
      animation: float 6s ease-in-out infinite;
    }
    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-10px); }
    }
  }
</style>
