/* Custom styles for Prestige Resort Properties */

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

/* Scroll indicator animation */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(10, 10, 16, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile links */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .scroll-line { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Selection color */
::selection {
  background: rgba(240, 82, 82, 0.3);
  color: #f5f5f7;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #14141c;
}
::-webkit-scrollbar-thumb {
  background: #3a3a48;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f05252;
}
