:root {
  --primary: #FF6A00;
  --secondary: #FF8C42;
  --glow: #FF4500;
  --gold: #FFC857;
  --bg-dark: #070D1A;
  --bg-card: #111827;
  --text-main: #FFFFFF;
  --text-muted: #A0AEC0;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-cinematic: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  background-image: radial-gradient(circle at 15% 50%, rgba(255, 106, 0, 0.05), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(255, 69, 0, 0.05), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glow-text {
  background: linear-gradient(45deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 106, 0, 0.3);
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-fast);
  padding: 20px 0;
}

header.scrolled {
  background: rgba(7, 13, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 15px 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--glow);
  transition: var(--transition-fast);
  box-shadow: 0 0 10px var(--glow);
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 106, 0, 0.5);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/hero-cinematic-hotel.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  animation: cinematicZoom 20s infinite alternate linear;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7, 13, 26, 0.6) 0%, rgba(7, 13, 26, 1) 100%);
  z-index: 2;
}

.aurora {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 0.4;
  background: linear-gradient(45deg, rgba(255, 106, 0, 0.3) 0%, transparent 40%, rgba(255, 200, 87, 0.2) 80%);
  filter: blur(60px);
  animation: auroraFlow 15s infinite alternate ease-in-out;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.particle {
  position: absolute;
  background-color: var(--glow);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp 5s infinite linear;
  box-shadow: 0 0 10px var(--glow);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(45deg, var(--primary), var(--glow));
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.3);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 106, 0, 0.5);
}

/* Waterfall Scroll Animations (GSAP simulated) */
.waterfall-item {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.waterfall-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Specific Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Rooms Grid */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

.room-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-cinematic);
  transform-style: preserve-3d;
}

.room-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-cinematic);
}

.room-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(7, 13, 26, 0.9), transparent);
  transform: translateZ(30px);
}

.room-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.room-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.room-card:hover {
  box-shadow: 0 20px 40px rgba(255, 106, 0, 0.2);
}

/* Grid Spans for Masonry effect */
.room-card.large { grid-column: span 8; height: 500px; }
.room-card.small { grid-column: span 4; height: 500px; }
.room-card.medium { grid-column: span 6; height: 400px; }

/* Spa Section */
.spa-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.spa-text {
  flex: 1;
}

.spa-image {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.spa-image img {
  width: 100%;
  display: block;
}

.water-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.6s ease;
  pointer-events: none;
}

.spa-image:hover .water-ripple {
  opacity: 1;
  transform: scale(1.5);
}

/* Market Section */
.market-scroll {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.market-scroll::-webkit-scrollbar {
  height: 8px;
}
.market-scroll::-webkit-scrollbar-track {
  background: var(--bg-card);
  border-radius: 4px;
}
.market-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.market-card {
  min-width: 350px;
  scroll-snap-align: center;
  padding: 20px;
}

.market-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Reviews */
.reviews-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.reviews-track {
  display: flex;
  gap: 30px;
  width: calc(400px * 6);
  animation: scrollReviews 20s linear infinite;
}

.review-card {
  width: 400px;
  padding: 30px;
  border-left: 2px solid var(--primary);
}

.review-card p {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.stars {
  color: var(--gold);
  margin-bottom: 10px;
}

/* Booking Form */
.booking-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: span 2;
}

input, select, textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: white;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.2);
}

/* Simple text page (Terms, Privacy, About) */
.text-page {
  max-width: 900px;
  margin: 150px auto 50px;
  padding: 50px;
  line-height: 1.8;
}

.text-page h1, .text-page h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--bg-card);
  padding: 80px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations Keyframes */
@keyframes cinematicZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes auroraFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-400px * 3)); }
}

/* Page Header for subpages */
.page-header {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, var(--bg-dark), rgba(255, 106, 0, 0.1));
  margin-bottom: 50px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-top: 80px;
}

/* Contact Info */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 106, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Responsive Breakpoints */
/* Desktop */
@media (min-width: 1025px) {
  .room-card {
    transition: transform 0.5s ease;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .room-card.large, .room-card.small, .room-card.medium {
    grid-column: span 1;
    height: 350px;
  }
  .spa-content {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(7, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .rooms-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .market-scroll {
    flex-direction: column;
    overflow-x: hidden;
  }
  
  .market-card {
    min-width: 100%;
  }

  .waterfall-item {
    transform: translateY(50px);
  }
}