/* Hotel Luxury Website - Modern Design CSS */

/* === ROOT VARIABLES === */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --accent-gold: #F1C40F;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  --text-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-dark: #1A252F;
  --shadow-light: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 5px 20px rgba(44, 62, 80, 0.15);
  --shadow-heavy: 0 10px 40px rgba(44, 62, 80, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* === BOOTSTRAP 5 OVERRIDES === */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  padding: 12px 30px;
}

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

.btn-primary:hover {
  background-color: #233647;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
  background-color: #C0392B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

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

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  overflow: hidden;
}

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

.form-control {
  border: 2px solid #E9ECEF;
  border-radius: var(--border-radius);
  padding: 12px 15px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

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

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

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

.display-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -2px;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  font-weight: 300;
}

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

/* === HEADER & NAVIGATION === */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  box-shadow: var(--shadow-light);
  padding: 0.5rem 0;
}

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

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 1rem;
  position: relative;
  transition: var(--transition);
}

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

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

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

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

/* === HERO SECTION === */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(231, 76, 60, 0.6)), 
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><rect fill="%23f8f9fa" width="1000" height="600"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.3);
}

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

.hero-title {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-gold));
  border-radius: 2px;
}

/* === ROOMS SECTION === */
.room-card {
  height: 100%;
  transition: var(--transition);
}

.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);
}

.room-features {
  list-style: none;
  padding: 0;
}

.room-features li {
  padding: 0.25rem 0;
  color: var(--text-light);
}

.room-features li::before {
  content: '✓';
  color: var(--secondary-color);
  margin-right: 10px;
  font-weight: bold;
}

/* === AMENITIES SECTION === */
.amenity-item {
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.amenity-item:hover {
  background-color: white;
  box-shadow: var(--shadow-light);
  transform: translateY(-5px);
}

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

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

/* === BOOKING FORM === */
.booking-form {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: 2rem;
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-error {
  color: var(--secondary-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

/* === 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-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

/* === TESTIMONIALS === */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin: 1rem;
  text-align: center;
  position: relative;
}

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

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

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

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

/* === FOOTER === */
.footer {
  background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
  color: var(--text-white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

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

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  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(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

/* === SCROLL TO TOP BUTTON === */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* === LOADING SPINNER === */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
    text-align: center;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .booking-form {
    margin-top: 0;
    margin-bottom: 2rem;
  }
  
  .navbar-nav {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-light);
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .amenity-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 1rem;
  }
  
  .booking-form {
    padding: 1.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .testimonial-card {
    margin: 0.5rem;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === FOCUS STYLES === */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* === PRINT STYLES === */
@media print {
  .navbar,
  .scroll-top,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero {
    height: auto;
    padding: 2rem 0;
    background: none !important;
  }
  
  .hero-content {
    color: var(--text-dark) !important;
  }
}