/* ================================================================
   TAHERAMINE.ORG — CYBER DARK DESIGN SYSTEM v2.0
   ================================================================ */

/* === DESIGN TOKENS === */
:root {
  --bg-0: #040810;
  --bg-1: #070d1a;
  --bg-2: #0b1221;
  --bg-3: #101827;
  --surface:   #0d1628;
  --surface-2: #121e35;

  --cyan:       #00d4ff;
  --cyan-dim:   rgba(0, 212, 255, 0.09);
  --cyan-glow:  rgba(0, 212, 255, 0.28);
  --purple:     #9b71f5;
  --purple-dim: rgba(155, 113, 245, 0.09);
  --green:      #10db8e;
  --green-dim:  rgba(16, 219, 142, 0.09);
  --amber:      #f59e0b;
  --red:        #ef4444;

  --text-1: #eef2f8;
  --text-2: #8896aa;
  --text-3: #4d5d72;

  --border-s: rgba(0, 212, 255, 0.07);
  --border-m: rgba(0, 212, 255, 0.16);
  --border-a: rgba(0, 212, 255, 0.34);

  --f-display: 'Syne', sans-serif;
  --f-body:    'Manrope', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-card: 0 4px 28px rgba(0,0,0,0.55), 0 0 0 1px var(--border-s);
  --shadow-glow: 0 0 48px rgba(0, 212, 255, 0.07);
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background-color: var(--bg-0);
  color: var(--text-1);
  margin: 0; padding: 0;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.7;
}

/* Dot-grid texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(0,212,255,0.035) 0%, transparent 48%),
    radial-gradient(circle at 82% 78%, rgba(155,113,245,0.035) 0%, transparent 48%),
    radial-gradient(rgba(0,212,255,0.055) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px;
  pointer-events: none;
  z-index: 0;
}
.wrapper { position: relative; z-index: 1; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  color: var(--text-1);
  margin: 0;
}
a { transition: color 0.2s; }
img { max-width: 100%; }
p { margin: 0; }

/* === NAVBAR === */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-s);
  padding: 0.875rem 0;
  transition: background 0.3s, border-color 0.3s;
}
.site-nav.scrolled {
  background: rgba(4, 8, 16, 0.97);
  border-bottom-color: var(--border-m);
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 600;
  color: #000;
}
.logo-name {
  font-family: var(--f-display); font-weight: 700;
  font-size: 0.93rem; color: var(--text-1); display: block; line-height: 1.2;
}
.logo-sub {
  font-family: var(--f-mono); font-size: 0.58rem;
  color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase;
}

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; padding: 0.4rem 0.85rem;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-1); background: var(--cyan-dim);
}
.nav-cta {
  font-size: 0.8rem; font-weight: 700;
  color: #000 !important; background: var(--cyan) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--r-sm) !important; margin-left: 8px;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); background: var(--cyan) !important; }

.nav-toggler {
  background: transparent; border: 1px solid var(--border-m);
  border-radius: var(--r-sm); padding: 0.38rem 0.55rem;
  color: var(--text-2); cursor: pointer; font-size: 1.05rem;
  display: none;
}

@media (max-width: 991px) {
  .nav-toggler { display: flex; align-items: center; }
  .nav-menu {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(4,8,16,0.98);
    border-bottom: 1px solid var(--border-m);
    padding: 1rem 1.5rem;
    flex-direction: column; align-items: flex-start; gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-links a { display: block; padding: 0.55rem 0.85rem; }
  .nav-cta { margin-left: 0 !important; margin-top: 8px; display: inline-block; }
}

/* === HERO === */
#hero {
  min-height: 100vh; padding: 120px 0 80px;
  display: flex; align-items: center;
  overflow: hidden; position: relative;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
}
.orb-1 {
  width: 550px; height: 550px;
  background: rgba(0, 212, 255, 0.055);
  top: -100px; right: -80px;
  animation: orb-pulse 8s ease-in-out infinite;
}
.orb-2 {
  width: 420px; height: 420px;
  background: rgba(155, 113, 245, 0.05);
  bottom: -80px; left: -60px;
  animation: orb-pulse 10s ease-in-out infinite reverse;
}
@keyframes orb-pulse {
  0%,100% { transform: scale(1); opacity:1; }
  50%      { transform: scale(1.15); opacity:0.55; }
}

.hero-content { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--f-mono); font-size: 0.68rem;
  color: var(--cyan); letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.4rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--cyan); }

.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 0.5rem;
}
.name-grad {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-role {
  font-family: var(--f-mono); font-size: 0.83rem; color: var(--text-2);
  margin-bottom: 1.5rem; letter-spacing: 0.02em;
}
.hero-desc {
  color: var(--text-2); font-size: 0.96rem; line-height: 1.75;
  max-width: 490px; margin-bottom: 2rem;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 2rem; }
.chip {
  font-family: var(--f-mono); font-size: 0.62rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.28rem 0.8rem; border-radius: 100px;
  border: 1px solid var(--border-m); color: var(--text-3); background: var(--bg-2);
}
.chip.hi { border-color: rgba(0,212,255,0.3); color: var(--cyan); background: var(--cyan-dim); }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-p {
  font-family: var(--f-body); font-weight: 700; font-size: 0.85rem;
  color: #000; background: var(--cyan);
  padding: 0.7rem 1.65rem; border-radius: var(--r-sm);
  text-decoration: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-p:hover {
  background: #26dcff; color: #000;
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,212,255,0.28);
}
.btn-g {
  font-family: var(--f-body); font-weight: 600; font-size: 0.85rem;
  color: var(--text-1); background: transparent;
  padding: 0.7rem 1.65rem; border-radius: var(--r-sm);
  text-decoration: none; border: 1px solid var(--border-m);
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-g:hover {
  color: var(--cyan); border-color: var(--border-a);
  background: var(--cyan-dim); transform: translateY(-2px);
}

.social-row { display: flex; gap: 8px; }
.soc-a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-s); border-radius: var(--r-sm);
  color: var(--text-3); text-decoration: none; font-size: 0.85rem;
  transition: all 0.2s;
}
.soc-a:hover { color: var(--cyan); border-color: var(--border-m); background: var(--cyan-dim); }

/* Terminal */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--border-m);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.term-bar {
  background: var(--bg-3); padding: 0.65rem 1rem;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border-s);
}
.td { width: 10px; height: 10px; border-radius: 50%; }
.td-r { background: #ff5f57; } .td-y { background: #febc2e; } .td-g { background: #28c840; }
.term-title {
  font-family: var(--f-mono); font-size: 0.62rem;
  color: var(--text-3); margin-left: 6px; letter-spacing: 0.05em;
}
.term-body {
  padding: 1.25rem 1.5rem; font-family: var(--f-mono);
  font-size: 0.72rem; line-height: 1.9;
}
.t-prompt { color: var(--cyan); } .t-cmd { color: var(--text-1); }
.t-key { color: var(--purple); } .t-val { color: var(--green); }
.t-str { color: var(--amber); } .t-num { color: var(--cyan); }
.t-dim { color: var(--text-3); }
.cursor {
  display: inline-block; width: 7px; height: 13px;
  background: var(--cyan); vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

/* === STATS BAR === */
#stats {
  background: var(--bg-1);
  border-top: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-s);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--border-s);
}
@media (max-width: 991px) { .stat-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 575px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
.stat-item {
  background: var(--bg-1); padding: 1.75rem 1rem; text-align: center;
}
.stat-n {
  font-family: var(--f-display); font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 0.3rem;
}
.stat-l {
  font-size: 0.7rem; color: var(--text-3);
  font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}

/* === SECTION COMMONS === */
section { padding: 5.5rem 0; }

.s-label {
  font-family: var(--f-mono); font-size: 0.67rem; color: var(--cyan);
  letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem;
}
.s-label::before { content: '//'; color: var(--text-3); }

.s-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 1rem; line-height: 1.15;
}
.s-desc {
  color: var(--text-2); font-size: 0.94rem;
  line-height: 1.75; max-width: 530px;
}

/* === ABOUT === */
#about { background: var(--bg-1); }

.about-quote {
  background: var(--bg-2);
  border: 1px solid var(--border-s);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.93rem; color: var(--text-2);
  line-height: 1.75; font-style: italic; margin: 1.75rem 0;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.5rem; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 0.63rem; color: var(--text-2);
  border: 1px solid var(--border-s); border-radius: 100px;
  padding: 0.2rem 0.7rem; background: var(--bg-2);
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; }

.pos-list { margin-top: 2rem; }
.pos-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border-s);
}
.pos-item:last-child { border-bottom: none; }
.pos-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0; margin-top: 2px;
}
.pos-role { font-weight: 600; font-size: 0.88rem; color: var(--text-1); margin-bottom: 0.12rem; }
.pos-org { font-size: 0.77rem; color: var(--text-3); }

/* === CARD === */
.card-c {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-lg); padding: 1.75rem; height: 100%;
  transition: all 0.3s;
}
.card-c:hover {
  border-color: var(--border-m); background: var(--surface-2);
  transform: translateY(-4px); box-shadow: var(--shadow-card), 0 0 32px rgba(0,212,255,0.05);
}
.card-num { font-family: var(--f-mono); font-size: 0.6rem; color: var(--text-3); margin-bottom: 0.75rem; }
.card-icon-c {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 1rem;
}
.ic-c { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,212,255,0.18); }
.ic-p { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(155,113,245,0.18); }
.ic-g { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,219,142,0.18); }
.ic-a { background: rgba(245,158,11,0.1); color: var(--amber); border: 1px solid rgba(245,158,11,0.18); }
.card-cat {
  font-family: var(--f-mono); font-size: 0.6rem; color: var(--cyan);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; display: block;
}
.card-c h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-1); }
.card-c > p { font-size: 0.82rem; color: var(--text-2); line-height: 1.65; margin-bottom: 1rem; }
.card-c ul { list-style: none; padding: 0; margin: 0; }
.card-c ul li {
  font-size: 0.78rem; color: var(--text-2);
  padding: 0.28rem 0 0.28rem 1rem;
  position: relative; border-bottom: 1px solid var(--border-s);
}
.card-c ul li:last-child { border-bottom: none; }
.card-c ul li::before { content: '›'; position: absolute; left: 0; color: var(--cyan); }

/* === MEDIA & SPEAKING === */
#media { background: var(--bg-1); }

.event-item {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-md); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: all 0.25s; margin-bottom: 8px;
}
.event-item:last-child { margin-bottom: 0; }
.event-item:hover { border-color: var(--border-m); background: var(--surface-2); }
.event-badge {
  font-family: var(--f-mono); font-size: 0.58rem;
  padding: 0.2rem 0.55rem; border-radius: var(--r-sm);
  white-space: nowrap; flex-shrink: 0; font-weight: 500;
}
.ev-intl { background: rgba(0,212,255,0.1); color: var(--cyan); border: 1px solid rgba(0,212,255,0.2); }
.ev-nat  { background: rgba(16,219,142,0.1); color: var(--green); border: 1px solid rgba(16,219,142,0.2); }
.ev-reg  { background: rgba(155,113,245,0.1); color: var(--purple); border: 1px solid rgba(155,113,245,0.2); }
.event-name { font-weight: 600; font-size: 0.85rem; color: var(--text-1); margin-bottom: 0.1rem; }
.event-meta { font-size: 0.73rem; color: var(--text-3); }

.media-tile {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-md); padding: 1.25rem;
  text-align: center; transition: all 0.25s;
}
.media-tile:hover { border-color: var(--border-m); background: var(--surface-2); }
.media-logo { font-family: var(--f-display); font-weight: 800; font-size: 1rem; color: var(--text-1); margin-bottom: 0.2rem; }
.media-kind { font-family: var(--f-mono); font-size: 0.6rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }

/* === TESTIMONIALS === */
#testimonials { background: var(--bg-0); }

.testi-card {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-lg); padding: 1.75rem; height: 100%;
  display: flex; flex-direction: column; transition: all 0.3s;
}
.testi-card:hover { border-color: var(--border-m); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.testi-tag { font-family: var(--f-mono); font-size: 0.6rem; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.7rem; }
.testi-stars { color: var(--amber); font-size: 0.7rem; margin-bottom: 0.7rem; }
.testi-text { font-size: 0.86rem; color: var(--text-2); line-height: 1.75; font-style: italic; flex: 1; margin-bottom: 1.4rem; }
.testi-author { font-weight: 700; font-size: 0.84rem; color: var(--text-1); margin-bottom: 0.12rem; }
.testi-role { font-size: 0.73rem; color: var(--text-3); }

/* === BLOG === */
#blog { background: var(--bg-1); }

.blog-card {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: all 0.3s;
}
.blog-card:hover { border-color: var(--border-m); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.blog-stripe { height: 4px; background: linear-gradient(to right, var(--cyan), var(--purple)); }
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-family: var(--f-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.18rem 0.6rem; border-radius: 100px; display: inline-block; margin-bottom: 0.75rem;
}
.bc-c { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(0,212,255,0.2); }
.bc-p { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(155,113,245,0.2); }
.bc-g { background: var(--green-dim); color: var(--green); border: 1px solid rgba(16,219,142,0.2); }
.blog-title { font-weight: 700; font-size: 0.96rem; line-height: 1.4; margin-bottom: 0.6rem; }
.blog-title a { color: var(--text-1); text-decoration: none; transition: color 0.2s; }
.blog-title a:hover { color: var(--cyan); }
.blog-excerpt { font-size: 0.81rem; color: var(--text-2); line-height: 1.65; flex: 1; margin-bottom: 1.2rem; }
.blog-footer { display: flex; align-items: center; justify-content: space-between; }
.blog-date { font-family: var(--f-mono); font-size: 0.68rem; color: var(--text-3); }
.read-more {
  color: var(--cyan); text-decoration: none;
  font-size: 0.78rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px; transition: gap 0.2s;
}
.read-more:hover { gap: 9px; color: var(--cyan); }

/* === RESOURCES === */
#resources { background: var(--bg-0); }

.res-link {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-md); padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1.2rem;
  text-decoration: none; transition: all 0.25s;
}
.res-link:hover { border-color: var(--border-m); background: var(--surface-2); transform: translateX(5px); }
.res-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.res-name { font-weight: 600; font-size: 0.88rem; color: var(--text-1); margin-bottom: 0.12rem; }
.res-desc { font-size: 0.75rem; color: var(--text-3); }
.res-arr { margin-left: auto; color: var(--text-3); font-size: 0.9rem; transition: all 0.2s; }
.res-link:hover .res-arr { color: var(--cyan); transform: translateX(4px); }

/* === CTA === */
#cta { background: var(--bg-2); border-top: 1px solid var(--border-s); }
.cta-box {
  background: linear-gradient(135deg, var(--bg-3), rgba(0,212,255,0.025));
  border: 1px solid var(--border-m); border-radius: var(--r-xl);
  padding: 5rem 3rem; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 320px; height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan), transparent);
}
.cta-box::after {
  content: ''; position: absolute; bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(155,113,245,0.06), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cta-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-desc { color: var(--text-2); max-width: 520px; margin: 0 auto 2rem; font-size: 0.95rem; line-height: 1.75; }
.cta-email { font-family: var(--f-mono); font-size: 0.8rem; color: var(--cyan); opacity: 0.65; margin-top: 1.5rem; }

/* === FOOTER === */
.site-footer { background: var(--bg-0); border-top: 1px solid var(--border-s); padding: 2.5rem 0; }
.ft-name { font-family: var(--f-display); font-weight: 700; color: var(--text-1); font-size: 0.93rem; }
.ft-sub { font-family: var(--f-mono); font-size: 0.58rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.ft-links { display: flex; flex-wrap: wrap; gap: 2px; }
.ft-links a { font-size: 0.77rem; color: var(--text-3); text-decoration: none; padding: 0.28rem 0.6rem; border-radius: var(--r-sm); transition: color 0.2s, background 0.2s; }
.ft-links a:hover { color: var(--cyan); background: var(--cyan-dim); }
.ft-copy { font-size: 0.72rem; color: var(--text-3); margin-top: 0.4rem; }
.ft-social { display: flex; gap: 7px; }
.ft-soc {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-s); border-radius: var(--r-sm);
  color: var(--text-3); text-decoration: none; font-size: 0.8rem; transition: all 0.2s;
}
.ft-soc:hover { color: var(--cyan); border-color: var(--border-m); background: var(--cyan-dim); }

/* === PAGE HEADER === */
.page-hdr {
  padding: 120px 0 64px; background: var(--bg-1);
  border-bottom: 1px solid var(--border-s);
}
.page-hdr-lbl {
  font-family: var(--f-mono); font-size: 0.67rem; color: var(--cyan);
  letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem;
}
.page-hdr-lbl::before { content: '//'; color: var(--text-3); }
.page-hdr-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.page-hdr-desc { color: var(--text-2); font-size: 0.95rem; max-width: 550px; line-height: 1.75; }

/* === RESUME PAGE === */
.timeline-card {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-lg); padding: 1.75rem 2rem;
  margin-bottom: 10px; transition: all 0.25s; position: relative; overflow: hidden;
}
.timeline-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
  opacity: 0; transition: opacity 0.25s;
}
.timeline-card:hover { border-color: var(--border-m); background: var(--surface-2); }
.timeline-card:hover::before { opacity: 1; }
.tc-period { font-family: var(--f-mono); font-size: 0.67rem; color: var(--cyan); letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.tc-title { font-size: 0.96rem; font-weight: 700; margin-bottom: 0.18rem; }
.tc-org { font-size: 0.82rem; color: var(--text-2); }
.tc-loc { font-family: var(--f-mono); font-size: 0.66rem; color: var(--text-3); margin-top: 2px; }
.tc-desc { font-size: 0.82rem; color: var(--text-2); line-height: 1.65; margin-top: 0.75rem; }

.cert-chip {
  display: inline-block; font-family: var(--f-mono); font-size: 0.67rem;
  padding: 0.23rem 0.72rem; border-radius: var(--r-sm);
  border: 1px solid var(--border-s); background: var(--bg-2); color: var(--text-2);
  margin: 3px; transition: all 0.2s;
}
.cert-chip:hover { border-color: var(--border-m); color: var(--cyan); background: var(--cyan-dim); }

/* === CONTACT === */
.contact-card {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-lg); padding: 2rem 1.5rem; text-align: center; transition: all 0.3s;
}
.contact-card:hover { border-color: var(--border-m); transform: translateY(-4px); }
.contact-icon { font-size: 1.8rem; margin-bottom: 0.75rem; display: block; }
.contact-lbl { font-family: var(--f-mono); font-size: 0.63rem; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem; }
.contact-val { font-weight: 600; font-size: 0.9rem; color: var(--text-1); }
.contact-val a { color: var(--text-1); text-decoration: none; transition: color 0.2s; }
.contact-val a:hover { color: var(--cyan); }

/* === TESTIMONIALS PAGE === */
#testi-grid .testi-card { margin-bottom: 0; }

/* === UTILITIES === */
.text-c { color: var(--cyan) !important; }
.text-p { color: var(--purple) !important; }
.text-g { color: var(--green) !important; }
.text-a { color: var(--amber) !important; }
.text-dim { color: var(--text-2); }
.text-mute { color: var(--text-3); }

.link-c {
  color: var(--cyan); text-decoration: none; font-weight: 600;
  font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.link-c:hover { gap: 10px; color: var(--cyan); }

.divider-c { border: none; border-top: 1px solid var(--border-s); margin: 0; }

/* === ANIMATION === */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .cta-box { padding: 3rem 1.5rem; }
  .page-hdr { padding: 100px 0 50px; }
  .hero-name { font-size: 2.5rem; }
}

/* === YOUTUBE VIDEOS === */
#videos { background: var(--bg-1); }

.video-card {
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.video-card:hover {
  border-color: var(--border-m);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.video-wrap {
  position: relative; width: 100%; padding-bottom: 56.25%;
  height: 0; background: var(--bg-3);
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
.video-info { padding: 1rem 1.25rem 1.25rem; }
.video-tag {
  font-family: var(--f-mono); font-size: 0.58rem;
  padding: 0.18rem 0.55rem; border-radius: 4px;
  margin-bottom: 0.5rem; display: inline-block; font-weight: 500;
}
.video-title {
  font-weight: 600; font-size: 0.86rem; color: var(--text-1);
  line-height: 1.4; margin-bottom: 0.25rem;
}
.video-meta { font-size: 0.72rem; color: var(--text-3); }

/* === PRESS / MEDIA LOGOS === */
.press-logo {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-md); padding: 1rem;
  text-align: center; transition: all 0.25s; height: 100%;
}
.press-logo:hover { border-color: var(--border-m); background: var(--surface-2); }
.press-name { font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; color: var(--text-2); }
.press-type { font-family: var(--f-mono); font-size: 0.58rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.2rem; }

/* === SELECTED PROJECTS / STRATEGIC ENGAGEMENTS === */
.proj-card {
  background: var(--surface); border: 1px solid var(--border-s);
  border-radius: var(--r-lg); padding: 1.5rem;
  height: 100%; transition: all 0.3s; display: flex; gap: 1rem;
}
.proj-card:hover { border-color: var(--border-m); background: var(--surface-2); transform: translateY(-2px); }
.proj-num {
  font-family: var(--f-mono); font-weight: 700; font-size: 0.85rem;
  color: var(--cyan); flex-shrink: 0; width: 34px; height: 34px;
  border: 1px solid rgba(0,212,255,0.25); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; background: var(--cyan-dim);
}
.proj-title { font-weight: 700; font-size: 0.9rem; color: var(--text-1); margin-bottom: 0.35rem; line-height: 1.35; }
.proj-desc { font-size: 0.79rem; color: var(--text-2); line-height: 1.6; }

/* === ROLE STATUS BADGE (timeline) === */
.tc-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.15rem 0.55rem; border-radius: 100px; margin-left: 8px; vertical-align: middle;
}
.tc-status.is-current { background: rgba(16,219,142,0.1); color: var(--green); border: 1px solid rgba(16,219,142,0.25); }
.tc-status.is-current .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: inline-block; animation: glow-pulse 2s ease-in-out infinite; }
.tc-status.is-past { background: var(--bg-2); color: var(--text-3); border: 1px solid var(--border-s); }
@keyframes glow-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* === RESPONSIVE FIXES — NAVBAR === */
@media (max-width: 480px) {
  .logo-name {
    max-width: 150px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; font-size: 0.84rem;
  }
  .logo-sub { display: none; }
  .logo-mark { width: 30px; height: 30px; font-size: 0.7rem; }
}

/* === RESPONSIVE FIXES — TERMINAL === */
.term-body {
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
@media (max-width: 575px) {
  .term-body { font-size: 0.66rem; padding: 1.1rem 1.1rem; line-height: 1.85; }
  .term-title { font-size: 0.56rem; }
}

/* === RESPONSIVE FIXES — HERO === */
@media (max-width: 420px) {
  .hero-name { font-size: 2.15rem; }
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.14em; }
  .hero-role { font-size: 0.74rem; }
}

/* === RESPONSIVE FIXES — CARDS & TIMELINE === */
@media (max-width: 575px) {
  .timeline-card { padding: 1.35rem 1.35rem; }
  .card-c { padding: 1.35rem; }
  .cta-box { padding: 2.5rem 1.25rem; }
  .proj-card { padding: 1.25rem; gap: 0.75rem; }
  .proj-num { width: 30px; height: 30px; font-size: 0.76rem; }
}

/* === RESPONSIVE FIXES — STATS === */
@media (max-width: 575px) {
  .stat-n { font-size: 1.6rem; }
  .stat-item { padding: 1.4rem 0.75rem; }
  .stat-l { font-size: 0.62rem; }
}

/* === RESPONSIVE FIXES — VIDEO/MEDIA GRIDS === */
@media (max-width: 575px) {
  .video-info { padding: 0.9rem 1rem 1.1rem; }
  .media-tile { padding: 1rem; }
  .event-item { padding: 0.85rem 1rem; gap: 0.75rem; flex-wrap: wrap; }
}

/* === RESPONSIVE FIXES — GENERAL TEXT WRAP SAFETY === */
.tc-title, .tc-org, .pos-org, .card-c h3, .blog-title { overflow-wrap: break-word; word-break: break-word; }

/* === STICKY SIDEBAR (resume page) — prevents the short sidebar column from
   leaving a long dead-space gap beside a much longer main timeline column === */
@media (min-width: 992px) {
  .sticky-side {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border-m) transparent;
  }
  .sticky-side::-webkit-scrollbar { width: 5px; }
  .sticky-side::-webkit-scrollbar-thumb { background: var(--border-m); border-radius: 10px; }
  .sticky-side::-webkit-scrollbar-track { background: transparent; }
}

/* === TERMINAL — tighter, denser, higher-contrast box so it never reads as
   loose floating text === */
.terminal {
  background: var(--bg-3);
  border: 1px solid rgba(0, 212, 255, 0.22);
}
.term-body { line-height: 1.55; }
.term-body div { padding: 1px 0; }
