/* Cosmic Luxury Hotel CSS */

/* Custom Properties */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #e94560;
  --accent-color: #16213e;
  --light-color: #f8f9fa;
  --dark-color: #0f0f1d;
  --cosmic-purple: #6c63ff;
  --cosmic-blue: #4a90e2;
  --gold-accent: #ffd700;
  --text-light: #ffffff;
  --text-muted: #b8b9c7;
  --gradient-cosmic: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--cosmic-purple) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #ff6b7d 100%);
  --box-shadow-primary: 0 10px 30px rgba(26, 26, 46, 0.3);
  --box-shadow-hover: 0 15px 40px rgba(26, 26, 46, 0.4);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-primary: 12px;
  --border-radius-large: 20px;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--text-light), var(--cosmic-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius-primary);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  font-size: 0.9rem;
}

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

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

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

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

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

.btn-outline-light:hover {
  background: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-large);
  backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow-primary);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

/* Navigation */
.navbar {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--primary-color) !important;
  box-shadow: var(--box-shadow-primary);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: var(--transition-smooth);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

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

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

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.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, 255, 255, 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;
  background: var(--gradient-cosmic);
  display: flex;
  align-items: center;
  position: relative;
  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="200" cy="200" r="2" fill="%23ffffff" opacity="0.3"/><circle cx="800" cy="300" r="1" fill="%23e94560" opacity="0.5"/><circle cx="600" cy="600" r="3" fill="%236c63ff" opacity="0.4"/><circle cx="300" cy="800" r="1" fill="%23ffd700" opacity="0.3"/></svg>') repeat;
  animation: float 20s ease-in-out infinite;
}

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

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

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

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-bg {
  background: rgba(15, 15, 29, 0.5);
  backdrop-filter: blur(10px);
}

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

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

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

/* Forms */
.form-control {
  background: rgba(26, 26, 46, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-primary);
  color: var(--text-light);
  padding: 12px 20px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  background: rgba(26, 26, 46, 0.5);
  border-color: var(--secondary-color);
  color: var(--text-light);
  box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
}

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

.form-label {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 8px;
}

/* Rooms Section */
.room-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  border-radius: var(--border-radius-large);
}

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

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

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

.room-content h4 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.room-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

/* Features Section */
.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  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);
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  animation: pulse 2s infinite;
}

/* Contact Section */
.contact-info {
  background: rgba(26, 26, 46, 0.3);
  border-radius: var(--border-radius-large);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

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

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

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

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

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

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 0;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .navbar-nav {
    background: rgba(26, 26, 46, 0.95);
    border-radius: var(--border-radius-primary);
    padding: 1rem;
    margin-top: 1rem;
  }
  
  .room-overlay {
    padding: 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cosmic-purple);
}