*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* Hero Animations */
.hero-bg {
  will-change: transform;
}

.hero-bg img {
  will-change: transform;
}

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

.hero-eyebrow {
  animation: heroFadeUp 0.8s ease forwards 0.3s;
}

.hero-headline {
  animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero-sub {
  animation: heroFadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
  animation: heroFadeUp 0.8s ease forwards 0.9s;
}

@keyframes scrollLine {
  0% {
    top: -16px;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 40px;
    opacity: 0;
  }
}

.scroll-line {
  animation: scrollLine 1.5s ease-in-out infinite;
}

/* Navbar */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Scroll Reveal */
.reveal {
  will-change: opacity, transform;
}

/* Room Cards */
.room-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
  transform: translateY(-4px);
}

/* Form */
.form-input {
  background: transparent;
}

.form-input:focus {
  background: rgba(232, 97, 76, 0.03);
}

.form-submit:active {
  transform: scale(0.98);
}

/* Utility */
::selection {
  background: rgba(232, 97, 76, 0.2);
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
