/* Dramatic Luxury Hotel Website - CSS */
:root {
  --primary-color: #8B0000;
  --secondary-color: #2F4F4F;
  --accent-gold: #D4AF37;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #212529;
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-dramatic: 0 10px 30px rgba(139, 0, 0, 0.3);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

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

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: none;
  border-radius: 0;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: #a00000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-dramatic);
  color: var(--text-light);
}

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

.btn-secondary:hover {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

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

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

/* Card Overrides */
.card {
  border: none;
  border-radius: 0;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dramatic);
}

.card-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 1.5rem;
}

/* Navigation */
.navbar {
  background: rgba(33, 37, 41, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(33, 37, 41, 0.98);
  box-shadow: var(--shadow-subtle);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  transition: var(--transition-base);
}

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

.navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

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

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

/* Hero Section */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.1s forwards;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-primary {
  background: linear-gradient(135deg, var(--primary-color), #a00000);
  color: var(--text-light);
}

.section-secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

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

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

/* Room Cards */
.room-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
}

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

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

.room-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: var(--text-light);
}

.room-price {
  color: var(--accent-gold);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-primary);
}

/* Forms */
.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 0;
  padding: 12px 15px;
  font-size: 1rem;
  transition: var(--transition-base);
  background-color: transparent;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.1);
  background-color: transparent;
}

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

.form-floating .form-control {
  border-radius: 0;
}

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

.invalid-feedback {
  display: block;
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--text-light);
  padding: 2rem;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-dramatic);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

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

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer h5 {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-primary);
}

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

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

.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  margin-right: 10px;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background-color: var(--accent-gold);
  transform: translateY(-3px);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(139, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

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

/* Loading Animation */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-light);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(33, 37, 41, 0.98);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.mobile-menu.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.mobile-menu-content {
  text-align: center;
}

.mobile-menu-content .nav-link {
  display: block;
  padding: 1rem 0;
  font-size: 1.5rem;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-base);
}

.mobile-menu-content .nav-link:hover {
  color: var(--primary-color);
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .hero-section {
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color);
}

.text-secondary-custom {
  color: var(--secondary-color);
}

.text-gold {
  color: var(--accent-gold);
}

.bg-primary-custom {
  background-color: var(--primary-color);
}

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

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

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

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
}