/* ===== CUSTOM STYLES ===== */

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

/* Scroll reveal base — content is visible by default, JS adds animation */
.room-card,
.amenity-card,
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS adds the animated class (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .room-card {
    opacity: 0;
    transform: translateY(20px);
  }
  .room-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .amenity-card {
    opacity: 0;
    transform: translateY(20px);
  }
  .amenity-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu transitions */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobileMenu.open {
  max-height: 400px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

/* Mobile hamburger animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.25rem;
}

/* Subtle pattern overlay for hero */
.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 204, 10, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

/* Selection color */
::selection {
  background: rgba(168, 85, 247, 0.2);
  color: #581c87;
}

/* Focus visible outlines */
:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5ff;
}
::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}
