/* Base Reset & Custom Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Scroll Reveal Animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .room-card,
  .experience-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  }

  .room-card.reveal,
  .experience-card.reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .room-card.reveal.revealed,
  .experience-card.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered delays */
  .room-card:nth-child(2) { transition-delay: 0.1s; }
  .room-card:nth-child(3) { transition-delay: 0.2s; }
  .experience-card:nth-child(2) { transition-delay: 0.1s; }
  .experience-card:nth-child(3) { transition-delay: 0.2s; }
  .experience-card:nth-child(4) { transition-delay: 0.3s; }
}

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: reduce) {
  .room-card,
  .experience-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Selection color */
::selection {
  background: rgba(13, 148, 136, 0.3);
  color: #f8fafc;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

/* Navbar transition */
#navbar {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero image subtle parallax on scroll */
@media (prefers-reduced-motion: no-preference) {
  #hero img {
    will-change: transform;
  }
}
