/* Modern Luxury Hotel Website - CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #2C1810;
  --secondary-color: #B8860B;
  --accent-color: #D4AF37;
  --text-light: #F5F5DC;
  --text-dark: #2C1810;
  --bg-light: #FAFAFA;
  --bg-dark: #1A1A1A;
  --shadow-light: rgba(44, 24, 16, 0.1);
  --shadow-medium: rgba(44, 24, 16, 0.2);
  --shadow-heavy: rgba(44, 24, 16, 0.3);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), #3D2419);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  --transition-fast: all 0.3s ease;
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
}

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

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

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

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

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

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

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

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

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

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-heavy);
  background: var(--gradient-primary);
  color: var(--text-light);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 134, 11, 0.5);
  background: var(--gradient-secondary);
  color: var(--text-dark);
}

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

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

.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-medium);
}

.form-control {
  border: 2px solid #E5E5E5;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
  background-color: #FFFFFF;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
  background-color: #FFFFFF;
}

.navbar {
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(44, 24, 16, 0.98);
  box-shadow: 0 2px 20px var(--shadow-medium);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-light);
}

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

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

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

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

/* Header/Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(44, 24, 16, 0.4), rgba(44, 24, 16, 0.6)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  color: var(--secondary-color);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.section-dark {
  background: var(--primary-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: 60px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Rooms Section */
.room-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #FFFFFF;
}

.room-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.room-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(44, 24, 16, 0.1) 100%);
  opacity: 0;
  transition: var(--transition-fast);
}

.room-card:hover .room-image::before {
  opacity: 1;
}

.room-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary-color);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
}

.room-content {
  padding: 2rem;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.amenity-tag {
  background: rgba(184, 134, 11, 0.1);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Services Section */
.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

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

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

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 24, 16, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

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

.gallery-overlay i {
  color: var(--text-light);
  font-size: 2rem;
}

/* Contact Section */
.contact-info {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 1rem;
  width: 30px;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-links a {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
  transition: var(--transition-fast);
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(184, 134, 11, 0.2);
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transition: var(--transition-smooth);
}

.animate-on-scroll.animated {
  opacity: 1;
  animation: fadeInUp 0.8s ease-out;
}

/* Mobile Menu */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

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

.navbar-toggler-icon {
  background-image: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 18px;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-light);
  transition: var(--transition-fast);
}

.navbar-toggler.collapsed .navbar-toggler-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.collapsed .navbar-toggler-icon::after {
  transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-toggler.collapsed .navbar-toggler-icon span {
  opacity: 0;
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(184, 134, 11, 0.3);
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    background-attachment: scroll;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .contact-info {
    padding: 2rem;
    margin-top: 2rem;
  }
  
  .room-content {
    padding: 1.5rem;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 2rem 0;
  }
  
  .room-image {
    height: 200px;
  }
  
  .hero {
    height: 100vh;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  html {
    scroll-behavior: auto;
  }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
  }
}