/* Custom styles for Bowen Pools */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0c0c10;
}
::-webkit-scrollbar-thumb {
  background: #313138;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B35;
}

/* Selection color */
::selection {
  background: rgba(255, 107, 53, 0.3);
  color: #f5f5f7;
}

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

/* Scroll reveal animated state - only applied via JS when prefers-reduced-motion is off */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .scroll-reveal.revealed.reveal-active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delays for grid items */
.scroll-reveal:nth-child(1) { transition-delay: 0ms; }
.scroll-reveal:nth-child(2) { transition-delay: 100ms; }
.scroll-reveal:nth-child(3) { transition-delay: 200ms; }
.scroll-reveal:nth-child(4) { transition-delay: 300ms; }
.scroll-reveal:nth-child(5) { transition-delay: 400ms; }
.scroll-reveal:nth-child(6) { transition-delay: 500ms; }

/* Navbar scrolled state */
.navbar-scrolled {
  background: rgba(12, 12, 16, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu active state */
#mobileMenu.menu-open {
  opacity: 1;
  pointer-events: all;
}

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 5px;
  margin-left: 0;
}

/* Water ripple animation for decorative elements */
@keyframes ripple {
  0%, 100% { transform: scale(1); opacity: 0.08; }
  50% { transform: scale(1.1); opacity: 0.12; }
}

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

/* Shimmer effect for gradient text */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Pulse glow for coral elements */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.2); }
  50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.4); }
}

/* Subtle water wave animation */
@keyframes wave {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.55); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

/* Focus visible styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #FF6B35;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #1c1c21 0%, #26262c 100%);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  nav, #contact, footer, .scroll-reveal { display: none; }
  body { background: white; color: black; }
}
