/* Arctic Luxury Hotel - CSS Styles */

/* Root Variables */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #f97316;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --secondary-light: #fb923c;
  --secondary-dark: #ea580c;
  --arctic-white: #f8fafc;
  --arctic-blue: #e0f2fe;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

/* 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(--arctic-white);
  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(--text-dark);
}

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

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

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

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

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-large);
  color: 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: white;
  transform: translateY(-2px);
}

/* Card Overrides */
.card {
  border: none;
  border-radius: calc(var(--border-radius) * 2);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  overflow: hidden;
}

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

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

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

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

.navbar-scrolled {
  background: rgba(30, 58, 138, 0.98);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  letter-spacing: -0.025em;
}

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

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

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

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.6)),
              url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkyMCIgaGVpZ2h0PSIxMDgwIiB2aWV3Qm94PSIwIDAgMTkyMCAxMDgwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cmVjdCB3aWR0aD0iMTkyMCIgaGVpZ2h0PSIxMDgwIiBmaWxsPSIjZjhmYWZjIi8+CjxwYXRoIGQ9Ik0wIDU0MEwxNjAgNDgwTDMyMCA1NDBMNDgwIDQyMEw2NDAgNTQwTDgwMCA0MjBMOTYwIDU0MEwxMTIwIDQ4MEwxMjgwIDU0MEwxNDQwIDQ4MEwxNjAwIDU0MEwxNzYwIDQ4MEwxOTIwIDU0MFYxMDgwSDBWNTQwWiIgZmlsbD0iI2UwZjJmZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPC9zdmc+');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(30, 58, 138, 0.1) 0%, 
    rgba(224, 242, 254, 0.1) 25%,
    rgba(30, 58, 138, 0.1) 50%,
    rgba(224, 242, 254, 0.1) 75%,
    rgba(30, 58, 138, 0.1) 100%);
  background-size: 100px 100px;
  animation: aurora 20s linear infinite;
}

@keyframes aurora {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Styles */
section {
  padding: 5rem 0;
  position: relative;
}

.section-bg-light {
  background: var(--arctic-white);
}

.section-bg-blue {
  background: linear-gradient(135deg, var(--arctic-blue), rgba(224, 242, 254, 0.5));
}

/* Room Cards */
.room-card {
  background: white;
  border-radius: calc(var(--border-radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
}

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

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

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

.room-card-body {
  padding: 2rem;
}

.room-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.room-features {
  list-style: none;
  padding: 0;
}

.room-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 2rem;
}

.room-features li::before {
  content: '❄';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.room-features li:last-child {
  border-bottom: none;
}

/* Amenities Section */
.amenity-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.amenity-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: calc(var(--border-radius) * 2);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
}

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

/* Form Styles */
.form-control {
  border: 2px solid rgba(30, 58, 138, 0.1);
  border-radius: var(--border-radius);
  padding: 1rem;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.1);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid {
  border-color: #198754;
}

.invalid-feedback,
.valid-feedback {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Booking Form */
.booking-form {
  background: white;
  border-radius: calc(var(--border-radius) * 2);
  padding: 3rem;
  box-shadow: var(--shadow-large);
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

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

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

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

footer a:hover {
  color: white;
  text-decoration: underline;
}

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

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Snowflake Animation */
.snowflake {
  position: fixed;
  top: -10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  animation: fall linear infinite;
  pointer-events: none;
  z-index: 1000;
}

@keyframes fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: 70vh;
  }
  
  .booking-form {
    margin-top: 0;
    padding: 2rem;
  }
  
  .room-card img {
    height: 200px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .navbar-collapse {
    background: rgba(30, 58, 138, 0.95);
    margin-top: 1rem;
    border-radius: var(--border-radius);
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .hero p {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }
  
  .room-card-body {
    padding: 1.5rem;
  }
  
  .amenity-card {
    padding: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  .hero {
    background-attachment: scroll;
  }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}