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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #7B2D3B;
  color: white;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .nav-link {
  color: #4b5563;
}

#navbar.scrolled .nav-link:hover {
  color: #7B2D3B;
  background: #fdf0f2;
}

#navbar.scrolled .font-display {
  color: #7B2D3B;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-link:hover {
  color: #7B2D3B;
  background: rgba(123, 45, 59, 0.08);
}

/* ===== HERO ANIMATIONS ===== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease forwards;
}

.animate-slide-up-delay {
  animation: slideUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.animate-slide-up-delay-2 {
  animation: slideUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delay {
  animation: floatDelay 3.5s ease-in-out infinite 0.5s;
}

/* ===== STAT CARDS ===== */
.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.2) !important;
}

/* ===== AMENITY CARDS ===== */
.amenity-card {
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.amenity-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== SITE CARDS ===== */
.site-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== MOBILE MENU ===== */
.mobile-link {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
  transform: translateX(4px);
}

#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.1);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fefaf6;
}

::-webkit-scrollbar-thumb {
  background: #d44262;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}

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

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
