/* Modern Luxury Hotel Website CSS */

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

:root {
  --primary-color: #FF6B35;
  --secondary-color: #2C3E50;
  --accent-color: #F8F9FA;
  --dark-color: #1A1A1A;
  --light-color: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-medium: #6C757D;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), #FF8C42);
  --gradient-dark: linear-gradient(135deg, var(--secondary-color), #34495E);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Bootstrap Overrides */
.btn {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0;
  padding: 12px 30px;
  transition: all var(--transition-medium);
  border: 2px solid transparent;
}

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

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

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

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

.btn-secondary {
  background: var(--gradient-dark);
  border-color: var(--secondary-color);
  color: var(--light-color);
}

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-medium);
  padding: 0.5rem 0;
}

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

.navbar-nav .nav-link {
  color: var(--secondary-color) !important;
  font-weight: 500;
  margin: 0 15px;
  position: relative;
  transition: all var(--transition-medium);
}

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

.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;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.4));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

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

.hero-title {
  color: var(--light-color);
  font-weight: 300;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.6s both;
}

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

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

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

/* Cards */
.card {
  border: none;
  border-radius: 0;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  overflow: hidden;
}

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

.card-img-top {
  transition: transform var(--transition-slow);
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Rooms Section */
.room-card {
  position: relative;
  margin-bottom: 30px;
}

.room-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.room-card:hover .room-overlay {
  opacity: 1;
}

.room-info {
  text-align: center;
  color: var(--light-color);
}

/* Amenities */
.amenity-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--light-color);
  font-size: 2rem;
  transition: transform var(--transition-medium);
}

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

/* Forms */
.form-control {
  border: none;
  border-bottom: 2px solid #E9ECEF;
  border-radius: 0;
  padding: 15px 0;
  background: transparent;
  transition: border-color var(--transition-medium);
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
  background: transparent;
}

.form-label {
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.form-floating > label {
  color: var(--gray-medium);
}

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

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

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 107, 53, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

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

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

/* Testimonials */
.testimonial {
  text-align: center;
  padding: 40px 30px;
  background: var(--light-color);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  margin: 20px 0;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gray-medium);
}

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

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

.footer h5 {
  color: var(--light-color);
  margin-bottom: 30px;
  position: relative;
}

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

.footer a {
  color: #BDC3C7;
  text-decoration: none;
  transition: color var(--transition-medium);
}

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

.footer-bottom {
  border-top: 1px solid #34495E;
  margin-top: 40px;
  padding-top: 30px;
  text-align: center;
  color: #BDC3C7;
}

/* Booking Section */
.booking-form {
  background: var(--light-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

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

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

.text-primary {
  color: var(--primary-color) !important;
}

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

.overlay-primary {
  position: relative;
}

.overlay-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 107, 53, 0.1);
}

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

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

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

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

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

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

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 20px 0;
  }
  
  .navbar-nav .nav-link {
    margin: 10px 0;
  }
  
  .booking-form {
    margin-top: 0;
    padding: 30px 20px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .testimonial {
    padding: 30px 20px;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  .gallery-item img {
    height: 200px;
  }
}