/* ================================================================
   KENNEDY MESFUN — PERSONAL SITE
   Theme: Professional systems portfolio
   ================================================================ */

/* ===== VARIABLES ===== */
:root {
  --bg:        #0b1020;
  --bg2:       #111827;
  --bg-card:   rgba(17, 24, 39, 0.9);
  --cyan:      #2dd4bf;
  --purple:    #818cf8;
  --green:     #34d399;
  --gold:      #f59e0b;
  --orange:    #f97316;
  --text:      #f3f4f6;
  --text2:     #a7b0c0;
  --border:    rgba(148, 163, 184, 0.2);
  --glow-c:    rgba(45, 212, 191, 0.26);
  --glow-p:    rgba(129, 140, 248, 0.26);
  --grad:      linear-gradient(135deg, var(--cyan), var(--purple));
  --gloss:     linear-gradient(180deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0) 55%);
  --ff-head:   'Space Grotesk', sans-serif;
  --ff-mono:   'JetBrains Mono', monospace;
  --ff-body:   'Inter', sans-serif;
  --radius:    12px;
  --nav-h:     64px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background:
    radial-gradient(circle at 18% 12%, rgba(45, 212, 191, 0.08), transparent 32%),
    radial-gradient(circle at 80% 4%, rgba(129, 140, 248, 0.1), transparent 36%),
    var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3 { font-family: var(--ff-head); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }
code, .mono { font-family: var(--ff-mono); }

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 7, 20, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
#navbar.scrolled { background: rgba(7, 7, 20, 0.97); }

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--ff-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
  transition: text-shadow 0.3s;
}
.nav-logo:hover { text-shadow: 0 0 16px var(--cyan); }
.logo-bracket { color: var(--purple); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-link:hover,
.nav-link.active { color: var(--cyan); border-color: var(--cyan); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ===== SECTION LAYOUT ===== */
section { position: relative; z-index: 2; }
.section-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-hdr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}
.sec-tag {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--purple);
  white-space: nowrap;
}
.sec-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}
.sec-desc {
  color: var(--text2);
  font-size: 0.95rem;
  margin-top: -36px;
  margin-bottom: 40px;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  padding-top: var(--nav-h);
  padding-bottom: 60px;
  width: 100%;
}

/* Status badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: var(--ff-mono);
  color: var(--cyan);
  margin-bottom: 28px;
  /* Web 2.0 gloss */
  position: relative;
  overflow: hidden;
}
.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gloss);
  border-radius: inherit;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 8px var(--green); opacity: 1; }
  50%      { box-shadow: 0 0 18px var(--green); opacity: 0.7; }
}

/* Hero name */
.hero-name {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.name-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-role {
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 22px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.8;
}
.hero-desc strong { color: var(--text); }

/* Company pills — Web 2.0 style */
.co-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  margin: 0 2px;
}
.co-pill::before { content: ''; position: absolute; inset: 0; background: var(--gloss); }
.co-pill.google    { background: #4285f4; color: #fff; }
.co-pill.msft      { background: #00a4ef; color: #fff; }
.co-pill.yahoo     { background: #7b0099; color: #fff; }

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Web 2.0 glossy buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: rgba(255,255,255,0.16);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  color: #07111f;
  box-shadow: 0 4px 20px rgba(45,212,191,0.24), inset 0 -2px 0 rgba(0,0,0,0.16);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(45,212,191,0.34), inset 0 -2px 0 rgba(0,0,0,0.16); }

.btn-secondary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(129,140,248,0.28), inset 0 -2px 0 rgba(0,0,0,0.2);
}
.btn-secondary:hover { box-shadow: 0 6px 28px rgba(129,140,248,0.4), inset 0 -2px 0 rgba(0,0,0,0.2); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--cyan); color: var(--cyan); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-n {
  display: block;
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-l {
  display: block;
  font-size: 0.72rem;
  color: var(--text2);
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--text2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float-cue 2.5s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}
@keyframes float-cue {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}
/* Hide scroll cue on short viewports to prevent overlap */
@media (max-height: 820px) { .scroll-cue { display: none; } }

/* ===== ABOUT ===== */
#about { background: rgba(10, 8, 28, 0.6); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

/* ---- Avatar ---- */
.avatar-wrap {
  position: relative;
  width: 164px;
  height: 164px;
  margin: 0 auto 32px;
}
@keyframes spin-a { to { transform: rotate(360deg); } }

.orb-core {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.orb-initials {
  font-family: var(--ff-head);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

/* Contact pills */
.about-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.pill-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.pill-link::before { content: ''; position: absolute; inset: 0; background: var(--gloss); }
.pill-link:hover { background: rgba(0,229,255,0.08); color: var(--cyan); border-color: var(--cyan); }
.pill-link.linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.pill-link.gh:hover { color: #fff; border-color: #fff; }
.pill-link.edu { cursor: default; }

/* Cert badges */
.cert-badges { display: flex; flex-direction: column; gap: 6px; }
.cert {
  display: block;
  font-size: 0.72rem;
  font-family: var(--ff-mono);
  color: var(--text2);
  padding: 5px 10px;
  background: rgba(255,215,0,0.05);
  border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

/* ---- Bio text ---- */
.about-body {
  margin-bottom: 36px;
}
.about-lede {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  font-family: var(--ff-head);
  line-height: 1.5;
}
.about-body p {
  color: var(--text2);
  margin-bottom: 16px;
  font-size: 0.97rem;
}
.about-body p strong { color: var(--text); }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.impact-card {
  min-height: 104px;
  padding: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.impact-metric {
  font-family: var(--ff-head);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
}
.impact-label {
  color: var(--text2);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Skills */
.skills-block {}
.skills-hdr {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 20px;
}
.skills-cats { display: flex; flex-direction: column; gap: 20px; }
.skill-cat-lbl {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.sk {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  font-family: var(--ff-mono);
  color: var(--text2);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.sk::before { content: ''; position: absolute; inset: 0; background: var(--gloss); }
.sk:hover {
  background: rgba(0,229,255,0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,229,255,0.2);
}
.sk.hl {
  background: rgba(0,229,255,0.07);
  border-color: rgba(0,229,255,0.25);
  color: var(--cyan);
}
.sk.hl:hover { box-shadow: 0 4px 16px rgba(0,229,255,0.35); }

/* ===== PROJECTS ===== */
#projects {}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.proj-loading {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px;
  color: var(--text2);
  font-family: var(--ff-mono);
  font-size: 0.85rem;
}
.loading-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(0,229,255,0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin-a 0.8s linear infinite;
}

/* Project cards */
.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}
.proj-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.26);
  border-color: rgba(45,212,191,0.4);
}

/* Card body */
.proj-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.proj-category {
  color: var(--cyan);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}
.proj-external {
  color: var(--text2);
  font-size: 1.05rem;
  transition: color 0.2s;
}
.proj-external:hover { color: var(--cyan); }
.proj-name {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.proj-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}
.proj-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--text2);
  flex-wrap: wrap;
}
.proj-lang {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.proj-updated { margin-left: auto; opacity: 0.7; }
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.78rem;
  font-family: var(--ff-mono);
  color: var(--cyan);
  transition: gap 0.2s;
}
.proj-link:hover { gap: 10px; }

/* ===== EXPERIENCE / TIMELINE ===== */
#experience { background: rgba(10, 8, 28, 0.6); }

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 64px;
}

.tl-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 24px;
  padding-bottom: 48px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.tl-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  animation: pulse-ring 2.5s ease-in-out infinite;
}
.dot-yahoo  { background: #7b0099; border-color: #bd00ff; box-shadow: 0 0 12px #bd00ff; }
.dot-yahoo::after  { border: 1px solid rgba(189,0,255,0.4); }
.dot-google { background: #4285f4; border-color: #00e5ff; box-shadow: 0 0 12px #00e5ff; }
.dot-google::after { border: 1px solid rgba(0,229,255,0.4); }
.dot-msft   { background: #00a4ef; border-color: #00e5ff; box-shadow: 0 0 12px #00a4ef; }
.dot-msft::after   { border: 1px solid rgba(0,164,239,0.4); }
@keyframes pulse-ring {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.8); opacity: 0; }
}

.tl-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--border) 0%, transparent 100%);
  margin-top: 8px;
}

/* Timeline card */
.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.tl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
[data-company="yahoo"]  .tl-card::before { background: linear-gradient(90deg, #7b0099, #bd00ff); }
[data-company="google"] .tl-card::before { background: linear-gradient(90deg, #4285f4, #34a853); }
[data-company="microsoft"] .tl-card::before { background: linear-gradient(90deg, #00a4ef, #00bcf2); }
.tl-item:hover .tl-card::before { opacity: 1; }
.tl-item:hover .tl-card { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

.tl-card-hdr {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

/* Company badges — Web 2.0 skeuomorphic */
.co-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 900;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.co-badge::before { content: ''; position: absolute; inset: 0; background: var(--gloss); }
.badge-yahoo  { background: linear-gradient(135deg, #5b0073, #9900cc); color: #fff; }
.badge-google { background: linear-gradient(135deg, #3367d6, #4285f4); color: #fff; }
.badge-msft   { background: linear-gradient(135deg, #0078d4, #00bcf2); color: #fff; }

.tl-meta h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tl-company {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 6px;
}
.tl-details {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text2);
  flex-wrap: wrap;
}
.tl-details i { margin-right: 4px; }

/* Ribbon — Web 2.0 */
.ribbon {
  position: absolute;
  top: -6px; right: -6px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-family: var(--ff-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.ribbon::before { content: ''; position: absolute; inset: 0; background: var(--gloss); }
.ribbon-yahoo { background: linear-gradient(135deg, #7b0099, #bd00ff); color: #fff; }

.tl-bullets {
  margin-bottom: 20px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-bullets li {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.tl-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}
.metric {
  font-family: var(--ff-mono);
  font-weight: 700;
  color: var(--green);
  font-style: normal;
  margin-right: 6px;
}

.tl-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tl-techs span {
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  font-size: 0.7rem;
  font-family: var(--ff-mono);
  color: var(--cyan);
}

/* Education block */
.edu-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
}
.edu-icon {
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.edu-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.edu-school {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 8px;
}
.edu-courses {
  font-size: 0.8rem;
  color: var(--text2);
}

/* ===== RESUME ===== */
#resume {}

.resume-wrap {}
.resume-actions-top {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.resume-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 860px;
  position: relative;
  overflow: hidden;
}
.resume-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}

.resume-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.rc-name {
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.rc-title {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--text2);
}
.rc-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text2);
  text-align: right;
}
.rc-contact i { margin-right: 5px; color: var(--cyan); }
.rc-contact a { color: var(--cyan); }

.rc-summary {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.rc-section { margin-bottom: 24px; }
.rc-section-title {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.rc-skills-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.rc-skills-table td {
  padding: 5px 8px;
  color: var(--text2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.rc-skills-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  padding-right: 20px;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
}

.rc-job { margin-bottom: 16px; }
.rc-job-hdr {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.rc-job-hdr strong { color: var(--text); }
.rc-job-hdr span { color: var(--text2); font-family: var(--ff-mono); font-size: 0.75rem; }
.rc-job ul { padding-left: 0; }
.rc-job li {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.rc-job li::before { content: '–'; position: absolute; left: 0; color: var(--cyan); }

.rc-certs {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rc-certs li {
  font-size: 0.82rem;
  color: var(--text2);
  padding-left: 14px;
  position: relative;
}
.rc-certs li::before { content: '–'; position: absolute; left: 0; color: var(--gold); }

/* ===== CONTACT ===== */
#contact { background: rgba(10, 8, 28, 0.6); }

.contact-wrap { max-width: 720px; }

.contact-lede {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
}

.cc {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.cc::before { content: ''; position: absolute; inset: 0; background: var(--gloss); }
.cc:hover {
  border-color: var(--cyan);
  box-shadow: 0 6px 24px rgba(0,229,255,0.15);
  transform: translateX(4px);
}
.cc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cc-email { background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }
.cc-li    { background: rgba(10,102,194,0.15); color: #0a66c2; border: 1px solid rgba(10,102,194,0.3); }
.cc-gh    { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.1); }

.cc-body { flex: 1; }
.cc-lbl  { display: block; font-size: 0.72rem; font-family: var(--ff-mono); color: var(--text2); text-transform: uppercase; letter-spacing: 0.1em; }
.cc-val  { display: block; font-size: 0.92rem; color: var(--text); margin-top: 2px; }
.cc-arr  { color: var(--text2); transition: color 0.2s, transform 0.2s; }
.cc:hover .cc-arr { color: var(--cyan); transform: translateX(4px); }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-logo {
  font-family: var(--ff-mono);
  font-size: 1.1rem;
  color: var(--cyan);
  font-weight: 700;
}
footer p {
  font-size: 0.8rem;
  color: var(--text2);
}
.footer-stack { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.fp {
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-family: var(--ff-mono);
  color: var(--text2);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-left { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
  .avatar-wrap { width: 140px; height: 140px; margin: 0; }
  .about-pills { gap: 8px; }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(7,7,20,0.97); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .scroll-cue { display: none; }

  .hero-stats { gap: 16px; }
  .stat-n { font-size: 1.5rem; }
  .stat-sep { height: 24px; }

  .projects-grid { grid-template-columns: 1fr; }

  .tl-item { grid-template-columns: 24px 1fr; gap: 16px; }
  .tl-card { padding: 20px; }

  .resume-card { padding: 28px 20px; }
  .resume-card-hdr { flex-direction: column; }
  .rc-contact { text-align: left; }

  .about-left { grid-template-columns: 1fr; }
  .avatar-wrap { margin: 0 auto 24px; width: 160px; height: 160px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-stats { justify-content: center; }
  .stat-sep:nth-child(6) { display: none; }
  .tl-spine { display: none; }
  .tl-item { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
}

/* Use normal scrolling so recruiters can skim at their own pace. */
html { overflow-y: scroll; }

/* ===== NAV ACTIONS ===== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================================================================
   EXPERIENCE TABS
   ================================================================ */
.exp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.etab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}
.etab::before { content: ''; position: absolute; inset: 0; background: var(--gloss); }
.etab:hover {
  background: rgba(0,229,255,0.06);
  border-color: rgba(0,229,255,0.3);
}
.etab.active {
  background: rgba(0,229,255,0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,229,255,0.15);
}
.etab-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}
.etab-logo-yahoo { color: #bd00ff; }
.etab-info { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.etab-co {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--ff-head);
}
.etab-yr {
  font-size: 0.65rem;
  color: var(--text2);
  font-family: var(--ff-mono);
}
.etab.active .etab-co { color: var(--cyan); }

/* Panels */
.exp-panels { position: relative; }
.exp-panel { display: none; }
.exp-panel.active { display: block; }

.ep-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
}
.ep-company {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  margin-top: 4px;
}
.ep-bullets {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.ep-bullets li {
  font-size: 0.86rem;
  color: var(--text2);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.ep-bullets li::before { content: '›'; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.ep-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ep-techs span {
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  font-size: 0.7rem;
  font-family: var(--ff-mono);
  color: var(--cyan);
}
.ep-edu-desc {
  font-size: 0.86rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px;
}
.ep-course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.ep-course {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text2);
}
.ep-course i { color: var(--cyan); }
.ep-certs { margin-top: 4px; }
.ep-certs h4 {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}
.badge-edu {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.25);
  flex-shrink: 0;
}

/* Resume highlights */
.rc-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.rc-hl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,229,255,0.04);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 8px;
}
.rc-hl-metric {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.rc-hl span:last-child { font-size: 0.78rem; color: var(--text2); }

@media (max-width: 768px) {
  .exp-tabs { gap: 6px; }
  .etab { padding: 8px 12px; }
  .ep-course-grid { grid-template-columns: 1fr; }
  .rc-highlights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .rc-highlights { grid-template-columns: 1fr; }
  .exp-tabs { flex-direction: row; overflow-x: auto; }
}
/* Hide scroll cue on short viewports */
@media (max-height: 820px) { .scroll-cue { display: none; } }
