/* ===== Base & Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #0a1628;
  color: #ffffff;
  font-family: 'Montserrat', system-ui, sans-serif;
  overflow-x: hidden;
}

::selection {
  background: rgba(48, 213, 200, 0.3);
  color: #ffffff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: rgba(48, 213, 200, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(48, 213, 200, 0.5);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.1;
}

p {
  line-height: 1.8;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #30d5c8;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #30d5c8 !important;
}

/* ===== Buttons ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(48, 213, 200, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  opacity: 1;
}

/* ===== Form Inputs ===== */
.input-field {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 14px 16px;
  color: #ffffff;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  width: 100%;
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.input-field:hover {
  border-color: rgba(48, 213, 200, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.input-field:focus {
  border-color: #30d5c8;
  background: rgba(48, 213, 200, 0.05);
  box-shadow: 0 0 0 3px rgba(48, 213, 200, 0.1);
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.input-field option {
  background: #111f35;
  color: #ffffff;
}

input[type="date"].input-field {
  color-scheme: dark;
}

/* ===== Room Cards ===== */
.room-card {
  position: relative;
}

.room-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 0;
  transition: border-color 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.room-card:hover::after {
  border-color: rgba(48, 213, 200, 0.2);
}

/* ===== Feature Items ===== */
.feature-item {
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(4px);
}

/* ===== Location Cards ===== */
.location-card {
  transition: transform 0.3s ease, border-color 0.5s ease;
}

.location-card:hover {
  transform: translateY(-4px);
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  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; }

/* ===== Scroll Line Animation ===== */
@keyframes scrollDown {
  0% { top: -16px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.scroll-line {
  animation: scrollDown 2s ease-in-out infinite;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
  pointer-events: none;
}

#mobile-menu.open {
  pointer-events: all;
}

.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #30d5c8;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 100%;
}

.mobile-link:hover {
  color: #30d5c8 !important;
}

/* ===== Mobile Menu Animations ===== */
#bar1.open {
  transform: rotate(45deg) translate(4px, 4px);
}

#bar2.open {
  opacity: 0;
  transform: translateX(10px);
}

#bar3.open {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Parallax Subtle ===== */
@media (prefers-reduced-motion: no-preference) {
  .room-card img {
    will-change: transform;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* ===== Gold shimmer on hover ===== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-gold-shimmer {
  background: linear-gradient(90deg, #c9a84c 0%, #dfc06e 50%, #c9a84c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ===== Floating particles (decorative) ===== */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(48, 213, 200, 0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  50% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
}
