/* Modern Luxury Hotel CSS */

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

:root {
  --primary-color: #1a365d;
  --secondary-color: #e53e3e;
  --accent-gold: #d4af37;
  --light-gray: #f8f9fa;
  --dark-gray: #2d3748;
  --white: #ffffff;
  --text-light: #718096;
  --shadow-light: 0 2px 10px rgba(26, 54, 93, 0.1);
  --shadow-medium: 0 4px 20px rgba(26, 54, 93, 0.15);
  --shadow-heavy: 0 8px 30px rgba(26, 54, 93, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), #2d4a69);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #c53030);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --border-radius: 8px;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  font-size: 16px;
  overflow-x: hidden;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary-color);
}

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

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

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

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  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: var(--white);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, #2d4a69, var(--primary-color));
}

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

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, #c53030, var(--secondary-color));
}

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

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

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

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

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

.card-body {
  padding: 2rem;
}

/* Forms */
.form-control {
  border-radius: var(--border-radius);
  border: 2px solid #e2e8f0;
  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.25rem rgba(26, 54, 93, 0.15);
}

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

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

.navbar.scrolled {
  background: var(--primary-color);
  box-shadow: var(--shadow-medium);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

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

.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  position: relative;
}

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

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

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

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

.navbar-toggler-icon {
  background-image: none;
  width: 25px;
  height: 20px;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
  content: '';
  display: block;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.navbar-toggler-icon::before {
  position: absolute;
  top: 0;
  width: 100%;
}

.navbar-toggler-icon::after {
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(26, 54, 93, 0.6), rgba(26, 54, 93, 0.6)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f8f9fa" width="1200" height="800"/><text fill="%23718096" x="600" y="400" text-anchor="middle" font-size="24">Hero Background Image</text></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
}

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

/* Features Grid */
.feature-item {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
  box-shadow: var(--shadow-light);
}

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

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

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

.room-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 54, 93, 0.9));
  color: var(--white);
  padding: 2rem;
  transform: translateY(50%);
  transition: all var(--transition-fast);
}

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

/* Testimonials */
.testimonial-item {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  position: relative;
  margin: 1rem;
}

.testimonial-item::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--accent-gold);
  font-family: serif;
}

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

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

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

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

.form-error {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.form-success {
  color: #38a169;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

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

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

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-on-scroll {
  opacity: 0;
  transition: all var(--transition-medium);
}

.animate-on-scroll.animated {
  opacity: 1;
}

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

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  box-shadow: var(--shadow-medium);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
  color: var(--white);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    background-attachment: scroll;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .navbar-collapse {
    background: var(--primary-color);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
  }
  
  .feature-item {
    margin-bottom: 2rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section {
    background-size: cover;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --light-gray: #2d3748;
    --dark-gray: #e2e8f0;
    --text-light: #a0aec0;
  }
  
  body {
    background-color: #1a202c;
    color: var(--dark-gray);
  }
  
  .section-bg-light {
    background: #2d3748;
  }
  
  .card {
    background: #2d3748;
    color: var(--dark-gray);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-to-top,
  .btn {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .hero-section {
    height: auto;
    padding: 2rem 0;
    background: #fff;
    color: #000;
  }
}