/* Hotel Cosmic Elegance - CSS Styles */

/* Custom CSS Variables */
:root {
  --primary-color: #1a237e;
  --primary-dark: #0d1650;
  --primary-light: #3f4fb8;
  --secondary-color: #ffd700;
  --secondary-dark: #e6c200;
  --accent-color: #4a148c;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-light: #ecf0f1;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #1a1a2e;
  --shadow-light: 0 2px 10px rgba(26, 35, 126, 0.1);
  --shadow-medium: 0 8px 25px rgba(26, 35, 126, 0.15);
  --shadow-heavy: 0 15px 35px rgba(26, 35, 126, 0.2);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-cosmic: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
  --gradient-gold: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

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

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

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

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

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

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

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

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

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

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

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

/* Card Overrides */
.card {
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
  overflow: hidden;
}

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

.card-header {
  background: var(--gradient-primary);
  color: white;
  border-bottom: none;
  padding: 1.5rem;
  font-weight: 600;
}

/* Form Overrides */
.form-control {
  border-radius: 15px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 35, 126, 0.1);
  transition: all var(--transition-fast);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  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-primary);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white;
  background: var(--gradient-primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.8) 0%, rgba(74, 20, 140, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  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"><defs><radialGradient id="star" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffd700" stop-opacity="0.8"/><stop offset="100%" stop-color="%23ffd700" stop-opacity="0"/></radialGradient></defs><circle cx="100" cy="150" r="2" fill="url(%23star)"/><circle cx="300" cy="100" r="1" fill="url(%23star)"/><circle cx="500" cy="200" r="1.5" fill="url(%23star)"/><circle cx="700" cy="80" r="1" fill="url(%23star)"/><circle cx="900" cy="180" r="2" fill="url(%23star)"/></svg>') repeat;
  animation: twinkle 20s infinite linear;
  opacity: 0.3;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
  animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 300;
}

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

.section-dark {
  background: var(--gradient-cosmic);
  color: white;
}

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

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

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

/* Room Cards */
.room-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  margin-bottom: 2rem;
}

.room-card:hover {
  transform: translateY(-15px) rotate(2deg);
  box-shadow: var(--shadow-heavy);
}

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

.room-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(26, 35, 126, 0.3) 100%);
  transition: all var(--transition-fast);
}

.room-card:hover .room-image::before {
  background: linear-gradient(45deg, rgba(255, 215, 0, 0.2) 0%, rgba(26, 35, 126, 0.4) 100%);
}

.room-content {
  padding: 2rem;
}

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

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

.amenity-item:hover .amenity-icon {
  transform: scale(1.1) rotate(10deg);
  background: var(--gradient-gold);
  color: var(--primary-dark);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-cosmic);
  border-radius: 22px;
  z-index: -1;
}

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

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

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

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

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: all var(--transition-fast);
}

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

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

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
    padding: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-nav {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    margin-top: 1rem;
    box-shadow: var(--shadow-light);
  }
  
  .room-card:hover {
    transform: translateY(-10px);
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 70vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .amenity-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid rgba(26, 35, 126, 0.5);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.6);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.7);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}