/* Gothic Luxury Hotel CSS */

/* Custom CSS Variables */
:root {
  --gothic-primary: #1a1a1a;
  --gothic-secondary: #c9302c;
  --gothic-accent: #2c1810;
  --gothic-gold: #d4af37;
  --gothic-silver: #c0c0c0;
  --gothic-text-light: #f8f9fa;
  --gothic-text-muted: #adb5bd;
  --gothic-shadow: rgba(26, 26, 26, 0.8);
  --gothic-gradient: linear-gradient(135deg, #1a1a1a 0%, #2c1810 100%);
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Source Sans Pro', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  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); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }

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

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

a:hover {
  color: var(--gothic-gold);
}

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

.btn-primary {
  background: var(--gothic-secondary);
  color: var(--gothic-text-light);
  box-shadow: 0 4px 15px rgba(201, 48, 44, 0.3);
}

.btn-primary:hover {
  background: var(--gothic-gold);
  color: var(--gothic-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 48, 44, 0.4);
}

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

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

.btn-secondary {
  background: transparent;
  border: 2px solid var(--gothic-gold);
  color: var(--gothic-gold);
}

.btn-secondary:hover {
  background: var(--gothic-gold);
  color: var(--gothic-primary);
}

/* Cards */
.card {
  background: var(--gothic-gradient);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--gothic-text-light);
  font-family: var(--font-primary);
}

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

/* Forms */
.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--gothic-text-light);
  padding: 0.875rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gothic-secondary);
  box-shadow: 0 0 0 0.2rem rgba(201, 48, 44, 0.25);
  color: var(--gothic-text-light);
}

.form-control::placeholder {
  color: var(--gothic-text-muted);
}

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

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

.navbar.scrolled {
  background: var(--gothic-primary) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gothic-gold) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.navbar-nav .nav-link:hover {
  color: var(--gothic-gold) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem;
}

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

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

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

.hero-title {
  color: var(--gothic-text-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--gothic-gold);
  margin-bottom: 2rem;
  font-family: var(--font-primary);
  font-style: italic;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gothic-gradient);
  opacity: 0.3;
  z-index: 1;
}

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

.section-dark {
  background: var(--gothic-primary);
}

.section-accent {
  background: var(--gothic-accent);
  position: relative;
}

.section-accent:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  pointer-events: none;
}

/* Room Cards */
.room-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

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

.room-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.room-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.room-card:hover .room-overlay {
  opacity: 1;
}

/* Contact Form */
.contact-form {
  background: var(--gothic-gradient);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
}

.contact-form:before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, var(--gothic-secondary), var(--gothic-gold), var(--gothic-secondary));
  border-radius: 12px;
  z-index: -1;
}

/* Testimonials */
.testimonial {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--gothic-secondary);
  margin: 1rem 0;
  transition: var(--transition);
}

.testimonial:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text:before {
  content: '"';
  font-size: 3rem;
  color: var(--gothic-secondary);
  position: absolute;
  top: -10px;
  left: -20px;
  font-family: var(--font-primary);
}

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

/* Amenities */
.amenity-icon {
  font-size: 3rem;
  color: var(--gothic-secondary);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.amenity-item:hover .amenity-icon {
  color: var(--gothic-gold);
  transform: scale(1.1);
}

/* Footer */
.footer {
  background: var(--gothic-primary);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
  color: var(--gothic-text-muted);
  transition: var(--transition);
  margin-bottom: 0.5rem;
  display: block;
}

.footer-link:hover {
  color: var(--gothic-secondary);
  padding-left: 5px;
}

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

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

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

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

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

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

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

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

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gothic-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(201, 48, 44, 0.3);
  border-top: 3px solid var(--gothic-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gothic-secondary);
  color: var(--gothic-text-light);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(201, 48, 44, 0.3);
}

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

.back-to-top:hover {
  background: var(--gothic-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 48, 44, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    background-attachment: scroll;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .navbar-nav {
    background: rgba(26, 26, 26, 0.95);
    margin-top: 1rem;
    border-radius: 8px;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .testimonial {
    padding: 1.5rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section {
    background-size: cover;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --gothic-text-muted: #ced4da;
  }
}

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

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .loading {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .section {
    padding: 2rem 0;
  }
}