/* Modern Luxury Hotel Website CSS */

/* CSS Custom Properties for Theme Colors */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --primary-light: #34495E;
  --primary-dark: #1A252F;
  --secondary-light: #EC7063;
  --secondary-dark: #C0392B;
  --accent-gold: #F39C12;
  --text-light: #ECF0F1;
  --text-dark: #2C3E50;
  --background-light: #FDFEFE;
  --background-gray: #F8F9FA;
  --shadow-light: rgba(44, 62, 80, 0.1);
  --shadow-medium: rgba(44, 62, 80, 0.2);
  --shadow-heavy: rgba(44, 62, 80, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease-in-out;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}

/* Bootstrap 5 Overrides */
.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  font-size: 0.9rem;
}

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

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

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

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

.btn-secondary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  opacity: 0.8;
}

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

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--accent-gold);
}

.navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--accent-gold);
}

.navbar-scrolled {
  background-color: var(--primary-color);
  padding: 0.5rem 0;
}

/* Mobile Menu Toggle */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  background-color: transparent;
}

.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='rgba%28255, 255, 255, 0.8%29' 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;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero-section::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="%23ffffff" stop-opacity=".1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>') center/cover;
  opacity: 0.3;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

.hero-buttons .btn {
  margin: 0.5rem;
  min-width: 180px;
}

/* Section Styling */
.section-padding {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  position: relative;
  display: inline-block;
}

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

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 25px var(--shadow-light);
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
}

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

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-text {
  color: #6C757D;
  line-height: 1.7;
}

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

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15);
}

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

.form-floating > .form-control:focus {
  border-color: var(--secondary-color);
}

.form-floating > label {
  color: #6C757D;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, var(--background-gray) 0%, white 100%);
}

.contact-info {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  height: 100%;
}

.contact-info h4 {
  color: white;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-right: 1rem;
  min-width: 30px;
}

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

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

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-fast);
  opacity: 0.8;
}

.footer ul li a:hover {
  color: var(--accent-gold);
  opacity: 1;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

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

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .contact-info {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 80vh;
    min-height: 500px;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .navbar-nav {
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid white;
  }
  
  .card {
    border: 1px solid #DEE2E6;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}