/* =================================================================
   Mysterious Luxury Hotel - CSS Styles
   Theme Colors: #1a1a2e (Primary), #16213e (Secondary)
================================================================= */

/* CSS Custom Properties */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-gold: #d4af37;
  --accent-silver: #c0c0c0;
  --text-light: #ffffff;
  --text-muted: #b8b9ba;
  --text-dark: #2c2c54;
  --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --gradient-overlay: linear-gradient(45deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.8));
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 25px rgba(0, 0, 0, 0.2);
  --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.3);
  --border-radius: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--primary-color);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-silver);
  text-decoration: none;
}

/* Bootstrap 5 Overrides */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.btn {
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 30px;
  transition: var(--transition-smooth);
  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: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  background: var(--accent-gold);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

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

.btn-outline-primary:hover {
  background: var(--accent-gold);
  color: var(--primary-color);
  border-color: var(--accent-gold);
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 12px 15px;
  transition: var(--transition-smooth);
}

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

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Navigation */
.navbar {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--primary-color);
  box-shadow: var(--shadow-medium);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-smooth);
}

.navbar-brand:hover {
  color: var(--accent-silver);
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  position: relative;
}

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

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

.navbar-nav .nav-link:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212, 175, 55, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(22, 33, 62, 0.8)), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3') center/cover no-repeat;
  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 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  animation: mysteryglow 8s ease-in-out infinite alternate;
}

@keyframes mysteryglow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

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

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

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--accent-gold);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-gold);
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.scroll-indicator:hover {
  color: var(--accent-silver);
  transform: translateX(-50%) scale(1.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Sections */
section {
  padding: 80px 0;
  position: relative;
}

.section-bg-alt {
  background: var(--secondary-color);
}

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

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent-gold);
  margin: 1rem auto;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--accent-gold);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Rooms Grid */
.room-card {
  height: 100%;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
}

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

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

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

.room-price {
  color: var(--accent-gold);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Services */
.service-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  transition: var(--transition-bounce);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-heavy);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.service-item:hover .service-icon {
  color: var(--accent-silver);
  transform: scale(1.2) rotate(5deg);
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-floating {
  margin-bottom: 1rem;
}

.form-floating label {
  color: var(--text-muted);
}

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

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

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.7);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

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

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

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

.gallery-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

/* Footer */
.footer {
  background: var(--primary-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

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

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 50%;
  transition: var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
  background: var(--accent-gold);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-medium);
}

/* Loading Animation */
.loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loading.show {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-top: 3px solid var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .navbar-nav {
    background: rgba(26, 26, 46, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .service-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-muted: #ffffff;
    --shadow-light: 0 2px 10px rgba(255, 255, 255, 0.1);
    --shadow-medium: 0 5px 25px rgba(255, 255, 255, 0.2);
  }
}

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