/* Modern Fusion Luxury Hotel - CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #1B263B;
  --secondary-color: #E63946;
  --accent-color: #F1FAEE;
  --dark-accent: #457B9D;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --white: #FFFFFF;
  --gold: #FFD60A;
  --success: #198754;
  --warning: #FFC107;
  --danger: #DC3545;
  
  /* Typography */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(27, 38, 59, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(27, 38, 59, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(27, 38, 59, 0.175);
  
  /* Border Radius */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

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

body {
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Bootstrap 5 Overrides */
.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
}

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

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);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--medium-gray);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--dark-accent);
}

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

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

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

.btn-dark {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-dark:hover {
  background-color: #0f1a2e;
  transform: translateY(-2px);
}

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

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
  background-color: rgba(230, 57, 70, 0.1);
}

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

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-accent) 100%);
  color: var(--white);
  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"><polygon fill="%23ffffff" fill-opacity="0.05" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

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

.hero .lead {
  color: var(--accent-color);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--gold));
  border-radius: 2px;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: var(--white);
}

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

.card-img-top {
  transition: transform 0.3s ease;
  border-radius: 0;
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  font-family: var(--font-primary);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

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

.room-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.room-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(27, 38, 59, 0.8), rgba(230, 57, 70, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

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

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

/* Amenities */
.amenity-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: var(--white);
  transition: transform 0.3s ease;
}

.amenity-item:hover .amenity-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Forms */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--white);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25);
  background-color: var(--white);
}

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

.form-floating .form-control {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.form-floating label {
  color: var(--medium-gray);
}

/* Booking Form */
.booking-form {
  background: linear-gradient(135deg, var(--white), var(--light-gray));
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

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

.footer h5 {
  color: var(--white);
  font-family: var(--font-primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

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

.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.6);
}

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

.text-secondary {
  color: var(--secondary-color);
}

.text-gold {
  color: var(--gold);
}

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

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

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

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

/* 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;
}

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

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
  }
  
  .hero {
    height: 100vh;
    padding: 0 1rem;
  }
  
  .booking-form {
    margin-top: 0;
    margin-bottom: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .room-card {
    height: 300px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    height: 80vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .amenity-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    height: 70vh;
  }
  
  .booking-form {
    padding: 1.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #CC0000;
    --medium-gray: #333333;
  }
  
  .card {
    border: 2px solid var(--primary-color);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

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