/* Mysterious Luxury Hotel - Custom Styles */

/* CSS Variables */
:root {
  --primary-color: #2C1810;
  --secondary-color: #D4AF37;
  --text-light: #F5F5DC;
  --text-dark: #2C1810;
  --accent-color: #8B4513;
  --gradient-primary: linear-gradient(135deg, #2C1810 0%, #3D2A1F 100%);
  --gradient-secondary: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
  --shadow-dark: 0 10px 30px rgba(44, 24, 16, 0.3);
  --shadow-light: 0 5px 15px rgba(212, 175, 55, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', 'Georgia', serif;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--gradient-primary);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary-color);
}

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

p, .lead {
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: var(--text-dark);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #F4D03F 0%, #D4AF37 100%);
  color: var(--text-dark);
}

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

.btn-outline-light:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.card {
  background: rgba(44, 24, 16, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(44, 24, 16, 0.4);
  border-color: var(--secondary-color);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.form-control {
  background: rgba(245, 245, 220, 0.1);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control::placeholder {
  color: rgba(245, 245, 220, 0.6);
}

.form-control:focus {
  background: rgba(245, 245, 220, 0.15);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  color: var(--text-light);
}

.form-label {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
  background: rgba(44, 24, 16, 0.95) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(44, 24, 16, 0.98) !important;
  box-shadow: var(--shadow-dark);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(212, 175, 55, 0.1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

.navbar-toggler {
  border: none;
  padding: 0;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(44, 24, 16, 0.4), rgba(44, 24, 16, 0.6)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23D4AF37" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="%232C1810"/><rect width="100%" height="100%" fill="url(%23grain)"/></svg>')
              center/cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(44, 24, 16, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* 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(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  transform: translateX(-50%);
}

/* Room Cards */
.room-card {
  height: 100%;
  overflow: hidden;
}

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

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

.room-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* Amenities */
.amenity-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: block;
  transition: var(--transition);
}

.amenity-card:hover .amenity-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 24, 16, 0.5);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Contact Form */
.contact-form {
  background: rgba(44, 24, 16, 0.8);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(10px);
}

/* Footer */
footer {
  background: var(--primary-color);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 3rem 0 1rem;
}

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

.footer-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Utility Classes */
.text-gold {
  color: var(--secondary-color);
}

.bg-dark-luxury {
  background: var(--gradient-primary);
}

.border-gold {
  border-color: var(--secondary-color) !important;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 0.8s linear infinite;
}

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

/* Error States */
.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success States */
.form-control.is-valid {
  border-color: #28a745;
}

.valid-feedback {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}