/* Hotel Mystical Luxury - Complete CSS */

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

/* CSS Variables */
:root {
  --primary-color: #2C1810;
  --secondary-color: #D4AF37;
  --accent-color: #8B6914;
  --light-bg: #F8F6F0;
  --dark-bg: #1A0F08;
  --text-light: #FFFFFF;
  --text-dark: #2C1810;
  --text-muted: #6C757D;
  --gradient-gold: linear-gradient(135deg, #D4AF37, #F4D03F, #B8860B);
  --gradient-dark: linear-gradient(135deg, #2C1810, #1A0F08, #0F0804);
  --shadow-primary: 0 10px 30px rgba(44, 24, 16, 0.3);
  --shadow-secondary: 0 5px 15px rgba(212, 175, 55, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius: 8px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

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

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

p {
  margin-bottom: 1rem;
  font-weight: 400;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Bootstrap Overrides */
.btn {
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 30px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
  color: var(--primary-color);
}

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

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

.btn-dark {
  background: var(--gradient-dark);
  color: var(--text-light);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* Navigation */
.navbar {
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(44, 24, 16, 0.98);
  box-shadow: var(--shadow-primary);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  margin: 0 15px;
  position: relative;
  transition: var(--transition-smooth);
}

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

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

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

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

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

/* Mobile Menu */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 24, 16, 0.98);
    margin-top: 1rem;
    border-radius: var(--border-radius);
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(44, 24, 16, 0.4), rgba(44, 24, 16, 0.6));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: var(--text-light);
  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(44, 24, 16, 0.3) 100%);
}

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

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

.hero .lead {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating Elements Animation */
.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  animation-delay: -2s;
}

.floating-element:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  overflow: hidden;
}

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

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

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color);
  font-family: var(--font-heading);
}

/* Luxury Card Variant */
.card-luxury {
  background: var(--gradient-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.card-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

.card-luxury .card-title {
  color: var(--secondary-color);
}

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

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

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

.form-floating {
  position: relative;
}

.form-floating .form-control {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}

.form-floating label {
  padding: 1rem 0.75rem;
}

/* Contact Form Specific */
.contact-form {
  background: var(--text-light);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-primary);
}

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

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

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

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

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

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

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

/* Features Grid */
.feature-item {
  text-align: center;
  padding: 2rem 1rem;
  transition: var(--transition-smooth);
}

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

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-secondary);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.gallery-item img {
  transition: var(--transition-smooth);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 24, 16, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.gallery-overlay i {
  font-size: 3rem;
  color: var(--secondary-color);
}

/* Testimonials */
.testimonial {
  text-align: center;
  padding: 2rem;
  background: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin: 1rem 0;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: var(--secondary-color);
  font-family: Georgia, serif;
}

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

.testimonial-rating {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

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

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

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

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

/* Social Links */
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin: 0 10px;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

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

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

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-secondary);
  color: var(--primary-color);
}

/* 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: var(--transition-smooth);
}

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

.fade-up {
  transform: translateY(30px);
}

.fade-up.animated {
  transform: translateY(0);
}

.fade-left {
  transform: translateX(-30px);
}

.fade-left.animated {
  transform: translateX(0);
}

.fade-right {
  transform: translateX(30px);
}

.fade-right.animated {
  transform: translateX(0);
}

/* 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(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}

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

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

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

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

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

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

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

.shadow-primary {
  box-shadow: var(--shadow-primary) !important;
}

.shadow-secondary {
  box-shadow: var(--shadow-secondary) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero {
    background-attachment: scroll;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 0 1rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .feature-item {
    padding: 1.5rem 0.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-top,
  .btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .section-dark {
    background: white !important;
    color: black !important;
  }
}