/* Modern Luxury Hotel CSS - Elemental Design */

/* Custom CSS Variables */
:root {
  --primary-color: #D2691E;
  --secondary-color: #4682B4;
  --primary-dark: #B8651A;
  --secondary-dark: #2F5F8F;
  --primary-light: #E8A366;
  --secondary-light: #7BA3CC;
  --earth-brown: #8B4513;
  --water-blue: #E0F6FF;
  --fire-orange: #FF6B35;
  --air-gray: #F5F5F5;
  --dark-text: #2C3E50;
  --light-text: #ECF0F1;
  --accent-gold: #FFD700;
  --shadow-light: rgba(210, 105, 30, 0.1);
  --shadow-medium: rgba(210, 105, 30, 0.2);
  --shadow-dark: rgba(210, 105, 30, 0.3);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark-text);
  background-color: #fff;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 2rem;
  transition: var(--transition);
  border: none;
  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.2), transparent);
  transition: left 0.5s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--earth-brown));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-dark);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(70, 130, 180, 0.2);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), #1E4B7A);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(70, 130, 180, 0.3);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Card Overrides */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  padding: 1.5rem;
}

/* Form Overrides */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem var(--shadow-light);
}

.form-select {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem var(--shadow-light);
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(210, 105, 30, 0.1);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--dark-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0.5rem;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(210, 105, 30, 0.2)), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23D2691E"/><stop offset="50%" stop-color="%234682B4"/><stop offset="100%" stop-color="%23D2691E"/></linearGradient></defs><rect width="1200" height="600" fill="url(%23bg)"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content h1 {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
  margin: 0.5rem;
}

/* Elemental Design Sections */
.elemental-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.elemental-section.earth {
  background: linear-gradient(135deg, var(--air-gray), white);
}

.elemental-section.water {
  background: linear-gradient(135deg, var(--water-blue), white);
}

.elemental-section.fire {
  background: linear-gradient(135deg, #FFF5F0, white);
}

.elemental-section.air {
  background: linear-gradient(135deg, #F0F8FF, white);
}

/* Room Cards */
.room-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  transition: var(--transition);
  height: 100%;
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

.room-card:hover img {
  transform: scale(1.05);
}

.room-card-body {
  padding: 1.5rem;
}

.room-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Amenities Grid */
.amenity-item {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
  height: 100%;
}

.amenity-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.amenity-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

/* Booking Form */
.booking-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

.form-floating label {
  color: #6c757d;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-color);
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  text-align: center;
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-light);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: serif;
}

.testimonial-rating {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-text), #34495e);
  color: var(--light-text);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  color: white;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .elemental-section {
    padding: 3rem 0;
  }
  
  .booking-form {
    margin-top: -50px;
    padding: 1.5rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .amenity-item {
    padding: 1.5rem 0.5rem;
  }
  
  .room-card img {
    height: 200px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #000;
    border: 2px solid #fff;
  }
  
  .btn-secondary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }
}