/* Hotel Modern Luxury Theme - CSS */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --accent-gold: #F39C12;
  --text-light: #ECF0F1;
  --text-dark: #2C3E50;
  --text-muted: #7F8C8D;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --shadow-light: rgba(44, 62, 80, 0.1);
  --shadow-medium: rgba(44, 62, 80, 0.2);
  --shadow-dark: rgba(44, 62, 80, 0.3);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Source Sans Pro', sans-serif;
}

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

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

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

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

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

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

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 30px;
  transition: var(--transition);
  border: none;
  font-size: 14px;
}

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

.btn-primary:hover {
  background-color: #1A252F;
  border-color: #1A252F;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

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

.btn-secondary:hover {
  background-color: #C0392B;
  border-color: #C0392B;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

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

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

.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-header {
  background-color: var(--bg-light);
  border-bottom: 1px solid rgba(44, 62, 80, 0.1);
  padding: 1.5rem;
}

.card-body {
  padding: 2rem;
}

.form-control {
  border: 2px solid #E8E8E8;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 16px;
  transition: var(--transition);
  background-color: var(--bg-white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15);
  background-color: var(--bg-white);
}

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

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

.navbar.scrolled {
  background-color: var(--bg-white) !important;
  box-shadow: 0 2px 20px var(--shadow-medium);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  transition: var(--transition);
}

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

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

.navbar-nav .nav-link:hover {
  color: var(--secondary-color) !important;
  background-color: rgba(231, 76, 60, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(231, 76, 60, 0.1);
}

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

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

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(44, 62, 80, 0.5), rgba(44, 62, 80, 0.5)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

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

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

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: var(--transition);
}

.hero-scroll:hover {
  color: var(--accent-gold);
  transform: translateX(-50%) scale(1.1);
}

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

.section-dark {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--text-light);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

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

.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: linear-gradient(90deg, var(--secondary-color), var(--accent-gold));
  border-radius: 2px;
}

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

.room-card-img {
  height: 300px;
  overflow: hidden;
  position: relative;
}

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

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

.room-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 1.1rem;
}

.room-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.room-features li {
  padding: 0.25rem 0;
  color: var(--text-muted);
}

.room-features li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  height: 250px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(44, 62, 80, 0.8), rgba(231, 76, 60, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 600;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Testimonials */
.testimonial-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 20px var(--shadow-light);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--secondary-color);
  font-family: var(--font-primary);
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin: 2rem 0;
  color: var(--text-muted);
}

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

.testimonial-rating {
  color: var(--accent-gold);
  margin-top: 0.5rem;
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px var(--shadow-light);
}

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

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

.form-error.show {
  display: block;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  display: none;
}

.form-success.show {
  display: block;
}

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

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

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.footer-social {
  margin-top: 1rem;
}

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

.footer-social a:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

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

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

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

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(44, 62, 80, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    height: 70vh;
    background-attachment: scroll;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .room-card-img {
    height: 250px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 1rem 0.5rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .room-card-img {
    height: 200px;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-social {
    margin-top: 1.5rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section {
    background-image: linear-gradient(rgba(44, 62, 80, 0.5), rgba(44, 62, 80, 0.5)), url('hero-bg@2x.jpg');
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-scroll,
  .btn,
  .footer-social {
    display: none;
  }
  
  .hero-section {
    height: auto;
    padding: 2rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}