/* Modern Luxury Hotel Website - CSS */

/* Custom Properties */
:root {
  --primary-color: #1a237e;
  --primary-light: #534bae;
  --primary-dark: #000051;
  --secondary-color: #ffd54f;
  --secondary-light: #ffff81;
  --secondary-dark: #c8a415;
  --text-dark: #212529;
  --text-light: #6c757d;
  --text-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #343a40;
  --shadow-light: 0 2px 10px rgba(26, 35, 126, 0.1);
  --shadow-medium: 0 4px 20px rgba(26, 35, 126, 0.15);
  --shadow-heavy: 0 8px 30px rgba(26, 35, 126, 0.2);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --border-radius: 8px;
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

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

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

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

p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-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(--text-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(--text-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
  transform: translateY(-2px);
  color: var(--text-dark);
}

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

.navbar-scrolled {
  padding: 0.5rem 0;
  background: rgba(26, 35, 126, 0.98) !important;
}

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

.navbar-nav .nav-link {
  color: var(--text-white);
  font-weight: 500;
  margin: 0 15px;
  position: relative;
  transition: var(--transition-fast);
}

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

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

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(26, 35, 126, 0.4), rgba(26, 35, 126, 0.6)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%23f8f9fa" width="1920" height="1080"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  right: 10%;
  animation-delay: -2s;
}

.floating-element:nth-child(2) {
  bottom: 20%;
  left: 10%;
  animation-delay: -4s;
}

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

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

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

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

.card-body {
  padding: 2rem;
}

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

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  color: var(--primary-color);
  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(--secondary-color);
  border-radius: 2px;
}

/* Forms */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

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

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

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

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 35, 126, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

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

/* Testimonials */
.testimonial {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-fast);
}

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

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

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

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: var(--text-white);
  padding: 60px 0 20px;
}

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

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

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

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes spin {
  to {
    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), var(--primary-light));
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-medium);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-nav {
    background: rgba(26, 35, 126, 0.95);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .hero-section {
    background-attachment: scroll;
    min-height: 70vh;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 40px 0;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .testimonial {
    padding: 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 60vh;
    padding: 0 10px;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
}