/* Custom styles for Oakland Swimming Pool */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fff8f7;
}
::-webkit-scrollbar-thumb {
  background: #b83954;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a2842;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 248, 247, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(184, 57, 84, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-navy-900 {
  color: #141f30;
}

/* Mobile menu animation */
.menu-line {
  display: block;
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

/* Selection color */
::selection {
  background: #b83954;
  color: #fff;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .group:hover .group-hover\:scale-105,
  .group:hover .group-hover\:scale-110 {
    transform: none;
  }
}
