/* Custom styles for The Wave at Ocean Breeze */

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

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #102a43;
}

::-webkit-scrollbar-thumb {
  background: #334e68;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #486581;
}

/* Selection color */
::selection {
  background: rgba(232, 160, 16, 0.3);
  color: #f0f4f8;
}

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

/* Button focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e8a010;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle hover lift for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gold accent underline animation */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e8a010;
  transition: width 0.3s ease;
}

.gold-underline:hover::after {
  width: 100%;
}

/* Gallery hover zoom */
.gallery-img {
  overflow: hidden;
  border-radius: 1rem;
}

.gallery-img img {
  transition: transform 0.5s ease;
}

.gallery-img:hover img {
  transform: scale(1.05);
}
