*, *::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;
}

::selection {
  background: #5EEAD4;
  color: #0B1D3A;
}

/* Smooth reveal animations */
.stat-card {
  opacity: 0;
  transform: translateY(20px);
  animation: floatIn 0.8s ease forwards;
}
.stat-card:nth-child(1) { animation-delay: 0.6s; }
.stat-card:nth-child(2) { animation-delay: 0.9s; }
.stat-card:nth-child(3) { animation-delay: 1.2s; }

@keyframes floatIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card:hover {
  transform: translateY(-4px) !important;
  transition: transform 0.4s ease;
}

/* Amenity card hover */
.amenity-card {
  transition: background-color 0.4s ease;
}

.amenity-card:hover svg {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Nav scroll state */
nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(11, 29, 58, 0.06);
}

nav.scrolled .menu-line {
  background: #0B1D3A;
}

/* Mobile menu */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 16px;
}

/* Scroll-triggered fade-in */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}
