/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e8eef5; }
::-webkit-scrollbar-thumb { background: #9fb8d7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #789cc8; }

/* ─── Navbar ─── */
#navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10,37,64,0.06);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(10,37,64,0.08);
  background: rgba(255,255,255,0.97);
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #14b8a6, #5eead4);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #5eead4 100%);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 20px rgba(20,184,166,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20,184,166,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #0a2540;
  border: 1.5px solid rgba(10,37,64,0.2);
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: #14b8a6;
  color: #0d9488;
  background: rgba(20,184,166,0.05);
}

/* ─── Typography ─── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #14b8a6;
  margin-bottom: 0.75rem;
}
.section-eyebrow--light { color: #5eead4; }
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: #0a2540;
}
.section-title--light { color: #fff; }

/* ─── Hero ─── */
.hero-gradient {
  background: linear-gradient(135deg, #040a14 0%, #0a2540 35%, #0d3b5e 60%, #0f4a5c 80%, #0d6e6a 100%);
}
.hero-orb {
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(94,234,212,0.5) 0%, transparent 70%);
  top: -10%; right: -5%;
  animation-delay: 0s;
}
.hero-orb--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(20,184,166,0.4) 0%, transparent 70%);
  bottom: 5%; left: -3%;
  animation-delay: 3s;
}
.hero-orb--3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(158,203,199,0.3) 0%, transparent 70%);
  top: 40%; left: 50%;
  animation-delay: 5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-particles { perspective: 800px; }
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(94,234,212,0.5);
  border-radius: 50%;
  animation: particleDrift 6s ease-in-out infinite;
}
.particle:nth-child(2) { width: 6px; height: 6px; animation-duration: 8s; }
.particle:nth-child(3) { width: 3px; height: 3px; animation-duration: 7s; }
.particle:nth-child(4) { width: 5px; height: 5px; animation-duration: 9s; }
.particle:nth-child(5) { width: 4px; height: 4px; animation-duration: 6.5s; }
.particle:nth-child(6) { width: 7px; height: 7px; animation-duration: 10s; background: rgba(94,234,212,0.3); }
.particle:nth-child(7) { width: 3px; height: 3px; animation-duration: 7.5s; }
.particle:nth-child(8) { width: 5px; height: 5px; animation-duration: 8.5s; }
@keyframes particleDrift {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  25% { transform: translateY(-30px) translateX(15px); opacity: 0.8; }
  50% { transform: translateY(-10px) translateX(-10px); opacity: 0.5; }
  75% { transform: translateY(-40px) translateX(20px); opacity: 0.7; }
}

.hero-title {
  animation: heroTitleIn 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}
@keyframes heroTitleIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  animation: heroFadeIn 1s 0.2s ease-out both;
}
.hero-subtitle {
  animation: heroFadeIn 1s 0.4s ease-out both;
}
.hero-ctas {
  animation: heroFadeIn 1s 0.6s ease-out both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll-indicator { animation: heroScrollPulse 2s ease-in-out infinite; }
@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(5px); }
}

/* ─── About ─── */
.about-img-wrapper { position: relative; z-index: 1; }
.about-accent--2 {
  background: linear-gradient(135deg, #ccfbef, #f0fdf9);
}

/* ─── Stats ─── */
.stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1;
}

/* ─── Cards ─── */
.card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(10,37,64,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(10,37,64,0.1);
}
.card-img-wrap {
  height: 200px;
  box-shadow: 0 8px 24px rgba(10,37,64,0.08);
  transition: box-shadow 0.4s ease;
}
.card:hover .card-img-wrap { box-shadow: 0 12px 32px rgba(10,37,64,0.14); }
.card-img { transition: transform 0.6s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d9488;
  background: rgba(20,184,166,0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  width: fit-content;
}
.card-badge--popular {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
}
.card-title { color: #0a2540; }
.card-desc { font-size: 0.95rem; }
.card-features { margin-bottom: 1rem; }
.card-feature { display: flex; align-items: center; gap: 0.5rem; }

/* ─── Benefits ─── */
.benefits-grid {
  display: grid;
  gap: 2rem;
}
.benefit-item {
  padding: 1.5rem;
  border-radius: 1rem;
  transition: background 0.3s ease;
}
.benefit-item:hover { background: #f0fdf9; }
.benefit-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #f0fdf9, #ccfbef);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d9488;
  transition: transform 0.3s ease;
}
.benefit-item:hover .benefit-icon { transform: scale(1.1) rotate(5deg); }
.benefit-desc { font-size: 0.95rem; }

/* ─── Community ─── */
.community-gradient {
  background: linear-gradient(135deg, #040a14 0%, #0a2540 40%, #0d3b5e 70%, #0f4a5c 100%);
}
.community-card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.community-card:hover { transform: translateY(-4px); }
.community-card-img {
  height: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.community-card-img-inner { transition: transform 0.6s ease; }
.community-card:hover .community-card-img-inner { transform: scale(1.05); }

/* ─── Contact Form ─── */
.input-field {
  background: #fff;
  border: 1.5px solid rgba(10,37,64,0.12);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #0a2540;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  width: 100%;
}
.input-field::placeholder { color: rgba(10,37,64,0.35); }
.input-field:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
}
.input-field:invalid:not(:placeholder-shown) { border-color: #ef4444; }
.contact-form {
  box-shadow: 0 20px 60px rgba(10,37,64,0.08);
}
.contact-icon {
  transition: transform 0.3s ease;
}
.contact-info-item:hover .contact-icon { transform: scale(1.1); }

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-animated {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.reveal-animated.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stat { transition: transform 0.3s ease; }
.reveal-stat:hover { transform: translateY(-3px); }

/* ─── Mobile Menu ─── */
#mobile-menu { transition: opacity 0.3s ease, visibility 0.3s ease; }
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu.closed { opacity: 0; pointer-events: none; }
.mobile-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.mobile-link:hover { opacity: 1; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-orb--1 { width: 280px; height: 280px; }
  .hero-orb--2 { width: 180px; height: 180px; }
  .hero-orb--3 { width: 120px; height: 120px; }
  .about-accent { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
  .community-card-img { height: 160px; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-default {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal-default.reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@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; }
}
