/* Modern Luxury Hotel Website CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --primary-light: #34495E;
  --primary-dark: #1A252F;
  --secondary-light: #EC7063;
  --secondary-dark: #C0392B;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #BDC3C7;
  --dark-gray: #7F8C8D;
  --gold: #F39C12;
  --success: #27AE60;
  --shadow-light: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 5px 20px rgba(44, 62, 80, 0.15);
  --shadow-heavy: 0 10px 30px rgba(44, 62, 80, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
}

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

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

html {
  scroll-behavior: smooth;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-color);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-color);
}

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

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

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

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

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

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--white);
  box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
  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);
}

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

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

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

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(231, 76, 60, 0.2);
  color: var(--secondary-light) !important;
}

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

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

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

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

.navbar-toggler-icon {
  background-image: none;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  bottom: -8px;
}

.navbar-toggler.collapsed .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(231, 76, 60, 0.4)),
              url('hero-bg.jpg') center/cover no-repeat;
  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: rgba(44, 62, 80, 0.3);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  color: var(--secondary-light);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  overflow: hidden;
  background: var(--white);
}

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

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

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

.card-body {
  padding: 2rem;
}

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

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

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

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

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

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: var(--medium-gray);
}

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

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: var(--secondary-color);
  margin: 1rem auto;
  border-radius: 2px;
}

/* Forms */
.form-control {
  border: 2px solid var(--medium-gray);
  border-radius: var(--border-radius);
  padding: 12px 15px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.invalid-feedback {
  display: block;
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.is-invalid {
  border-color: var(--secondary-color) !important;
}

.is-valid {
  border-color: var(--success) !important;
}

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

.testimonial::before {
  content: '❝';
  font-size: 4rem;
  color: var(--secondary-color);
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

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

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

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  margin-bottom: 2rem;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

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

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

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

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

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

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

.footer a {
  color: var(--medium-gray);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--primary-color);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: var(--transition);
}

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

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

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

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

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

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light)) !important;
}

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

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

/* Mobile Optimizations */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .navbar-collapse {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .testimonial {
    margin: 1rem 0.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 80vh;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer .col-md-3 {
    margin-bottom: 2rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .scroll-indicator {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    color: black !important;
  }
}