/* Industrial Luxury Hotel CSS */

/* Root Variables */
:root {
  --primary-color: #2C2C2C;
  --secondary-color: #B8860B;
  --text-light: #FFFFFF;
  --text-dark: #2C2C2C;
  --text-muted: #6C757D;
  --accent-gold: #D4AF37;
  --bg-light: #F8F9FA;
  --bg-dark: #1A1A1A;
  --border-color: #DEE2E6;
  --shadow-light: 0 2px 10px rgba(44, 44, 44, 0.1);
  --shadow-heavy: 0 8px 30px rgba(44, 44, 44, 0.3);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), #404040);
  --gradient-gold: linear-gradient(135deg, var(--secondary-color), var(--accent-gold));
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

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

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

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

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

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

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

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

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

.card-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  border: none;
  padding: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-body {
  padding: 2rem;
}

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

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
  background: var(--text-light);
}

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

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

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

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
}

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

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

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

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

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

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(44, 44, 44, 0.6), rgba(44, 44, 44, 0.6));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23B8860B" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  animation: grain 20s linear infinite;
  pointer-events: none;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  30% { transform: translate(3%, -10%); }
  50% { transform: translate(-8%, 2%); }
  70% { transform: translate(8%, 5%); }
  90% { transform: translate(-3%, -8%); }
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

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

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

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

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

.section-gold {
  background: var(--gradient-gold);
  color: var(--text-light);
}

.section-gold h2,
.section-gold h3 {
  color: var(--text-light);
}

/* Room Cards */
.room-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  background: var(--primary-color);
  cursor: pointer;
}

.room-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.room-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(44, 44, 44, 0.9));
  color: var(--text-light);
  padding: 2rem;
  transform: translateY(50%);
  transition: var(--transition);
}

.room-card:hover .room-overlay {
  transform: translateY(0);
}

.room-price {
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

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

.amenity-item:hover .amenity-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-heavy);
}

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

.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  color: var(--secondary-color);
  font-family: Georgia, serif;
  line-height: 1;
}

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

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

.testimonial-rating {
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

.footer h5 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

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

.bg-gold {
  background: var(--gradient-gold);
}

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

.shadow-lg {
  box-shadow: var(--shadow-heavy);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(184, 134, 11, 0.3);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    background-attachment: scroll;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .room-card {
    height: 300px;
  }
  
  .amenity-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .testimonial {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 60vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .testimonial::before {
    font-size: 4rem;
    top: -10px;
  }
  
  .room-overlay {
    padding: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn {
    border-width: 3px;
  }
  
  .form-control {
    border-width: 3px;
  }
  
  .card {
    border: 2px solid var(--primary-color);
  }
}