@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Merriweather:wght@400;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1a3557;
  --blue:    #2563eb;
  --teal:    #0d9488;
  --sky:     #0ea5e9;
  --bg:      #f4f7fb;
  --surface: #ffffff;
  --border:  #dde3ee;
  --text:    #1a2333;
  --muted:   #64748b;
  --light:   #e8eef8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }
.font-serif   { font-family: 'Merriweather', Georgia, serif; }

/* ─── NAVBAR ─── */
#navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(26,53,87,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(26,53,87,0.10);
  transform: translateY(-2px);
}
.card-flat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, #1a3557 0%, #2563eb 60%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── HERO ─── */
.hero-bg {
  background: linear-gradient(135deg, #0f2340 0%, #1a3557 50%, #1e4d7b 100%);
}

/* ─── SECTION LABEL ─── */
.section-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: #e8eef8;
  color: var(--navy);
  border: 1px solid #c8d5ea;
}

/* ─── SECTION DIVIDER ─── */
.section-divider {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 99px;
  margin: 12px auto 0;
}
.section-divider-left { margin-left: 0; }

/* ─── TAGS ─── */
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  background: #e8eef8;
  color: var(--navy);
  border: 1px solid #c8d5ea;
}
.tag-teal   { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.tag-blue   { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.tag-violet { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.tag-rose   { background: #fce7f3; color: #be185d; border-color: #fbcfe8; }
.tag-amber  { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.tag-green  { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.tag-sky    { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }

/* ─── MEMBER PHOTOS ─── */
.member-photo-round {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 2px 12px rgba(26,53,87,0.15);
}
.member-photo-lg {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(26,53,87,0.15);
}
.member-card-photo {
  width: 100%; aspect-ratio: 1 / 1.1;
  object-fit: cover;
  object-position: top center;
}

/* ─── AVATAR FALLBACK ─── */
.avatar-initials {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 22px;
  color: white; flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 2px 12px rgba(26,53,87,0.15);
}
.avatar-initials-lg {
  width: 130px; height: 130px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 34px;
  color: white;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(26,53,87,0.15);
}

/* ─── NAV ACTIVE ─── */
.nav-active { color: var(--blue) !important; font-weight: 600 !important; }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── GALLERY ─── */
.gallery-grid { columns: 3; column-gap: 10px; }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
}
.gallery-item img { width: 100%; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,53,87,0.45), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; align-items: flex-end; padding: 12px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ─── LIGHTBOX ─── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,20,40,0.94);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
#lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: white; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#lb-close:hover { background: rgba(255,255,255,0.22); }
#lb-prev, #lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: white; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.22); }
#lb-prev { left: 18px; }
#lb-next { right: 18px; }

/* ─── FILTER TABS ─── */
.filter-btn {
  padding: 7px 18px; border-radius: 99px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--border);
  color: var(--muted); background: white; cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover  { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ─── PUB ITEM ─── */
.pub-border { border-left: 3px solid #c8d5ea; padding-left: 14px; transition: border-color 0.2s; }
.pub-border:hover { border-color: var(--blue); }

/* ─── FORM INPUT ─── */
.form-input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* ─── STAT CARD (hero) ─── */
.stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px; backdrop-filter: blur(10px);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c8d5ea; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ─── HERO PARTICLE CANVAS ─── */
#particleCanvas { position: absolute; inset: 0; pointer-events: none; opacity: 0.25; }

/* ─── LINE CLAMP ─── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
