/* Modern Luxury Hotel Website Styles */

/* Root Variables */
:root {
  --primary-color: #1a365d;
  --secondary-color: #ffd700;
  --primary-light: #2d4a6b;
  --primary-dark: #0f1f35;
  --secondary-light: #fff4a3;
  --secondary-dark: #b8940d;
  --text-dark: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --light-gray: #f7fafc;
  --medium-gray: #e2e8f0;
  --border-color: #cbd5e0;
  --shadow-light: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-medium: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  --shadow-heavy: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Lato', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

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

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

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

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

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

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

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

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  border-width: 2px;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

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

/* Form Controls */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
  background-color: var(--white);
}

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

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

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

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

.navbar-brand:hover {
  color: var(--secondary-light);
}

.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  margin: 0 1rem;
  padding: 0.5rem 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

.navbar-toggler {
  border: none;
  padding: 0;
  font-size: 1.5rem;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.6)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><rect fill="%23f0f0f0" width="1000" height="1000"/><path fill="%23ddd" d="M0 0h1000v500H0z"/></svg>');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(255, 215, 0, 0.1) 50%, transparent 51%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

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

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

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

/* 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;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

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

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

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

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

.card-body {
  padding: 2rem;
}

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

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

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

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

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

/* Features Section */
.features {
  background-color: var(--light-gray);
}

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

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: var(--primary-color);
}

.feature-item {
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
}

/* Testimonials */
.testimonial {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  text-align: center;
  margin: 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

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

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

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

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
}

.contact .section-title,
.contact .section-title::after {
  color: var(--white);
}

.contact .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.contact .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact .form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--secondary-color);
  color: var(--white);
}

.contact .form-label {
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1rem;
}

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

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

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

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

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

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

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

.border-primary {
  border-color: var(--primary-color);
}

.border-secondary {
  border-color: var(--secondary-color);
}

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

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

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    padding: 2rem 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-nav {
    background-color: var(--primary-color);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .feature-item {
    margin-bottom: 3rem;
  }
  
  .testimonial {
    margin: 1rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 60vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .testimonial {
    padding: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  .hero {
    height: auto;
    background: none;
    color: var(--text-dark);
  }
  
  .section {
    padding: 1rem 0;
  }
}