/* Cosmic Luxury Hotel - CSS Styles */

/* Custom Properties */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #e94560;
  --gold-accent: #ffd700;
  --text-light: #ffffff;
  --text-muted: #b8b8b8;
  --cosmic-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --cosmic-radial: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  --shadow-cosmic: 0 10px 30px rgba(26, 26, 46, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-light);
  background: var(--primary-color);
  background-image: var(--cosmic-radial), 
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(233, 69, 96, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(45deg, var(--gold-accent), #fff, var(--gold-accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

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

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

p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.875rem 2rem;
  border: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-color), #ff6b8a);
  color: white;
  box-shadow: var(--shadow-cosmic);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #d63851, var(--accent-color));
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(233, 69, 96, 0.4);
  color: white;
}

.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(-2px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.card {
  background: rgba(22, 33, 62, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-cosmic);
  border-color: rgba(255, 215, 0, 0.3);
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-light);
  padding: 0.875rem 1rem;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 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(255, 215, 0, 0.1);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

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

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-decoration: none;
}

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

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

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.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 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--cosmic-gradient);
  overflow: hidden;
}

.hero::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="100" cy="100" r="2" fill="%23ffd700" opacity="0.6"><animate attributeName="opacity" values="0.6;1;0.6" dur="2s" repeatCount="indefinite"/></circle><circle cx="300" cy="200" r="1.5" fill="%23ffffff" opacity="0.4"><animate attributeName="opacity" values="0.4;0.8;0.4" dur="3s" repeatCount="indefinite"/></circle><circle cx="500" cy="150" r="1" fill="%23ffd700" opacity="0.7"><animate attributeName="opacity" values="0.7;1;0.7" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="700" cy="300" r="2" fill="%23ffffff" opacity="0.5"><animate attributeName="opacity" values="0.5;0.9;0.5" dur="4s" repeatCount="indefinite"/></circle><circle cx="800" cy="100" r="1.5" fill="%23ffd700" opacity="0.8"><animate attributeName="opacity" values="0.8;1;0.8" dur="1.8s" repeatCount="indefinite"/></circle></svg>') center/cover;
  pointer-events: none;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* Animations */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

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

.float-animation {
  animation: float 6s ease-in-out infinite;
}

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

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

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-accent);
  margin: 1rem auto;
  border-radius: 2px;
}

/* Features/Amenities */
.feature-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
  border-radius: var(--border-radius);
  background: rgba(22, 33, 62, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(22, 33, 62, 0.8);
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-cosmic);
}

.feature-icon {
  font-size: 3rem;
  color: var(--gold-accent);
  margin-bottom: 1.5rem;
  display: block;
}

/* Rooms Gallery */
.room-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--secondary-color);
  transition: var(--transition-smooth);
}

.room-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-cosmic);
}

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

.room-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1));
  opacity: 0;
  transition: var(--transition-smooth);
}

.room-card:hover .room-image::after {
  opacity: 1;
}

/* Contact Form */
.contact-form {
  background: rgba(22, 33, 62, 0.8);
  border-radius: var(--border-radius);
  padding: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.form-floating > label {
  color: var(--text-muted);
}

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

/* Footer */
.footer {
  background: var(--primary-color);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

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

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

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

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

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-accent);
  margin: 0 0.5rem;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  background: var(--gold-accent);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
    text-align: center;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .navbar-nav {
    background: rgba(26, 26, 46, 0.95);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  :root {
    font-size: 14px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
}

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

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

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

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

/* Loading Animation */
.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-out;
}

.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(--gold-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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