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

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

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #faf9f7;
}
::-webkit-scrollbar-thumb {
  background: #0a2540;
  opacity: 0.2;
  border-radius: 3px;
}

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

#navbar.scrolled {
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.06);
}

.nav-logo {
  transition: color 0.3s ease;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

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

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

.nav-link:hover {
  color: #0a2540;
}

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

.mobile-link {
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #8fcfb8;
}

.nav-bar {
  transition: all 0.3s ease;
}

#mobile-toggle.active .nav-bar:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

#mobile-toggle.active .nav-bar:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Scroll indicator */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-image {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-image.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Room cards */
.room-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Feature items */
.feature-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Form inputs */
.form-input {
  border-radius: 0;
}

.form-input:focus {
  border-color: #8fcfb8;
  box-shadow: 0 0 0 1px #8fcfb8;
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .font-display {
    line-height: 1.15;
  }
}
