/* Celestial Luxury Hotel Theme CSS */

/* ===== CSS RESET & BASE STYLES ===== */
:root {
  --primary-color: #1a237e;
  --secondary-color: #ffd700;
  --accent-color: #3f51b5;
  --dark-primary: #0d1749;
  --light-primary: #534bae;
  --gold-light: #ffecb3;
  --text-dark: #212121;
  --text-light: #ffffff;
  --text-muted: #757575;
  --background-light: #fafafa;
  --shadow-soft: 0 4px 20px rgba(26, 35, 126, 0.1);
  --shadow-medium: 0 8px 30px rgba(26, 35, 126, 0.15);
  --shadow-strong: 0 12px 40px rgba(26, 35, 126, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

* {
  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(--background-light);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ===== BOOTSTRAP 5 OVERRIDES ===== */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  transition: var(--transition-smooth);
}

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

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

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

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

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

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
}

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

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

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

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* ===== HEADER & NAVIGATION ===== */
.navbar {
  background: rgba(26, 35, 126, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
}

.navbar.scrolled {
  background: rgba(26, 35, 126, 0.98);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.navbar-brand::before {
  content: '✦';
  font-size: 1.5rem;
  animation: sparkle 2s infinite;
}

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

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

.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
  background: rgba(255, 215, 0, 0.1);
}

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

.navbar-toggler {
  border: none;
  padding: 4px 8px;
  border-radius: var(--border-radius);
}

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 215, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="star" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ffd700;stop-opacity:1" /><stop offset="100%" style="stop-color:%23ffd700;stop-opacity:0" /></radialGradient></defs><circle cx="100" cy="200" r="2" fill="url(%23star)"><animate attributeName="opacity" values="0;1;0" dur="3s" repeatCount="indefinite" begin="0s"/></circle><circle cx="300" cy="100" r="1" fill="url(%23star)"><animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite" begin="1s"/></circle><circle cx="700" cy="300" r="1.5" fill="url(%23star)"><animate attributeName="opacity" values="0;1;0" dur="4s" repeatCount="indefinite" begin="2s"/></circle><circle cx="900" cy="150" r="1" fill="url(%23star)"><animate attributeName="opacity" values="0;1;0" dur="2.5s" repeatCount="indefinite" begin="0.5s"/></circle><circle cx="500" cy="400" r="2" fill="url(%23star)"><animate attributeName="opacity" values="0;1;0" dur="3.5s" repeatCount="indefinite" begin="1.5s"/></circle></svg>') repeat;
  opacity: 0.6;
  animation: float 20s infinite linear;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--text-light), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: slideInUp 1s ease-out 0.3s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.6s both;
}

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

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

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

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== ROOM CARDS ===== */
.room-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
}

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

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

.room-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(26, 35, 126, 0.8));
}

.room-price {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
}

.room-content {
  padding: 2rem;
}

.room-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.room-amenities {
  list-style: none;
  margin-bottom: 1.5rem;
}

.room-amenities li {
  padding: 0.3rem 0;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}

.room-amenities li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* ===== AMENITIES SECTION ===== */
.amenity-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.amenity-card:hover .amenity-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-medium);
}

.amenity-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.amenity-description {
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-primary) 100%);
  color: var(--text-light);
}

.contact-section .section-title {
  color: var(--text-light);
}

.contact-section .section-title::after {
  background: var(--secondary-color);
}

.contact-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  background: rgba(255, 215, 0, 0.1);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  color: var(--text-dark);
}

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

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

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

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sparkle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .contact-form {
    margin-top: 2rem;
  }
  
  .room-price {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gold {
  color: var(--secondary-color);
}

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

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

.border-gold {
  border-color: var(--secondary-color);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.rounded-lg {
  border-radius: var(--border-radius-lg);
}

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

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

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 215, 0, 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); }
}