/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(245, 239, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123, 45, 142, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(123, 45, 142, 0.1);
}
.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #511d5a;
  border-radius: 9999px;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(123, 45, 142, 0.08); color: #7b2d8e; }
.mobile-nav-link { color: #511d5a; font-size: 1rem; }
.mobile-nav-link:hover { background: rgba(123, 45, 142, 0.06); color: #7b2d8e; }

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

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #3e1644 0%, #7b2d8e 40%, #511d5a 70%, #230b27 100%);
  position: relative;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.pexels.com/photos/4712152/pexels-photo-4712152.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: luminosity;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(35, 11, 39, 0.85) 0%, rgba(123, 45, 142, 0.6) 50%, rgba(35, 11, 39, 0.85) 100%);
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hero-blob--1 { width: 500px; height: 500px; background: rgba(250, 204, 21, 0.15); top: -100px; right: -100px; }
.hero-blob--2 { width: 400px; height: 400px; background: rgba(167, 109, 173, 0.2); bottom: -50px; left: -50px; }
.hero-blob--3 { width: 200px; height: 200px; background: rgba(250, 204, 21, 0.1); top: 50%; left: 40%; }

.hero-content { position: relative; z-index: 10; }

.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(250, 204, 21, 0); }
}

/* Hero floating cards */
.hero-card {
  animation: floatMain 6s ease-in-out infinite;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}
@keyframes floatMain {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.hero-float {
  animation: floatCard 5s ease-in-out infinite;
}
.hero-float--1 { animation-delay: 0s; }
.hero-float--2 { animation-delay: 1.5s; }
.hero-float--3 { animation-delay: 3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* Scroll indicator */
.scroll-indicator {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white; animation: scrollBounce 2s ease-in-out infinite;
  transition: background 0.2s;
}
.scroll-indicator:hover { background: rgba(255, 255, 255, 0.25); }
@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 9999px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #3e1644; font-weight: 800; font-size: 1rem;
  box-shadow: 0 8px 30px rgba(234, 179, 8, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(234, 179, 8, 0.45); }
.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12); border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: white; font-weight: 700; font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }

/* ========== FEATURES ========== */
.feature-card { transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-4px); }

/* ========== ROOMS ========== */
.rooms-bg-pattern {
  background-image: radial-gradient(circle at 2px 2px, rgba(123, 45, 142, 0.15) 1px, transparent 0);
  background-size: 32px 32px;
}
.room-card { transition: transform 0.4s, box-shadow 0.4s; }
.room-card:hover { transform: translateY(-6px); }
.room-tag {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: rgba(123, 45, 142, 0.08); color: #7b2d8e;
  font-size: 0.75rem; font-weight: 700;
}
.room-tag--amber { background: rgba(234, 179, 8, 0.15); color: #a16207; }
.room-amenity {
  font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 9999px;
  background: #f5eff7; color: #511d5a; font-weight: 600;
}

/* ========== AMENITIES ========== */
.amenity-item { transition: transform 0.2s; }
.amenity-item:hover { transform: translateX(4px); }

/* ========== GALLERY ========== */
.gallery-item { overflow: hidden; position: relative; }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(35, 11, 39, 0.3) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s; border-radius: inherit;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-img { transition: transform 0.5s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.08); }

/* ========== CTA ========== */
.cta-blob { transition: transform 0.5s; }

/* ========== CONTACT FORM ========== */
.input-field {
  font-size: 0.95rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.input-field:focus { box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15); }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 9999px;
  background: linear-gradient(135deg, #7b2d8e 0%, #511d5a 100%);
  color: white; font-weight: 800; font-size: 1rem;
  box-shadow: 0 8px 30px rgba(123, 45, 142, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(123, 45, 142, 0.4); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 9999px;
  background: #3e1644; color: white; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 30px rgba(62, 22, 68, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(62, 22, 68, 0.4); }
.btn-cta-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 9999px;
  background: rgba(62, 22, 68, 0.1); border: 2px solid rgba(62, 22, 68, 0.3);
  color: #3e1644; font-weight: 700; font-size: 1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-cta-secondary:hover { background: rgba(62, 22, 68, 0.15); border-color: rgba(62, 22, 68, 0.5); transform: translateY(-2px); }

/* ========== SCROLL REVEAL ========== */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  #mobileMenu { max-h: 0; }
  #mobileMenu.open { max-h: 500px; }
}

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