/* Modern Luxury Hotel CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #00D4FF;
  --secondary-color: #1A1A1A;
  --light-gray: #F8F9FA;
  --dark-gray: #343A40;
  --white: #FFFFFF;
  --black: #000000;
  --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
  --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  --border-radius: 8px;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'Georgia', 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(--secondary-color);
  background-color: var(--white);
  font-size: 16px;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -1px;
}

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

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

p {
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
  line-height: 1.7;
}

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 12px 30px;
  border: none;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

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

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

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

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

.btn-dark {
  background: var(--gradient-dark);
  border: 2px solid var(--secondary-color);
  color: var(--white);
}

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--secondary-color);
  text-decoration: none;
  letter-spacing: 2px;
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  margin: 0 1rem;
  padding: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-color);
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
  left: 0;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(26, 26, 26, 0.4), rgba(0, 212, 255, 0.1)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(26, 26, 26, 0.2) 100%);
}

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

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

.hero p {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

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

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  overflow: hidden;
  height: 100%;
}

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

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Room Cards */
.room-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.room-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.room-card:hover .room-card-overlay {
  opacity: 1;
}

.room-card-content {
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  transition: transform var(--transition-medium);
}

.room-card:hover .room-card-content {
  transform: translateY(0);
}

/* Forms */
.form-control {
  border: 2px solid #E9ECEF;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
  outline: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-error {
  color: #DC3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-control.error {
  border-color: #DC3545;
}

.form-control.success {
  border-color: #28A745;
}

/* Booking Widget */
.booking-widget {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  padding: 2rem;
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

/* Testimonials */
.testimonial {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin: 1rem;
  transition: transform var(--transition-medium);
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary-color);
}

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

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

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

.footer-social {
  font-size: 1.5rem;
  margin: 0 1rem;
}

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

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

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

.overlay {
  position: relative;
}

.overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.5);
  z-index: 1;
}

.overlay > * {
  position: relative;
  z-index: 2;
}

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(26, 26, 26, 0.95);
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.mobile-menu.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.mobile-menu-content {
  text-align: center;
}

.mobile-menu-content a {
  display: block;
  color: var(--white);
  font-size: 1.5rem;
  margin: 1rem 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-menu-content a:hover {
  color: var(--primary-color);
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    background-attachment: scroll;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .booking-widget {
    margin-top: -50px;
    padding: 1.5rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0;
    padding: 0.75rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .testimonial {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar, .footer {
    display: none;
  }
  
  .hero {
    height: auto;
    padding: 2rem 0;
    background: none;
    color: var(--secondary-color);
  }
  
  .hero h1, .hero p {
    color: var(--secondary-color);
  }
}