  /* ─── Custom styles for Love Locker Project ─── */

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

  /* Selection color */
  ::selection {
    background-color: rgba(42, 168, 122, 0.2);
    color: #0f2d54;
  }

  /* ─── Animations ─── */

  /* Floating decoration animation */
  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
  }

  @keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
  }

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

  .animate-float {
    animation: float 6s ease-in-out infinite;
  }

  .animate-float-delay {
    animation: float-delay 7s ease-in-out infinite;
  }

  .animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
  }

  /* Scroll line animation */
  @keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
  }

  .animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
  }

  /* ─── Scroll reveal (progressive enhancement) ─── */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                  transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Staggered delays */
    .scroll-reveal[data-delay="100"] { transition-delay: 100ms; }
    .scroll-reveal[data-delay="150"] { transition-delay: 150ms; }
    .scroll-reveal[data-delay="200"] { transition-delay: 200ms; }
    .scroll-reveal[data-delay="250"] { transition-delay: 250ms; }
  }

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

  /* ─── Nav active state ─── */
  .nav-link-active {
    color: #89dbbc !important;
  }

  /* ─── Mobile menu transition ─── */
  #mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.25s ease;
    opacity: 0;
  }

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

  /* ─── Focus visible for accessibility ─── */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #4fc49a;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* ─── Image aspect ratios to prevent layout shift ─── */
  .h-52 {
    aspect-ratio: 500 / 350;
  }

  /* ─── Subtle gradient text utility ─── */
  .gradient-text {
    background: linear-gradient(135deg, #4fc49a, #2aa87a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
