/* Modern Luxury Hotel CSS - Bootstrap 5 Overrides */

/* CSS Custom Properties */
:root {
  --primary-color: #1E3A8A;
  --secondary-color: #F1F5F9;
  --accent-color: #3B82F6;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --gold: #F59E0B;
  --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --border-radius: 8px;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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-dark);
  background-color: var(--white);
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

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

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition-base);
}

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

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

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

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

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

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

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

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

.card-body {
  padding: 2rem;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-base);
  border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: var(--transition-base);
  position: relative;
}

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

.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background: var(--secondary-color);
}

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

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

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(30, 58, 138, 0.4), rgba(30, 58, 138, 0.6));
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
}

.hero-content {
  text-align: center;
  z-index: 2;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Booking Form */
.booking-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-heavy);
  margin-top: -100px;
  position: relative;
  z-index: 3;
}

.form-control {
  border: 2px solid #E5E7EB;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  outline: none;
}

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

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

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

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Room Cards */
.room-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-light);
  transition: var(--transition-base);
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.room-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

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

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

.room-price {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.room-info {
  padding: 2rem;
}

.room-amenities {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1rem 0;
}

.room-amenities li {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Services Grid */
.service-item {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  transition: var(--transition-base);
}

.service-item:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 300px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  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(30, 58, 138, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

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

.gallery-overlay i {
  color: var(--white);
  font-size: 3rem;
}

/* Contact Form */
.contact-form {
  background: var(--secondary-color);
  padding: 3rem;
  border-radius: 12px;
}

.contact-info {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 3rem;
  border-radius: 12px;
}

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

.contact-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 40px;
}

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

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
}

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

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

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

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

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

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--secondary-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Form Validation */
.form-control.is-invalid {
  border-color: #DC2626;
}

.form-control.is-valid {
  border-color: #059669;
}

.invalid-feedback {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 5px;
}

.valid-feedback {
  color: #059669;
  font-size: 0.875rem;
  margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .booking-form {
    margin-top: -50px;
    padding: 1.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .navbar-nav {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-light);
  }
  
  .contact-form,
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .gallery-item {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  .room-info {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-content .btn {
    width: auto;
  }
  
  .booking-form {
    padding: 1rem;
  }
  
  .service-item {
    padding: 1.5rem;
  }
  
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
}