  /* Custom styles for Courts Ruby */

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

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

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

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

  .animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
  }

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

  @media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-hidden-delay-1 { transition-delay: 0.1s; }
    .reveal-hidden-delay-2 { transition-delay: 0.2s; }
    .reveal-hidden-delay-3 { transition-delay: 0.3s; }
    .reveal-hidden-delay-4 { transition-delay: 0.4s; }
  }

  /* Navbar scroll state */
  .navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 20px rgba(109, 45, 60, 0.08);
  }

  .navbar-scrolled #navbar a:not([class*="bg-plum"]) {
    color: rgb(109, 45, 60) !important;
  }

  /* Custom selection color */
  ::selection {
    background: rgb(212, 114, 143);
    color: white;
  }

  /* Improve image rendering */
  img {
    -webkit-font-smoothing: antialiased;
  }

  /* Focus visible styles */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid rgb(251, 191, 36);
    outline-offset: 2px;
    border-radius: 4px;
  }

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

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

  /* Reduce motion for accessibility */
  @media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-delayed {
      animation: none;
    }

    html {
      scroll-behavior: auto;
    }

    .reveal-hidden {
      opacity: 1;
      transform: none;
    }
  }

  /* Print styles */
  @media print {
    nav, #contact-form, button {
      display: none;
    }

    body {
      color: #000;
      background: #fff;
    }
  }
