  /* Custom styles for David Young Hair Salon */

  /* Smooth scroll offset for fixed nav */
  section[id] {
    scroll-margin-top: 80px;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #fdf4f8;
  }
  ::-webkit-scrollbar-thumb {
    background: #d12f55;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #ad2144;
  }

  /* Selection color */
  ::selection {
    background: #fad0e3;
    color: #781d37;
  }

  /* Reveal animations - progressive enhancement */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 0;
      transform: translateY(30px);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Staggered delays for grid children */
  .reveal:nth-child(1) { transition-delay: 0.05s; }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.15s; }
  .reveal:nth-child(4) { transition-delay: 0.2s; }
  .reveal:nth-child(5) { transition-delay: 0.25s; }
  .reveal:nth-child(6) { transition-delay: 0.3s; }

  /* Navbar scroll state */
  .navbar-scrolled {
    background: rgba(254, 252, 246, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(143, 29, 59, 0.08);
  }
  .navbar-scrolled .font-serif {
    color: #8f1d3b !important;
  }
  .navbar-scrolled a:not(.bg-plum-600):not(.bg-amber-400) {
    color: #8f1d3b !important;
  }

  /* Subtle gradient animation for hero decorative elements */
  @keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -10px) scale(1.02); }
    66% { transform: translate(-5px, 8px) scale(0.98); }
  }
  .hero-decor {
    animation: float 8s ease-in-out infinite;
  }

  /* Gallery hover image transition */
  .gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Smooth link underline animation */
  .link-underline {
    position: relative;
  }
  .link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
  }
  .link-underline:hover::after {
    width: 100%;
  }

  /* Mobile menu animation */
  #mobileMenu {
    animation: slideDown 0.3s ease-out;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Back to top button */
  #backToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
