/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ─── Hero Gradient ─── */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #042f2e 0%,
    #0f766e 30%,
    #0d9488 50%,
    #1e293b 80%,
    #0f172a 100%
  );
}

/* ─── Navigation ─── */
.nav-text { transition: color 0.4s ease; }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
nav.scrolled .nav-text { color: #0f172a; }
nav.scrolled .nav-link { color: #475569; }
nav.scrolled .nav-link:hover { color: #0d9488; }

/* ─── Scroll Indicator ─── */
.scroll-indicator { animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-6px) translateX(-50%); }
  60% { transform: translateY(-3px) translateX(-50%); }
}

/* ─── Reveal Animations ─── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ─── Mobile Menu ─── */
.mobile-link { transition: transform 0.3s ease, color 0.3s ease; }
.mobile-link:hover { transform: scale(1.05); }

/* ─── Neighborhood Cards ─── */
.group:hover img { transform: scale(1.08); }

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ─── Focus Styles ─── */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ─── Responsive Tweaks ─── */
@media (max-width: 768px) {
  .scroll-indicator { animation: none; }
}
