/* Modern Luxury Hotel Website CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #C41E3A;
  --secondary-color: #2C3E50;
  --accent-color: #D4AF37;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --dark-gray: #343A40;
  --white: #FFFFFF;
  --black: #000000;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 5px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --border-radius: 8px;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', 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-secondary);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary-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);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #A01729 100%);
  color: var(--white);
  box-shadow: var(--shadow-light);
}

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

.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);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
  color: var(--white);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #34495e 0%, var(--secondary-color) 100%);
  color: var(--white);
  transform: translateY(-2px);
}

/* Card Overrides */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  overflow: hidden;
}

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

.card-header {
  background: linear-gradient(135deg, var(--light-gray) 0%, #E9ECEF 100%);
  border-bottom: 1px solid #DEE2E6;
}

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

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-gray);
  padding: 0.75rem 1rem;
  position: relative;
  transition: var(--transition-smooth);
}

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

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

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

/* Mobile Menu */
.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
}

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

.hamburger {
  position: relative;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--secondary-color);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: var(--transition-fast);
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(196, 30, 58, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.3;
  animation: grain 20s infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 10%); }
  80% { transform: translate(-15%, 0%); }
  90% { transform: translate(10%, 5%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

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

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

/* 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-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out;
}

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

.section-alt {
  background: linear-gradient(135deg, var(--light-gray) 0%, #F1F3F4 100%);
}

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

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

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

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
  outline: none;
}

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

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

.form-floating .form-control:focus ~ .form-label,
.form-floating .form-control:not(:placeholder-shown) ~ .form-label {
  color: var(--primary-color);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.invalid-feedback {
  color: var(--primary-color);
  font-weight: 500;
}

.is-invalid .form-control {
  border-color: var(--primary-color);
}

/* Image Overlays */
.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.image-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.image-overlay:hover img {
  transform: scale(1.05);
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.6) 0%, rgba(196, 30, 58, 0.4) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.image-overlay:hover::after {
  opacity: 1;
}

/* Custom Components */
.luxury-border {
  border: 2px solid;
  border-image: linear-gradient(45deg, var(--accent-color), var(--primary-color)) 1;
  padding: 2rem;
  position: relative;
}

.luxury-border::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
  z-index: -1;
  border-radius: var(--border-radius);
}

.luxury-border::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: -1;
  border-radius: calc(var(--border-radius) - 2px);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1A252F 100%);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-medium);
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-content {
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 2rem 0;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.85rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    font-size: 14px;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .section-title::after {
    width: 60px;
  }
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hide {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

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

.bg-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, #A01729 100%);
}

.bg-secondary-custom {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
}

.shadow-custom {
  box-shadow: var(--shadow-medium);
}

.rounded-custom {
  border-radius: var(--border-radius);
}

.transition-smooth {
  transition: var(--transition-smooth);
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: var(--black);
  }
}