/* Cosmic Luxury Hotel CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --gold-accent: #d4af37;
  --silver-accent: #c0c0c0;
  --cosmic-purple: #533483;
  --cosmic-blue: #4a90e2;
  --text-light: #ffffff;
  --text-muted: #b8b8cc;
  --text-dark: #2c2c54;
  --gradient-cosmic: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  --gradient-gold: linear-gradient(45deg, #d4af37, #f4d03f, #d4af37);
  --shadow-cosmic: 0 10px 30px rgba(26, 26, 46, 0.3);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --font-primary: 'Poppins', sans-serif;
  --font-elegant: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-light);
  background: var(--gradient-cosmic);
  background-attachment: fixed;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Bootstrap 5 Overrides */
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn {
  border-radius: var(--border-radius);
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
  background: linear-gradient(45deg, #f4d03f, #d4af37, #f4d03f);
}

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

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

.card {
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-cosmic);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-body {
  padding: 2rem;
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--border-radius);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  color: var(--text-light);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Navigation */
.navbar {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  box-shadow: var(--shadow-cosmic);
}

.navbar-brand {
  font-family: var(--font-elegant);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.1);
}

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

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-cosmic);
  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"><circle cx="200" cy="200" r="2" fill="%23d4af37" opacity="0.5"/><circle cx="800" cy="300" r="1.5" fill="%23c0c0c0" opacity="0.7"/><circle cx="300" cy="700" r="1" fill="%23d4af37" opacity="0.4"/><circle cx="700" cy="800" r="2.5" fill="%23c0c0c0" opacity="0.6"/></svg>') repeat;
  animation: starfield 20s linear infinite;
}

@keyframes starfield {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

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

.hero-title {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-buttons .btn {
  margin: 0 1rem 1rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

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

/* Rooms Section */
.room-card {
  height: 100%;
  cursor: pointer;
}

.room-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  position: relative;
  overflow: hidden;
}

.room-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(26, 26, 46, 0.7) 100%);
  transition: var(--transition);
}

.room-card:hover .room-image::before {
  background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.3) 100%);
}

.room-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-gold);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  z-index: 2;
}

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

.amenity-card:hover .amenity-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: var(--shadow-glow);
}

/* Contact Form */
.contact-form {
  background: rgba(26, 26, 46, 0.8);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-cosmic);
  backdrop-filter: blur(15px);
}

/* Footer */
.footer {
  background: var(--primary-color);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 3rem 0 1rem;
}

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

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
  }
}

.glow-animation {
  animation: glow 2s ease-in-out infinite;
}

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

.text-cosmic {
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(212, 175, 55, 0.3);
  border-left: 4px solid var(--gold-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0 0 1rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .navbar-nav {
    background: rgba(26, 26, 46, 0.95);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
  }
}

/* High-contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-muted: #ffffff;
    --gold-accent: #ffff00;
  }
  
  .form-control {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  html {
    scroll-behavior: auto;
  }
}