/* Modern Luxury Hotel with Mystical Elegance - Complete CSS */

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

/* CSS Custom Properties */
:root {
  --primary-color: #8B4513;
  --secondary-color: #2F4F4F;
  --primary-light: #A0522D;
  --primary-dark: #654321;
  --secondary-light: #708090;
  --secondary-dark: #1C3333;
  --accent-gold: #DAA520;
  --accent-bronze: #CD7F32;
  --text-primary: #2C2C2C;
  --text-secondary: #555555;
  --text-light: #777777;
  --text-white: #FFFFFF;
  --bg-light: #F8F7F5;
  --bg-dark: #1A1A1A;
  --shadow-light: rgba(139, 69, 19, 0.1);
  --shadow-medium: rgba(139, 69, 19, 0.2);
  --shadow-heavy: rgba(139, 69, 19, 0.3);
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --gradient-mystical: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-gold));
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  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;
  color: var(--text-primary);
}

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 {
  margin-bottom: 1rem;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
}

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

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

/* Bootstrap 5 Overrides */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  padding: 12px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

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

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

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

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

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

.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(47, 79, 79, 0.3);
}

/* Cards */
.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow-light);
  transition: var(--transition-smooth);
  overflow: hidden;
  background: var(--text-white);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--shadow-medium);
}

.card-img-top {
  transition: var(--transition-smooth);
}

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

/* Forms */
.form-control {
  border: 2px solid #E9ECEF;
  border-radius: 15px;
  padding: 15px 20px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: var(--text-white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem var(--shadow-light);
  background: var(--text-white);
}

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

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px var(--shadow-light);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  transition: var(--transition-smooth);
}

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

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

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

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

/* Mobile Menu */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: var(--gradient-primary);
  border-radius: 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--shadow-light);
}

.navbar-toggler-icon {
  width: 1.2em;
  height: 1.2em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(139, 69, 19, 0.4), rgba(47, 79, 79, 0.4));
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  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: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx=".5" cy=".5" r=".5"><stop offset="0" stop-color="%23DAA520" stop-opacity=".1"/><stop offset="1" stop-color="transparent"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/><circle cx="900" cy="800" r="80" fill="url(%23a)"/></svg>') no-repeat center center;
  background-size: cover;
  animation: mysticalFloat 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-white);
  max-width: 800px;
  padding: 0 1rem;
}

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

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
  margin: 0.5rem;
}

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

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

.section-title::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 3px;
  background: var(--gradient-primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Rooms Section */
.room-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.room-card .card-img-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.room-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

/* 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 1.5rem;
  font-size: 2rem;
  color: var(--text-white);
  transition: var(--transition-bounce);
}

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

/* Testimonials */
.testimonial-card {
  background: var(--text-white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow-light);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 5rem;
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
  opacity: 0.3;
}

.testimonial-rating {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.testimonial-location {
  color: var(--text-light);
  font-size: 0.875rem;
}

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

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

.footer h5 {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}

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

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

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem;
}

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

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

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

.bg-secondary-custom {
  background: var(--gradient-secondary) !important;
}

.bg-light-custom {
  background: var(--bg-light) !important;
}

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

@keyframes mysticalFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(0px) rotate(180deg);
  }
  75% {
    transform: translateY(20px) rotate(270deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  animation: shimmer 2s infinite linear;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  background-size: 1000px 100%;
}

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

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

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  to {
    left: 100%;
  }
}

/* Error States */
.error {
  color: #dc3545;
  border-color: #dc3545 !important;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success States */
.success {
  color: #28a745;
  border-color: #28a745 !important;
}

.success-message {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 0 0.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .footer {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #654321;
    --secondary-color: #1C3333;
    --text-primary: #000000;
    --text-secondary: #333333;
  }
}

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