  /* Custom styles for Custard Cottage Corp */

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

  /* Selection color */
  ::selection {
    background-color: rgba(20, 184, 166, 0.3);
    color: white;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0f172a;
  }
  ::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #334155;
  }

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

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

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

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

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

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

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

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

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

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

  /* Nav scroll state */
  nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }

  nav.nav-scrolled {
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.05);
  }

  /* Scroll reveal base - content is visible by default */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  /* Only apply hidden state when JS is active via .js class on body */
  html.js .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  /* Respect reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    html.js .reveal {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Mobile menu transition */
  #mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

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

  #mobileMenu.closed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  /* Image aspect ratio helpers */
  .aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
  .aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
  .aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
  .aspect-square { aspect-ratio: 1 / 1; }
