/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: #34d4a8;
  color: #0a1628;
}

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

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-logo-text {
  color: #0a1628;
  transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
  color: #0a1628;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #34d4a8;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

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

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

.menu-line {
  transition: all 0.3s ease;
}

#mobile-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#mobile-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-toggle.active .menu-line:nth-child(3) {
  width: 5px;
  transform: rotate(-45deg) translate(4px, -4px);
  margin-left: 0;
  margin-right: 0;
}

/* === Room Cards === */
.room-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.room-card:nth-child(2) { transition-delay: 0.15s; }
.room-card:nth-child(3) { transition-delay: 0.3s; }

/* === Feature Blocks === */
.feature-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-block:nth-child(2) { transition-delay: 0.1s; }
.feature-block:nth-child(3) { transition-delay: 0.2s; }
.feature-block:nth-child(4) { transition-delay: 0.3s; }

/* === Scroll Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Button Hover Effects === */
a, button {
  transition: all 0.3s ease;
}

/* === Form Styles === */
input, textarea {
  font-family: 'Inter', system-ui, sans-serif;
}

input:focus, textarea:focus {
  outline: none;
}

/* === Responsive === */
@media (max-width: 768px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .room-card, .feature-block, .fade-in {
    opacity: 1;
    transform: none;
  }
}
