/* Modern Cosmic Luxury Hotel Website Styles */

/* CSS Custom Properties */
:root {
  --primary-color: #1a237e;
  --primary-light: #3f4fb8;
  --primary-dark: #000051;
  --secondary-color: #ffc107;
  --secondary-light: #fff350;
  --secondary-dark: #c79100;
  --cosmic-gradient: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5c6bc0 100%);
  --golden-gradient: linear-gradient(45deg, #ffc107 0%, #ffb300 50%, #ff8f00 100%);
  --text-primary: #ffffff;
  --text-secondary: #e8eaf6;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --surface-dark: #0d1421;
  --surface-medium: #1e2a3a;
  --surface-light: #2c3e50;
  --shadow-cosmic: 0 4px 20px rgba(26, 35, 126, 0.3);
  --shadow-golden: 0 4px 20px rgba(255, 193, 7, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-dark);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: var(--golden-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

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

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

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-light);
  text-decoration: none;
}

/* Bootstrap 5 Overrides */
.container {
  max-width: 1200px;
}

.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 12px 30px;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, #5c6bc0 50%, #7986cb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
  color: var(--text-primary);
}

.btn-secondary {
  background: var(--golden-gradient);
  color: var(--text-dark);
  box-shadow: var(--shadow-golden);
}

.btn-secondary:hover {
  background: linear-gradient(45deg, var(--secondary-light) 0%, #ffca28 50%, #ffc107 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
  color: var(--text-dark);
}

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

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

/* Cards */
.card {
  background: var(--surface-medium);
  border: 1px solid rgba(255, 193, 7, 0.1);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-cosmic);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(26, 35, 126, 0.4);
  border-color: rgba(255, 193, 7, 0.3);
}

.card-body {
  padding: 2rem;
}

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

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

/* Forms */
.form-control {
  background: var(--surface-light);
  border: 2px solid rgba(255, 193, 7, 0.2);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  padding: 12px 16px;
  transition: var(--transition);
}

.form-control:focus {
  background: var(--surface-light);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
  color: var(--text-primary);
}

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

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-select {
  background: var(--surface-light);
  border: 2px solid rgba(255, 193, 7, 0.2);
  color: var(--text-primary);
}

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

/* Navigation */
.navbar {
  background: rgba(13, 20, 33, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 193, 7, 0.1);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(13, 20, 33, 0.98);
  box-shadow: var(--shadow-cosmic);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--golden-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.navbar-toggler {
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius);
}

.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='%23ffc107' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(13, 20, 33, 0.6), rgba(26, 35, 126, 0.4)), 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%" stop-color="%23ffc107" stop-opacity="1"/><stop offset="100%" stop-color="%23ffc107" stop-opacity="0"/></radialGradient></defs><circle cx="100" cy="100" r="1" fill="url(%23star)"/><circle cx="300" cy="200" r="1.5" fill="url(%23star)"/><circle cx="500" cy="150" r="1" fill="url(%23star)"/><circle cx="700" cy="300" r="1.5" fill="url(%23star)"/><circle cx="900" cy="100" r="1" fill="url(%23star)"/><circle cx="200" cy="400" r="1" fill="url(%23star)"/><circle cx="600" cy="450" r="1.5" fill="url(%23star)"/><circle cx="800" cy="500" r="1" fill="url(%23star)"/></svg>');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cosmic-gradient);
  opacity: 0.8;
  animation: cosmicPulse 4s ease-in-out infinite alternate;
}

@keyframes cosmicPulse {
  0% { opacity: 0.7; }
  100% { opacity: 0.9; }
}

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

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Floating particles animation */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: var(--secondary-color);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

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

.section:nth-child(even) {
  background: var(--surface-medium);
}

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

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

/* Features/Services Grid */
.feature-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--cosmic-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-cosmic);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

.feature-icon i {
  font-size: 2rem;
  color: var(--text-primary);
}

/* Rooms Gallery */
.room-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.room-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.room-card:hover .room-image {
  transform: scale(1.05);
}

.room-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(13, 20, 33, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.room-info h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.room-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  background: var(--surface-medium);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-cosmic);
}

/* Footer */
.footer {
  background: var(--surface-dark);
  border-top: 1px solid rgba(255, 193, 7, 0.2);
  padding: 3rem 0 1rem;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer h5 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

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

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

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

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--cosmic-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-cosmic);
}

.social-link:hover {
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
}

.social-link i {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 193, 7, 0.1);
  color: var(--text-muted);
}

/* 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 Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface-dark);
  display: flex;
  align-items: center;
  justify-content: 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, 193, 7, 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); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .navbar-nav {
    background: rgba(13, 20, 33, 0.95);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 70vh;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-secondary: #ffffff;
    --border-color: #ffffff;
  }
  
  .card {
    border: 2px solid var(--secondary-color);
  }
}

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