/* Modern Industrial Hotel Website - CSS */

/* Root Variables */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --dark-primary: #1A252F;
  --light-primary: #34495E;
  --accent-color: #F39C12;
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --text-light: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-dark: #1A1A1A;
  --border-color: #BDC3C7;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Montserrat', 'Inter', sans-serif;
}

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

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

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

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

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

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

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

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

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
}

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

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: transparent;
}

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

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #C0392B;
  border-color: #C0392B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card {
  border: none;
  border-radius: 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-bottom: 2px solid var(--secondary-color);
  font-weight: 600;
}

.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

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

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

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

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

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(231, 76, 60, 0.3)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23f0f0f0" width="100" height="100"/><rect fill="%23e0e0e0" width="50" height="50"/><rect fill="%23e0e0e0" x="50" y="50" width="50" height="50"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

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

.hero-section .btn {
  margin: 0.5rem;
  min-width: 180px;
}

/* Industrial Elements */
.industrial-accent {
  position: relative;
}

.industrial-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
}

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

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--text-light);
}

.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: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

/* Room Cards */
.room-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

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

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

.room-card .card-body {
  padding: 1.5rem;
  background: white;
  position: relative;
}

.room-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Forms */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: 0;
  padding: 0.75rem;
  font-size: 1rem;
  transition: var(--transition);
  background-color: white;
}

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

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

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--secondary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(44, 62, 80, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .nav-link {
  color: var(--text-light);
  font-size: 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

.mobile-toggle:hover {
  color: var(--secondary-color);
}

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

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

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

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

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
}

/* Industrial Grid Pattern */
.industrial-grid {
  background-image: 
    linear-gradient(rgba(44, 62, 80, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 80, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .mobile-toggle {
    display: block;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .hero-section {
    height: 70vh;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .parallax {
    background-attachment: scroll;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 60vh;
  }
  
  .room-card .card-img-top {
    height: 200px;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero-content {
    padding: 0 1rem;
  }
  
  .room-price {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
  
  .mobile-menu {
    padding: 1rem;
  }
  
  .mobile-menu .nav-link {
    font-size: 1.2rem;
    margin: 0.8rem 0;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.4);
  }
  
  .btn {
    border-width: 3px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .navbar, .mobile-menu, .mobile-toggle {
    display: none;
  }
  
  .hero-section {
    height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
}