/* ============================================================
   TAKY TAHMID — PERSONAL & PROFESSIONAL SITE
   Style: Academic-Consultancy Hybrid
   ============================================================ */

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

:root {
  --navy:    #1B2A4A;
  --teal:    #1e8a8a;
  --teal-lt: #d4eeee;
  --gold:    #C9922A;
  --light:   #F5F7FA;
  --white:   #ffffff;
  --text:    #2c3e50;
  --muted:   #6c7a8d;
  --border:  #e0e6ef;
  --shadow:  0 4px 24px rgba(27,42,74,0.10);
  --radius:  12px;
  --font:    'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 90px 0; }
section:nth-child(even) { background: var(--light); }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(8px);
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--teal);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #2a4a6e 50%, #1e6b6b 100%);
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.hero-text { color: var(--white); }

.hero-tag {
  display: inline-block;
  background: rgba(201,146,42,0.25);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-text h1 span { color: var(--gold); }

.hero-text h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
}

/* UD Affiliation Badge */
.ud-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 33, 71, 0.55);
  border: 1px solid rgba(255, 198, 0, 0.55);
  color: #ffc600;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.ud-badge:hover {
  background: rgba(0, 33, 71, 0.8);
  color: #ffc600;
}

.hero-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 30px;
  line-height: 1.75;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: #166f6f; color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,138,138,0.4); }

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); transform: translateY(-2px); }

.hero-socials {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.2s, transform 0.2s;
}

.social-badge:hover { background: rgba(255,255,255,0.2); color: var(--white); transform: translateY(-2px); }
.social-badge svg, .social-badge img { width: 17px; height: 17px; }

/* ---------- SECTION TITLES ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  background: var(--teal-lt);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.highlight-item .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.skills-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.skills-panel h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 700;
}

.skill-row {
  margin-bottom: 16px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.skill-bar {
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  width: 0;
  transition: width 1.2s ease;
}

/* ---------- RESEARCH ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.research-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(27,42,74,0.14);
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--teal-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.badge-review  { background: #fff3cd; color: #856404; }
.badge-prep    { background: #cff4fc; color: #055160; }
.badge-progress{ background: #d1e7dd; color: #0a3622; }

.research-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.research-card p {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.75;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  font-size: 0.73rem;
  background: var(--light);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ---------- CONSULTING ---------- */
.consult-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(27,42,74,0.12);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- TEACHING ---------- */
.teaching-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.yt-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.yt-banner {
  background: linear-gradient(135deg, #FF0000, #cc0000);
  padding: 36px;
  text-align: center;
  color: white;
}

.yt-banner svg { width: 64px; height: 64px; margin-bottom: 14px; }
.yt-banner h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.yt-banner p  { font-size: 0.9rem; opacity: 0.88; }

.yt-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yt-body p { font-size: 0.92rem; color: var(--muted); line-height: 1.75; }

.teaching-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.teaching-text p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.8;
}

.topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.topic-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.topic-list li::before {
  content: '▸';
  color: var(--teal);
  font-weight: bold;
}

/* ---------- CV ---------- */
.cv-download-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.cv-download-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.download-icon {
  width: 80px;
  height: 80px;
  background: var(--teal-lt);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.cv-download-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.cv-download-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-link:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.contact-link-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 700;
}

.contact-link-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30,138,138,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 32px 28px;
  font-size: 0.85rem;
}

footer a { color: var(--gold); }
footer strong { color: var(--white); }

/* ---------- BACK TO TOP ---------- */
#back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(30,138,138,0.4);
  transition: background 0.2s, transform 0.2s;
  z-index: 999;
  font-size: 1.2rem;
  border: none;
}

#back-top:hover { background: var(--navy); transform: translateY(-2px); }
#back-top.show { display: flex; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 32px; }
  .hero-text p { margin: 0 auto 30px; }
  .hero-btns, .hero-socials { justify-content: center; }
  .about-grid, .teaching-inner, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cv-header { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 16px 20px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-text h1 { font-size: 2.1rem; }
  section { padding: 64px 0; }
  .section-header h2 { font-size: 1.7rem; }
  .cv-header, .cv-body { padding: 24px; }
}

/* ============================================================
   TOPICS CLOUD + MODAL
   ============================================================ */

/* --- Topics cloud --- */
.topics-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 50px;
  font-size: 0.93rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid var(--chip-color, var(--teal));
  color: var(--chip-color, var(--teal));
  background: var(--white);
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  letter-spacing: 0.2px;
}

.topic-chip:hover,
.topic-chip.active {
  background: var(--chip-color, var(--teal));
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

/* --- Modal overlay --- */
.topic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.72);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.topic-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* --- Modal box --- */
.topic-modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 38px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
  transform: scale(0.90) translateY(24px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topic-modal-overlay.open .topic-modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--light);
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  transition: background 0.2s, transform 0.15s;
  line-height: 1;
}

.modal-close:hover {
  background: var(--border);
  transform: scale(1.1);
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  padding-right: 40px;
}

.modal-icon {
  font-size: 2.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.modal-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  background: var(--teal-lt);
  padding: 3px 11px;
  border-radius: 20px;
  margin-bottom: 7px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.modal-summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.82;
  margin-bottom: 24px;
}

/* --- Key facts row --- */
.modal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.fact-box {
  background: var(--light);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.fact-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  display: block;
  line-height: 1.2;
}

.fact-desc {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 5px;
  display: block;
  line-height: 1.4;
}

/* --- Chart area --- */
.modal-chart-area {
  background: var(--light);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.chart-title {
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .topic-modal-box { padding: 24px 20px; }
  .modal-facts { grid-template-columns: repeat(2, 1fr); }
  .modal-title { font-size: 1.15rem; }
}

/* ============================================================
   TYPING ANIMATION
   ============================================================ */
.typing-cursor {
  display: inline-block;
  color: var(--gold);
  font-weight: 300;
  animation: blink 0.75s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   COUNTERS SECTION
   ============================================================ */
#counters {
  background: linear-gradient(135deg, var(--navy) 0%, #1e6b6b 100%);
  padding: 64px 0;
}

.counters-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.counter-item {
  text-align: center;
  padding: 28px 44px;
  position: relative;
  color: var(--white);
}

.counter-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.18);
}

.counter-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .counter-item { padding: 20px 24px; }
  .counter-item::after { display: none; }
  .counter-num { font-size: 2.2rem; }
}

/* ============================================================
   WORLD MAP SECTION
   ============================================================ */
#worldmap { background: var(--light); }

#map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

#research-map {
  height: 460px;
  width: 100%;
  z-index: 1;
}

.map-legend {
  background: var(--white);
  padding: 14px 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 600;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   CONSULTING FLOATING PILL
   ============================================================ */
#consult-pill {
  position: fixed;
  bottom: 82px;
  right: 28px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--teal);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(30,138,138,0.22);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  letter-spacing: 0.2px;
  text-decoration: none;
}

#consult-pill:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.pill-dot {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(46,204,113,0.5);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

@media (max-width: 640px) {
  #consult-pill { bottom: 76px; right: 16px; font-size: 0.76rem; padding: 8px 14px; }
}
