/* Modern Luxury Hotel Website - CSS */

/* Bootstrap 5 Overrides */
:root {
  --bs-primary: #1a237e;
  --bs-primary-rgb: 26, 35, 126;
  --bs-secondary: #ff6f00;
  --bs-secondary-rgb: 255, 111, 0;
  --bs-success: #28a745;
  --bs-info: #17a2b8;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --luxury-gold: #d4af37;
  --luxury-cream: #f5f3f0;
  --luxury-gray: #6c757d;
  --luxury-dark-gray: #495057;
  --shadow-elegant: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--bs-dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

/* Typography */
.display-1, .display-2, .display-3 {
  font-family: var(--font-primary);
  font-weight: 700;
}

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

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

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

/* Button Overrides */
.btn {
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

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

.btn-secondary {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: white;
}

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

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

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

.btn-luxury {
  background: linear-gradient(45deg, var(--luxury-gold), #f4d03f);
  border: none;
  color: white;
  font-weight: 600;
}

.btn-luxury:hover {
  background: linear-gradient(45deg, #b8860b, var(--luxury-gold));
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Navigation */
.navbar {
  transition: var(--transition-smooth);
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.98);
}

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

.navbar-nav .nav-link {
  color: var(--luxury-dark-gray);
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

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

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

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

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

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

.mobile-menu-icon {
  width: 25px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.mobile-menu-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--bs-primary);
  border-radius: 1px;
  opacity: 1;
  left: 0;
  transition: var(--transition-smooth);
}

.mobile-menu-icon span:nth-child(1) {
  top: 0px;
}

.mobile-menu-icon span:nth-child(2) {
  top: 9px;
}

.mobile-menu-icon span:nth-child(3) {
  top: 18px;
}

.mobile-menu-icon.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.mobile-menu-icon.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-icon.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(26, 35, 126, 0.7), rgba(26, 35, 126, 0.7)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  color: white;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

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

.card-img-top {
  transition: var(--transition-smooth);
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--bs-primary);
  margin-bottom: 1rem;
}

.card-luxury {
  background: linear-gradient(135deg, var(--luxury-cream), white);
  border: 1px solid var(--luxury-gold);
}

/* Forms */
.form-control {
  border-radius: 0;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

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

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  color: var(--bs-primary);
}

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

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

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

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bs-primary);
  position: relative;
  display: inline-block;
}

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

.section-title p {
  color: var(--luxury-gray);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

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

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

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  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(26, 35, 126, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.gallery-overlay h5 {
  color: white;
  text-align: center;
  margin: 0;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--bs-primary), #0d47a1);
  color: white;
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--luxury-gold);
  margin-bottom: 1.5rem;
}

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

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

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

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--bs-secondary);
  color: white;
  transform: translateY(-3px);
}

/* 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 {
  animation: fadeIn 0.8s ease-out;
}

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

/* Utility Classes */
.bg-luxury {
  background: linear-gradient(135deg, var(--luxury-cream), white);
}

.bg-primary-gradient {
  background: linear-gradient(135deg, var(--bs-primary), #0d47a1);
}

.bg-secondary-gradient {
  background: linear-gradient(135deg, var(--bs-secondary), #e65100);
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.border-luxury {
  border: 2px solid var(--luxury-gold);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 70vh;
    background-attachment: scroll;
  }
  
  .navbar-collapse {
    background: white;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    box-shadow: var(--shadow-elegant);
  }
}

@media (max-width: 767.98px) {
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .social-icons {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .gallery-item img {
    height: 200px;
  }
}