/* Modern Luxury Hotel Website Styles */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #D4822A;
  --secondary-color: #2C3E50;
  --primary-light: #E69A47;
  --primary-dark: #B8701F;
  --secondary-light: #34495E;
  --accent-color: #F8F9FA;
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --white: #FFFFFF;
  --black: #000000;
  --gold-gradient: linear-gradient(135deg, #D4822A 0%, #E69A47 100%);
  --dark-gradient: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  --shadow-light: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-medium: 0 5px 30px rgba(0,0,0,0.15);
  --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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;
  color: var(--text-light);
  font-size: 1.1rem;
}

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

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

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

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

.btn-secondary {
  background: var(--dark-gradient);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  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(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-light);
  padding: 1rem 0;
  transition: var(--transition);
}

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

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

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(212, 130, 42, 0.1);
}

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

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

.navbar-toggler span {
  display: block;
  background: var(--text-dark);
  height: 2px;
  width: 100%;
  margin: 5px 0;
  transition: var(--transition);
}

.navbar-toggler.collapsed span:nth-child(2) {
  opacity: 1;
}

.navbar-toggler.collapsed span:nth-child(1) {
  transform: rotate(0);
}

.navbar-toggler.collapsed span:nth-child(3) {
  transform: rotate(0);
}

.navbar-toggler span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(212, 130, 42, 0.3)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
  margin: 0.5rem;
}

/* Card Components */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  height: 100%;
}

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

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

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

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

/* Section Styling */
.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: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* Luxury Features */
.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-medium);
}

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

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

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  font-family: Georgia, serif;
}

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

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

/* Contact Form */
.form-control {
  border: 2px solid rgba(44, 62, 80, 0.1);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(212, 130, 42, 0.25);
  background: var(--white);
}

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

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Footer */
footer {
  background: var(--dark-gradient);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

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

footer p, footer li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

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

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

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0.5rem 0.5rem 0;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(212, 130, 42, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    text-align: center;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .hero .btn {
    display: inline-block;
    width: auto;
    min-width: 200px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .testimonial {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}