/* Modern Luxury Hotel Website - CSS */

/* CSS Variables for Theme Colors */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #3498DB;
  --primary-light: #34495E;
  --primary-dark: #1B2631;
  --secondary-light: #5DADE2;
  --secondary-dark: #2874A6;
  --accent-gold: #F39C12;
  --text-light: #ECF0F1;
  --text-dark: #2C3E50;
  --text-muted: #7F8C8D;
  --background-light: #FDFEFE;
  --background-gray: #F8F9FA;
  --shadow-light: rgba(44, 62, 80, 0.1);
  --shadow-medium: rgba(44, 62, 80, 0.2);
  --shadow-dark: rgba(44, 62, 80, 0.3);
  --border-radius: 8px;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

.btn-primary:hover,
.btn-primary:focus {
  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(--secondary-color);
  border-color: var(--secondary-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

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

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

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

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

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

h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 400;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

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

.text-accent {
  color: var(--accent-gold);
}

/* Navigation */
.navbar {
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  background: var(--primary-color);
  box-shadow: 0 4px 20px var(--shadow-medium);
  padding: 0.5rem 0;
}

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

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--secondary-color);
  transition: all var(--transition-fast);
  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-light);
}

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

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

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

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

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

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

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

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(44, 62, 80, 0.8),
    rgba(52, 152, 219, 0.6)
  ),
  url('hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(44, 62, 80, 0.9),
    rgba(52, 152, 219, 0.7)
  );
  z-index: 1;
}

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

.hero h1 {
  color: white;
  margin-bottom: 2rem;
  animation: fadeInUp 1s var(--transition-medium);
}

.hero p {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  animation: fadeInUp 1s var(--transition-medium) 0.3s both;
}

.hero .btn {
  animation: fadeInUp 1s var(--transition-medium) 0.6s both;
  margin: 0.5rem;
}

/* Section Styles */
.section {
  padding: 6rem 0;
}

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

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

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Styles */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px var(--shadow-light);
  transition: all var(--transition-medium);
  overflow: hidden;
  background: white;
}

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

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

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

.card-body {
  padding: 2rem;
}

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

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

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

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

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

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

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

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

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(44, 62, 80, 0.9),
    rgba(52, 152, 219, 0.8)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-fast);
}

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

.gallery-overlay-content {
  text-align: center;
  color: white;
}

.gallery-overlay h4 {
  color: white;
  margin-bottom: 1rem;
}

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

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
  outline: none;
}

.form-control.error {
  border-color: #E74C3C;
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.form-control.success {
  border-color: #27AE60;
  box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

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

.error-message {
  color: #E74C3C;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

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

.contact .section-subtitle {
  color: var(--text-light);
}

.contact-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 1.2rem;
}

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

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

.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: color var(--transition-fast);
}

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

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

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

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

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

/* Loading Animation */
.loading {
  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);
  }
}

/* Responsive Design - Mobile First */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero {
    text-align: center;
    padding: 2rem 0;
  }
  
  .navbar-nav {
    background: var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    padding: 0.8rem 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
  
  .feature-item {
    margin-bottom: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero {
    text-align: left;
  }
  
  .section {
    padding: 8rem 0;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 4.5rem;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.shadow-custom {
  box-shadow: 0 15px 50px var(--shadow-medium);
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--secondary-color), var(--accent-gold)) border-box;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-medium);
}