/* ── Base & Utilities ── */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

::selection { background: #C0603A; color: #fff; }

/* ── Navbar ── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#navbar.scrolled {
  background: rgba(253, 249, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

/* ── Menu Lines Animation ── */
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ── Stat Cards ── */
.stat-card {
  animation: float 3s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Room Cards ── */
.room-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.room-card:hover {
  transform: translateY(-4px);
}

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: #F7EDE0;
  color: #6D4F34;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* ── Experience Items ── */
.exp-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.exp-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Location Cards ── */
.location-card {
  transform: translateY(0);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.location-card:hover {
  transform: translateX(4px);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .stat-card { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .stat-card { display: none; }
}

/* ── Focus Styles ── */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ── Smooth Image Loading ── */
img {
  display: block;
  max-width: 100%;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
