/* Base & Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040a14; }
::-webkit-scrollbar-thumb { background: #1a2d4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c9a84c; }

/* Selection */
::selection { background: rgba(201,168,76,0.3); color: #fff; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(201,168,76,0.1); }
}

/* Scroll indicator */
.scroll-indicator {
  animation: pulse-gold 2s ease-in-out infinite;
  background: linear-gradient(to bottom, #c9a84c, transparent) !important;
}

/* Room Cards */
.room-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.room-card:hover {
  border-color: rgba(201,168,76,0.2);
  background: rgba(255,255,255,0.04);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Amenity Cards */
.amenity-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.amenity-card:hover {
  border-color: rgba(201,168,76,0.2);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

/* Gallery Items */
.gallery-item {
  cursor: pointer;
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,10,20,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}
.gallery-item:hover::after { opacity: 1; }

/* Scroll Reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Mobile menu animation */
.menu-line { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 6px; }

/* Mobile menu open */
#mobileMenu.open { animation: fadeInUp 0.3s ease forwards; }

/* Gold text shimmer effect for hero */
@media (prefers-reduced-motion: no-preference) {
  .gold-shimmer {
    background: linear-gradient(90deg, #c9a84c 0%, #e2c07a 25%, #c9a84c 50%, #e2c07a 75%, #c9a84c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
  }
}

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

/* Mobile nav overlay */
#mobileMenu {
  animation: fadeInUp 0.3s ease forwards;
}
