/* ═══════════════════════════════════════════
   ROOT & RESET
═══════════════════════════════════════════ */
:root {
  --red:        #f83030;
  --red-dim:    #a30a0a;
  --gold:       #de7a44;
  --gold-dim:   #b8922e;
  --blue:       #cfdfe3;
  --blue-dim:   #0078a0;
  --purple:     #9b5de5;
  --green:      #4caf50;
  --bg:         #080808;
  --bg-2:       #0f0f0f;
  --bg-3:       #161616;
  --border:     rgba(255,255,255,0.07);
  --text:       #e8e8e8;
  --text-dim:   #ffffff;
  --font-hud:   'Orbitron', monospace;
  --font-mono:  'Share Tech Mono', monospace;
  --font-body:  'Inter', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  cursor: pointer;
  position: relative;
}
strong { color: var(--gold); font-weight: 600; }

canvas {
  position: fixed; inset: 0;
  z-index: 1; opacity: 0.55;
  pointer-events: none;
}

/* CURSOR */
* { cursor: pointer !important; }

/* LOADER */
#loader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999; flex-direction: column; gap: 20px;
}
.loader-ring {
  width: 60px; height: 60px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  font-family: var(--font-mono); font-size: 0.85rem;
  letter-spacing: 3px; color: var(--red);
  opacity: 0; transition: opacity 0.4s ease; text-align: center;
}
.loader-text.show { opacity: 1; }

#main { display: block; position: relative; z-index: 10; background: transparent; }

/* NAVBAR */
#navbar {
  position: fixed; top: 0; width: 100%;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000; padding: 0 5%;
}
.nav-container {
  display: flex; justify-content: space-between;
  align-items: center; height: 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.hud-status { display: flex; flex-direction: column; gap: 4px; }
.glitch-logo {
  font-family: var(--font-hud); font-size: 1.3rem;
  font-weight: 700; color: var(--text); letter-spacing: 3px;
}
.glitch-logo span { color: var(--red); }
.status-indicators {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim); letter-spacing: 1px;
}
.pulse-dot {
  width: 7px; height: 7px; background: #00ff00;
  border-radius: 50%; animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.nav-links { display: flex; gap: 2px; align-items: center; flex-shrink: 1; min-width: 0; }
.nav-item {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 1px; color: var(--text-dim);
  text-decoration: none; padding: 6px 10px;
  border: 1px solid transparent; border-radius: 3px; transition: all 0.2s;
  white-space: nowrap;
}
.nav-item:hover {
  color: white; border-color: var(--red);
  background: rgba(0,102,255,0.08);
  box-shadow: 0 0 12px rgba(0,102,255,0.2);
}
#hud-clock {
  font-family: var(--font-mono); font-size: 0.95rem;
  color: var(--blue); letter-spacing: 2px; text-shadow: 0 0 8px var(--blue);
}
.scroll-progress-container { height: 3px; }
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(to right, var(--red-dim), var(--red));
  box-shadow: 0 0 8px rgba(248,48,48,0.7), 0 0 16px rgba(248,48,48,0.25);
  transition: width 0.1s linear;
}

/* SECTIONS SHARED */
section {
  padding: 100px 10%;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.section-header { margin-bottom: 60px; }
.section-tag {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 3px; color: var(--red);
  display: block; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-hud);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 120px 8% 80px;
  overflow: hidden; border-bottom: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
}
.hero-bg-grid {
  display: none;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; width: 100%; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  opacity: 1 !important;
}
.eyebrow-line { flex: 0 0 40px; height: 1px; background: var(--red); }
.eyebrow-text {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 3px; color: var(--red);
}
.hero-name { display: flex; flex-direction: column; margin-bottom: 24px; overflow: hidden; }
.name-line {
  font-family: var(--font-hud);
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  font-weight: 900; letter-spacing: 4px; line-height: 1.05;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
#nl1 { color: var(--red); }
.hero-title-strip {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.title-tag { font-family: var(--font-mono); font-size: 0.92rem; letter-spacing: 1.5px; color: var(--text-dim); }
.title-divider { color: var(--red); font-size: 0.7rem; }
.hero-status-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1.5px;
  padding: 5px 12px; border-radius: 20px;
}
.status-available {
  border: 1px solid rgba(45, 218, 103, 0.5);
  color: var(--green);
  background: rgba(45, 218, 103, 0.07);
}
.status-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.status-item {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1px;
  color: var(--text-dim);
}
.status-divider { color: var(--red); font-size: 0.7rem; opacity: 0.6; }

.hero-social-links {
  display: flex; align-items: center; gap: 10px;
}
.hero-social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 1.5px;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.hero-social-btn:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 12px rgba(255,50,50,0.15);
}
.social-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
}

.hero-location-strip {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.location-item {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 1px;
  color: var(--text-dim); opacity: 0.85;
}
.location-divider { color: var(--red); font-size: 0.65rem; opacity: 0.6; }
.hero-bio {
  font-size: 1rem; line-height: 1.7; color: var(--text-dim);
  max-width: 680px; margin-bottom: 36px;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; background: var(--black); color: rgb(164, 98, 98);
  text-decoration: none; font-family: var(--font-mono);
  font-size: 0.82rem; letter-spacing: 2px; border-radius: 4px;
  border: 1px solid var(--red); transition: all 0.2s;
  box-shadow: 0 0 20px rgba(0,102,255,0.3);
}
.btn-primary:hover { background: transparent; color: var(--red); box-shadow: 0 0 30px rgba(0,102,255,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; background: transparent; color: var(--text);
  text-decoration: none; font-family: var(--font-mono);
  font-size: 0.82rem; letter-spacing: 2px; border-radius: 4px;
  border: 1px solid var(--border); transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 20px rgba(245,197,66,0.15); }
.btn-arrow { transition: transform 0.2s; }
.btn-secondary:hover .btn-arrow { transform: translateX(4px); }
.hero-stats {
  display: flex; align-items: center; gap: 32px;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-family: var(--font-hud); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.stat-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 2px; color: var(--text-dim); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }


  50%{box-shadow:0 0 25px var(--gold),0 0 50px var(--gold);}
}
@keyframes fadeUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeIn  { from{opacity:0;} to{opacity:1;} }

/* ABOUT */
.cap-title { color: #3a8efc; }
#about { background: transparent; }
#experience { background: transparent; }
#skills { background: transparent; }
#projects { background: transparent; }
#contact-web { background: transparent; text-align: center; }
.about-grid {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 80px; align-items: start;
}
.about-block { margin-bottom: 28px; padding-left: 18px; border-left: 2px solid rgba(58,142,252,0.3); }
.about-block-title {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 2px; color: #3a8efc; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.about-block p { font-size: 0.92rem; line-height: 1.75; color: var(--text-dim); }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.badge {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 1.5px;
  padding: 5px 12px; border: 1px solid rgba(58,142,252,0.4);
  border-radius: 3px; color: #3a8efc; background: rgba(58,142,252,0.06);
}
.id-card {
  background: var(--bg-3); border: 1px solid rgba(58,142,252,0.3);
  border-radius: 12px; padding: 24px;
  box-shadow: 0 0 40px rgba(58,142,252,0.08);
}
.id-card-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.id-card-org,.id-card-type { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 2px; color: var(--text-dim); }
.id-card-type { color: #3a8efc; }
.id-card-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(58,142,252,0.4);
  overflow: hidden;
  margin: 0 auto 20px;
  background: rgba(199, 202, 206, 0.06);
  box-shadow: 0 0 20px rgba(58,142,252,0.2);
}
.avatar-placeholder { font-family: var(--font-hud); font-size: 1.2rem; color: #3a8efc; font-weight: 700; }
.id-field { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); align-items: center; }
.id-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 2px; color: var(--text-dim); }
.id-value { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); }
.accent-text { color: var(--gold); }
.green-text { color: #4caf50; }
.id-card-barcode {
  height: 28px; margin-top: 16px; opacity: 0.4; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(58,142,252,0.5) 0px, rgba(58,142,252,0.5) 2px, transparent 2px, transparent 5px);
}

/* EXPERIENCE */
.widow-title { color: var(--green); }
/* EXPERIENCE */
.dossier-folder {
  background: var(--bg-3); border: 1px solid rgba(55, 215, 84, 0.15);
  border-radius: 8px; margin-bottom: 16px; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dossier-folder:hover { border-color: rgba(45, 218, 103, 0.4); box-shadow: 0 0 20px rgba(0,102,255,0.06); }
.dossier-header {
  padding: 22px 28px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.dossier-header:hover { background: rgba(39, 134, 53, 0.04); }
.dossier-left { display: flex; align-items: center; gap: 16px; }
.dossier-icon { font-size: 1.2rem; color: var(--green); opacity: 0.7; }
.dossier-left h3 { font-size: 0.98rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.dossier-org { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); letter-spacing: 1px; }
.dossier-right { display: flex; align-items: center; gap: 16px; }
.dossier-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--green); letter-spacing: 1px; white-space: nowrap; }
.dossier-chevron { color: var(--text-dim); font-size: 1.3rem; transition: transform 0.3s; }
.dossier-header.open .dossier-chevron { transform: rotate(90deg); }
.dossier-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
}
.dossier-content.active { max-height: 400px; padding: 20px 28px; border-top: 1px solid var(--border); }
.dossier-content ul { list-style: none; padding: 0; }
.dossier-content li { display: flex; gap: 12px; margin-bottom: 10px; font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; align-items: flex-start; }
.bullet { color: var(--red); font-size: 0.65rem; margin-top: 6px; flex-shrink: 0; }
.dossier-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.d-tag {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 3px;
  border: 1px solid rgba(69, 175, 81, 0.25);
  color: var(--red); background: rgba(96, 114, 142, 0.05);
}

.dossier-folder.dossier-featured {
  border-color: rgba(255, 50, 50, 0.3);
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(255,50,50,0.03) 100%);
}
.dossier-folder.dossier-featured:hover { border-color: rgba(255, 50, 50, 0.6); box-shadow: 0 0 24px rgba(255,50,50,0.08); }
.dossier-folder.dossier-featured .dossier-icon { color: var(--red); opacity: 1; }
.dossier-content.active { max-height: 600px; padding: 20px 28px; border-top: 1px solid var(--border); }
.dossier-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 1.5px;
  padding: 2px 8px; border-radius: 3px;
  border: 1px solid var(--red); color: var(--red);
  margin-left: 10px; vertical-align: middle;
  opacity: 0.85;
}


.thor-title { color: var(--purple); }
.skills-wrapper { display: flex; flex-direction: column; gap: 44px; }
.skills-cat-title {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 3px;
  color: var(--text-dim); text-transform: uppercase; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.skill-row { display: flex; flex-direction: column; gap: 14px; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 7px; }
.skill-name { font-size: 0.92rem; font-weight: 500; color: var(--text); }
.skill-pct { font-family: var(--font-mono); font-size: 0.75rem; color: var(--blue); }
.power-bar { width: 100%; height: 3px; background: rgba(232, 228, 228, 0.06); border-radius: 10px; overflow: hidden; }
.charge {
  height: 100%; width: 0;
  background: linear-gradient(to right, var(--purple), var(--purple));
  box-shadow: 0 0 8px var(--purple); border-radius: 10px;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.skills-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1px;
  padding: 8px 18px; border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-dim); background: var(--bg-3); transition: all 0.2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); background: rgba(234, 235, 236, 0.05); box-shadow: 0 0 12px rgba(0,212,255,0.12); }

/* PROJECTS */
.panther-title { color: var(--purple); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.project-card {
  background: var(--bg-3); border: 1px solid rgba(155,93,229,0.2);
  border-radius: 10px; padding: 28px; cursor: pointer;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.project-card::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(155,93,229,0.08), transparent);
  opacity:0; transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover { border-color: rgba(155,93,229,0.5); box-shadow: 0 0 30px rgba(155,93,229,0.1); transform: translateY(-3px); }
.project-card:hover::before { opacity:1; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.project-meta { display: flex; align-items: center; gap: 10px; }
.project-tag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 1.5px;
  color: var(--purple); border: 1px solid rgba(155,93,229,0.3);
  padding: 3px 10px; border-radius: 2px;
}
.project-year { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); }
.active-status { font-family: var(--font-mono); font-size: 0.62rem; color: var(--green); letter-spacing: 1px; }
.project-title { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.project-summary { font-size: 0.88rem; line-height: 1.65; color: var(--text-dim); margin-bottom: 16px; }
.project-expand { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.project-card.active .project-expand { max-height: 300px; }
.project-detail { border-top: 1px solid var(--border); padding-top: 16px; }
.project-detail p { font-size: 0.85rem; line-height: 1.7; color: var(--text-dim); margin-bottom: 14px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 3px;
  border: 1px solid var(--border); color: var(--text-dim); background: rgba(255,255,255,0.02);
}
.project-footer { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.expand-hint { font-family: var(--font-mono); font-size: 0.62rem; color: var(--purple); opacity: 0.6; letter-spacing: 1px; transition: opacity 0.2s; }
.project-card:hover .expand-hint { opacity: 0; }
.project-card-ghost {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-style: dashed; border-color: rgba(255,255,255,0.07);
  min-height: 200px; cursor: default; background: transparent;
}
.project-card-ghost:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.09); }
.ghost-label { font-family: var(--font-hud); font-size: 1rem; letter-spacing: 4px; color: rgba(255,255,255,0.1); }
.ghost-sub { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.07); margin-top: 8px; letter-spacing: 2px; }

/* MODAL */
.modal {
  display: none; position: fixed; z-index: 10000;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  justify-content: center; align-items: center;
}
.modal-content {
  background: var(--bg-3); padding: 40px;
  border: 1px solid rgba(0,102,255,0.3);
  width: 90%; max-width: 480px; border-radius: 10px;
  box-shadow: 0 0 60px rgba(0,102,255,0.12);
  animation: slideUp 0.3s forwards;
}
@keyframes slideUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
.close-button { color: var(--text-dim); float: right; font-size: 24px; cursor: pointer; transition: color 0.2s; }
.close-button:hover { color: var(--gold); }
.modal-title { font-family: var(--font-hud); color: var(--red); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 6px; }
.modal-subtitle { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 24px; }
.contact-form label { display: block; margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1.5px; color: var(--gold); }
.contact-form input,.contact-form textarea {
  width: 100%; padding: 10px 12px; margin-top: 6px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); border-radius: 4px; font-family: var(--font-body);
  font-size: 0.9rem; transition: border-color 0.2s;
}
.contact-form input:focus,.contact-form textarea:focus { border-color: var(--red); outline: none; }
.submit-btn {
  background: var(--red); color: white; padding: 12px 24px;
  border: none; border-radius: 4px; font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 2px; cursor: pointer;
  transition: all 0.2s; width: 100%; margin-top: 8px;
}
.submit-btn:hover { background: var(--gold); color: black; }

/* CONTACT */
.spidey-title { color: var(--red); }
.contact-sub { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 48px; margin-top: -40px; }
.web-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; }
.web-link {
  text-decoration: none; background: var(--bg-3);
  border: 1px solid var(--border); padding: 28px 24px;
  width: 240px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; transition: all 0.25s;
}
.web-link:hover { border-color: var(--red); transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,102,255,0.1); background: rgba(0,102,255,0.03); }
.contact-icon { font-size: 1.4rem; font-style: normal; font-family: var(--font-mono); color: var(--red); font-weight: 700; }
.contact-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 2px; color: var(--text-dim); }
.contact-value { font-size: 0.92rem; color: var(--text); font-weight: 500; }
.availability-banner {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border: 1px solid rgba(76,175,80,0.3);
  border-radius: 30px; background: rgba(76,175,80,0.06);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 1.5px; color: var(--green);
}
.avail-dot {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; box-shadow: 0 0 8px var(--green); animation: blink 1.5s infinite;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero-arc-reactor { display: none; }
  .nav-links { gap: 0; }
  .nav-item { padding: 6px 8px; font-size: 0.75rem; }
}
@media (max-width: 600px) {
  section { padding: 70px 6%; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 1.2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .web-container { flex-direction: column; align-items: center; }
}

/* ── AI CHAT BUTTON ── */
#ai-chat-btn {
  position: fixed;
  bottom: 108px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(8,8,8,0.95);
  border: 1px solid rgba(0,102,255,0.5);
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--red);
  box-shadow: 0 0 20px rgba(0,102,255,0.2);
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}
#ai-chat-btn:hover {
  background: var(--red);
  color: white;
  box-shadow: 0 0 30px rgba(0,102,255,0.4);
  transform: translateY(-2px);
}
.ai-btn-icon { font-size: 0.9rem; animation: pulse-icon 2s infinite; }
@keyframes pulse-icon { 0%,100%{opacity:1} 50%{opacity:0.5} }

.nav-ai {
  color: var(--red) !important;
  border-color: rgba(0,102,255,0.3) !important;
  background: rgba(0,102,255,0.05) !important;
}
.nav-ai:hover {
  background: var(--red) !important;
  color: white !important;
}

/* ═══════════════════════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════════════════════ */
#theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
}
#theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px rgba(245,197,66,0.2);
}

/* ═══════════════════════════════════════════
   LIGHT MODE
═══════════════════════════════════════════ */
body.light-mode {
  background: #f5f5f0;
  color: #111111;
  --text:     #111111;
  --text-dim: #444444;
  --bg:       #f5f5f0;
  --bg-2:     #eeeeea;
  --bg-3:     rgba(255,255,255,0.8);
  --border:   rgba(0,0,0,0.1);
}
body.light-mode canvas { opacity: 0.75; }
body.light-mode .section-title,
body.light-mode h1, body.light-mode h2, body.light-mode h3,
body.light-mode h4, body.light-mode h5, body.light-mode h6 { color: #0a2a6e; }
body.light-mode p, body.light-mode li, body.light-mode span:not(.section-tag):not(.eyebrow-text):not(.pulse-dot) { color: #111111; }
body.light-mode #navbar { background: rgba(245,245,240,0.95); border-bottom: 1px solid rgba(0,0,0,0.1); }
body.light-mode .glitch-logo { color: #111; }
body.light-mode .nav-item { color: #555; }
body.light-mode .nav-item:hover { color: #111; background: rgba(0,102,255,0.06); }
body.light-mode #hud-clock { color: #0078a0; text-shadow: none; }

body.light-mode #theme-toggle { color: #555; border-color: rgba(0,0,0,0.15); }
body.light-mode #theme-toggle:hover { color: #0a2a6e; }

/* ── Light mode: red & gold → deep blue ── */
body.light-mode strong { color: #0a2a6e; }
body.light-mode .section-tag { color: #0a2a6e; }
body.light-mode .eyebrow-text { color: #0a2a6e; }
body.light-mode .eyebrow-line { background: #0a2a6e; }
body.light-mode #nl1 { color: #0a2a6e; }
body.light-mode .title-divider { color: #0a2a6e; }
body.light-mode .glitch-logo span { color: #0a2a6e; }
body.light-mode .scroll-progress-bar { background: linear-gradient(to right, #163a8a, #0a2a6e); box-shadow: 0 0 6px #0a2a6e; }
body.light-mode .loader-ring { border-top-color: #0a2a6e; }
body.light-mode .loader-text { color: #0a2a6e; }
body.light-mode .bullet { color: #0a2a6e; }
body.light-mode .accent-text { color: #0a2a6e; }
body.light-mode .stat-number { color: #0a2a6e; }
body.light-mode .pub-stat-num { color: #0a2a6e; }
body.light-mode .cert-title { color: #0a2a6e; }
body.light-mode .pub-title { color: #0a2a6e; }
body.light-mode .pub-tag { color: #0a2a6e; border-color: rgba(10,42,110,0.25); background: rgba(10,42,110,0.05); }
body.light-mode .pub-btn { background: #0a2a6e; color: white; }
body.light-mode .pub-btn:hover { background: transparent; color: #0a2a6e; border-color: #0a2a6e; }
body.light-mode .btn-primary { border-color: #0a2a6e; color: #0a2a6e; }
body.light-mode .btn-primary:hover { color: #0a2a6e; }
body.light-mode .btn-secondary:hover { border-color: #0a2a6e; color: #0a2a6e; box-shadow: 0 0 20px rgba(10,42,110,0.15); }
body.light-mode .contact-icon { color: #0a2a6e; }
body.light-mode .web-link:hover { border-color: #0a2a6e; }
body.light-mode .modal-title { color: #0a2a6e; }
body.light-mode .contact-form label { color: #0a2a6e; }
body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus { border-color: #0a2a6e; }
body.light-mode .submit-btn { background: #0a2a6e; }
body.light-mode .submit-btn:hover { background: #163a8a; color: white; }
body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus { border-color: #0a2a6e; }
body.light-mode .proj-btn-paper { color: #0a2a6e; border-color: rgba(10,42,110,0.35); background: rgba(10,42,110,0.07); }
body.light-mode .proj-btn-paper:hover { background: rgba(10,42,110,0.15); border-color: #0a2a6e; }
body.light-mode .spidey-title { color: #0a2a6e; }
body.light-mode .nav-item:hover { color: #0a2a6e; }
body.light-mode .close-button:hover { color: #0a2a6e; }
body.light-mode #hero { background: transparent; }
body.light-mode .hero-bg-grid { display: none; }
body.light-mode #about { background: transparent; }
body.light-mode #experience { background: transparent; }
body.light-mode #skills { background: transparent; }
body.light-mode #projects { background: transparent; }
body.light-mode #contact-web { background: transparent; }
body.light-mode .name-line { color: #0a2a6e; }
body.light-mode #nl1 { color: #0a2a6e; }
body.light-mode .title-tag { color: #444; }
body.light-mode .hero-bio { color: #111111; }
body.light-mode .btn-secondary { border-color: rgba(0,0,0,0.2); color: #111; }
body.light-mode .stat-label { color: #666; }
body.light-mode .stat-divider { background: rgba(0,0,0,0.12); }
body.light-mode section { border-bottom: 1px solid rgba(0,0,0,0.08); }
body.light-mode .about-block p { color: #111111; }
body.light-mode .bio-card, body.light-mode .id-card { background: rgba(255,255,255,0.75); border-color: rgba(58,142,252,0.3); }
body.light-mode .id-value { color: #111111; }
body.light-mode .id-label { color: #555; }
body.light-mode .dossier-folder { background: rgba(255,255,255,0.75); border-color: rgba(0,102,255,0.2); }
body.light-mode .dossier-left h3 { color: #0a2a6e; }
body.light-mode .dossier-content li { color: #111111; }
body.light-mode .skill-name { color: #0a2a6e; }
body.light-mode .power-bar { background: rgba(0,0,0,0.08); }
body.light-mode .chip { background: rgba(255,255,255,0.75); color: #555; border-color: rgba(0,0,0,0.12); }
body.light-mode .chip:hover { color: var(--blue); border-color: var(--blue); background: rgba(0,212,255,0.05); }
body.light-mode .project-card { background: rgba(255,255,255,0.75); border-color: rgba(155,93,229,0.2); }
body.light-mode .project-title { color: #0a2a6e; }
body.light-mode .project-summary { color: #111111; }
body.light-mode .project-detail p { color: #111111; }
body.light-mode .web-link { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.1); }
body.light-mode .contact-value { color: #0a2a6e; }
body.light-mode .contact-sub { color: #111111; }
body.light-mode #cursor { border-color: var(--); }

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE + HAMBURGER MENU
═══════════════════════════════════════════ */

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Hamburger button — hidden on desktop */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  width: 36px;
  height: 36px;
}
#hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* Global overflow lockdown */
  html, body { overflow-x: hidden !important; width: 100%; max-width: 100vw; }
  #main { overflow-x: hidden; width: 100%; max-width: 100vw; }

  /* Show hamburger, hide desktop nav */
  #hamburger { display: flex; }
  #hud-clock { display: none; }

  /* Navbar container — prevent overflow */
  #navbar { padding: 0 4%; }
  .nav-container { height: 56px; }

  /* Mobile nav dropdown */
  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    background: rgba(8,8,8,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 0;
    z-index: 999;
    gap: 0;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-item {
    padding: 14px 24px;
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    width: 100%;
    text-align: left;
  }
  .nav-item:last-child { border-bottom: none; }
  .nav-item:hover {
    background: rgba(0,102,255,0.08);
    border-color: transparent;
    box-shadow: none;
  }
  /* Nav CTA on mobile — keep its accent styling */
  .nav-item-cta {
    border-bottom: 1px solid var(--border) !important;
  }

  /* Hero mobile — KILL all horizontal overflow */
  #hero {
    padding: 80px 5% 50px;
    min-height: auto;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }
  .hero-content {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .hero-eyebrow {
    margin-bottom: 20px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .eyebrow-line { flex: 0 0 16px; }
  .eyebrow-text { font-size: 0.65rem; letter-spacing: 1.5px; }

  /* Hero name — FIX THE OVERFLOW. Reduce font + letter-spacing. */
  .hero-name {
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }
  .name-line {
    font-size: clamp(1.8rem, 9vw, 2.8rem) !important;
    letter-spacing: 1px !important;
    line-height: 1.05;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-title-strip {
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .title-tag {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
    word-break: break-word;
  }
  .title-divider { display: none; }

  .hero-location-strip, .hero-status-bar {
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .status-pill { font-size: 0.6rem; padding: 4px 9px; }
  .status-item { font-size: 0.62rem; }
  .location-item { font-size: 0.62rem; word-break: break-word; }

  .hero-bio { font-size: 0.9rem; max-width: 100%; }

  /* Hero actions — stack everything cleanly */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    max-width: 100%;
  }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-social-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }
  .hero-social-btn {
    flex: 1;
    justify-content: center;
    padding: 11px 12px;
  }

  /* Hero stats — 2x2 grid, no dividers */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 100%;
  }
  .stat-divider { display: none; }
  .stat-item {
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 0;
  }
  .stat-number { font-size: 1.15rem; }
  .stat-label { font-size: 0.65rem; }

  /* Section padding — tighter, full width */
  section {
    padding: 60px 5%;
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
  }
  .section-title { font-size: 1.4rem; letter-spacing: 2px; }

  /* About grid stacks */
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-card-visual { display: none; }

  /* Experience — stack title row / date row vertically */
  .dossier-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dossier-left { width: 100%; min-width: 0; }
  .dossier-right {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .dossier-date { font-size: 0.62rem; white-space: normal; }
  .dossier-content.active { padding: 14px 16px; }
  .dossier-content li { font-size: 0.82rem; }

  /* Skills */
  .skills-chips { gap: 7px; }
  .chip { font-size: 0.65rem; padding: 6px 12px; }

  /* Projects — single column; fix header image margins for new padding */
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { padding: 20px; min-width: 0; }
  .project-card-header-img,
  .project-card-header-default {
    width: calc(100% + 40px);
    margin: -20px -20px 14px -20px;
  }
  .project-footer { gap: 10px; flex-wrap: wrap; }

  /* Contact */
  .web-container { flex-direction: column; align-items: center; }
  .web-link { width: 100%; max-width: 320px; }

  /* Groot chat window — fit viewport */
  #groot-chat-window {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    right: 12px;
    left: 12px;
    bottom: 90px;
  }
  #groot-bot {
    bottom: 20px;
    right: 16px;
    width: 56px;
    height: 56px;
  }
  .groot-icon { width: 56px; height: 56px; }

  /* AI chat button */
  #ai-chat-btn {
    bottom: 90px;
    right: 16px;
    padding: 8px 14px;
    font-size: 0.62rem;
  }

  /* Theme toggle */
  #theme-toggle { width: 30px; height: 30px; font-size: 0.85rem; margin-left: 6px; }

  /* Hamburger */
  #hamburger { width: 34px; height: 34px; }

  /* Writing grid */
  .writing-grid { grid-template-columns: 1fr; gap: 16px; }
  .writing-card { padding: 22px 20px; }

  /* Certifications */
  .cert-grid { grid-template-columns: 1fr; }

  /* TL;DR strip allow wrap */
  .recruiter-tldr {
    font-size: 0.62rem;
    padding: 0.5rem 0.75rem;
    max-width: 100%;
  }
  .tldr-item, .tldr-label { white-space: normal; }
}

@media (max-width: 400px) {
  .name-line { font-size: 1.9rem; letter-spacing: 1px; }
  .glitch-logo { font-size: 0.85rem; }
  section { padding: 50px 4%; }
  #hero { padding: 70px 4% 40px; }
  .hero-stats { gap: 10px; }
  .stat-number { font-size: 1rem; }
  .hero-social-links { flex-direction: column; }
  .hero-social-btn { width: 100%; }
  .hero-title-strip .title-divider { display: none; }
  .dossier-header { padding: 12px 14px; }
  .project-card { padding: 16px; }
  .project-card-header-img,
  .project-card-header-default {
    width: calc(100% + 32px);
    margin: -16px -16px 12px -16px;
  }
}

/* Light mode mobile */
body.light-mode #hamburger span { background: #111; }
body.light-mode .nav-links { background: rgba(245,245,240,0.99); }

/* ═══════════════════════════════════════════
   MISSION QUOTE
═══════════════════════════════════════════ */
.mission-quote {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  border-left: none;
  padding: 20px 0;
  margin: 8px 0 0;
  font-style: italic;
}

.highlight {
  color: var(--blue);
  font-weight: 500;
}

body.light-mode .mission-quote { color: #0a2a6e; }
body.light-mode .highlight { color: #0078a0; }

/* ═══════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════ */
.contact-form-wrapper {
  max-width: 680px;
  margin: 48px auto;
  background: var(--bg-3);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: 0 0 40px rgba(0,102,255,0.06);
}
.contact-form-title {
  font-family: var(--font-hud);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.contact-form-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(0,102,255,0.15);
}
.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(0,102,255,0.3);
  margin-top: 4px;
}
.form-submit-btn:hover {
  background: var(--gold);
  color: black;
  box-shadow: 0 0 24px rgba(245,197,66,0.3);
}
.form-success-msg {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 1px;
  padding: 12px;
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 6px;
  background: rgba(76,175,80,0.06);
}

/* Light mode form */
body.light-mode .contact-form-wrapper { background: rgba(255,255,255,0.75); border-color: rgba(0,102,255,0.2); }
body.light-mode .contact-form-title { color: #0a2a6e; }
body.light-mode .contact-form-sub { color: #111111; }
body.light-mode .form-group label { color: #0a2a6e; }
body.light-mode .form-group input,
body.light-mode .form-group textarea { background: #f5f5f0; color: #111; border-color: rgba(0,0,0,0.12); }
body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus { border-color: #0a2a6e; }
body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder { color: #aaa; }
body.light-mode .form-submit-btn { background: #0a2a6e; color: white; box-shadow: 0 0 20px rgba(10,42,110,0.25); }
body.light-mode .form-submit-btn:hover { background: #163a8a; color: white; }

@media (max-width: 600px) {
  .contact-form-wrapper { padding: 24px 18px; margin: 32px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ═══════════════════════════════════════════
   CERTIFICATIONS
═══════════════════════════════════════════ */
#certifications { background: var(--bg-2); }
.cert-title { color: var(--gold); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--bg-3);
  border: 1px solid rgba(245,197,66,0.15);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Scanline sweep on hover — same as project cards */
.cert-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.cert-card:hover::before { transform: translateX(120%); }

/* Bottom glow line that grows on hover */
.cert-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  border-radius: 2px;
  transition: width 0.4s ease;
}
.cert-card:hover::after { width: 80%; }

/* Per-card accent colours */
.cert-card.google:hover   { border-color: rgba(66,133,244,0.6); box-shadow: 0 8px 32px rgba(66,133,244,0.2); transform: translateY(-5px); }
.cert-card.google::after  { background: #4285f4; }
.cert-card.macquarie:hover { border-color: rgba(0,102,255,0.6); box-shadow: 0 8px 32px rgba(0,102,255,0.2); transform: translateY(-5px); }
.cert-card.macquarie::after { background: var(--red); }
.cert-card.coursera:hover  { border-color: rgba(0,86,210,0.6); box-shadow: 0 8px 32px rgba(0,86,210,0.2); transform: translateY(-5px); }
.cert-card.coursera::after { background: #0056d2; }
.cert-card.hackerrank:hover { border-color: rgba(0,200,83,0.6); box-shadow: 0 8px 32px rgba(0,200,83,0.2); transform: translateY(-5px); }
.cert-card.hackerrank::after { background: #00c853; }

.cert-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hud);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cert-card:hover .cert-logo { transform: scale(1.1); }

.cert-logo.google    { background: rgba(66,133,244,0.12); color: #4285f4; border: 1px solid rgba(66,133,244,0.3); }
.cert-logo.macquarie { background: rgba(0,102,255,0.12);  color: var(--red); border: 1px solid rgba(0,102,255,0.3); }
.cert-logo.coursera  { background: rgba(0,86,210,0.12);   color: #0056d2; border: 1px solid rgba(0,86,210,0.3); }
.cert-logo.hackerrank { background: rgba(0,200,83,0.12);  color: #00c853; border: 1px solid rgba(0,200,83,0.3); }

.cert-card.google:hover .cert-logo    { box-shadow: 0 0 18px rgba(66,133,244,0.5); }
.cert-card.macquarie:hover .cert-logo { box-shadow: 0 0 18px rgba(0,102,255,0.5); }
.cert-card.coursera:hover .cert-logo  { box-shadow: 0 0 18px rgba(0,86,210,0.5); }
.cert-card.hackerrank:hover .cert-logo{ box-shadow: 0 0 18px rgba(0,200,83,0.5); }

.cert-info { flex: 1; min-width: 0; }
.cert-name {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.35;
  transition: color 0.3s;
}
.cert-card.google:hover .cert-name    { color: #4285f4; }
.cert-card.macquarie:hover .cert-name { color: var(--red); }
.cert-card.coursera:hover .cert-name  { color: #4da6ff; }
.cert-card.hackerrank:hover .cert-name{ color: #00c853; }

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.cert-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cert-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid rgba(245,197,66,0.25);
  color: var(--gold);
  background: rgba(245,197,66,0.05);
  transition: all 0.2s;
}
.cert-card:hover .cert-tag {
  border-color: rgba(245,197,66,0.5);
  background: rgba(245,197,66,0.1);
}
.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.3s;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  white-space: nowrap;
}
.cert-card:hover .cert-badge {
  color: var(--gold);
  border-color: rgba(245,197,66,0.4);
  background: rgba(245,197,66,0.06);
}

/* Light mode */
body.light-mode #certifications { background: transparent; }
body.light-mode .cert-card { background: rgba(255,255,255,0.75); }
body.light-mode .cert-name { color: #0a2a6e; }
body.light-mode .cert-issuer { color: #333; }

@media (max-width: 600px) {
  .cert-grid { grid-template-columns: 1fr; }
  .cert-card { padding: 20px 16px; }
}

/* ═══════════════════════════════════════════
   PUBLICATIONS SECTION
═══════════════════════════════════════════ */
#publications { background: transparent; }
.pub-title { color: var(--red); }

.pub-list { display: flex; flex-direction: column; gap: 20px; }

.pub-card {
  background: var(--bg-3);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.pub-card::before {
  content:'';position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(to right,var(--red),transparent);
  transform:scaleX(0);transform-origin:left;transition:transform 0.4s ease;
}
.pub-card:hover { border-color:rgba(0,102,255,0.5); box-shadow:0 8px 32px rgba(0,102,255,0.1); transform:translateY(-3px); }
.pub-card:hover::before { transform:scaleX(1); }

.pub-card-left {
  display:flex;flex-direction:column;align-items:center;gap:8px;
  flex-shrink:0;width:100px;
}
.pub-venue-badge {
  font-family:var(--font-mono);font-size:0.62rem;letter-spacing:1.5px;
  padding:5px 10px;border-radius:4px;text-align:center;
  background:rgba(0,102,255,0.15);color:var(--red);
  border:1px solid rgba(0,102,255,0.4);
  white-space:nowrap;
}
.pub-venue-badge.springer {
  background:rgba(245,197,66,0.12);color:var(--gold);
  border-color:rgba(245,197,66,0.4);
}
.pub-year { font-family:var(--font-mono);font-size:0.6rem;color:var(--text-dim);letter-spacing:1px; }

.pub-card-body { flex:1;min-width:0; }
.pub-title-text {
  font-size:1rem;font-weight:600;color:var(--text);
  margin-bottom:6px;line-height:1.4;
}
.pub-authors {
  font-family:var(--font-mono);font-size:0.62rem;color:var(--text-dim);
  letter-spacing:1px;margin-bottom:12px;
}
.pub-abstract {
  font-size:0.86rem;line-height:1.7;color:var(--text-dim);margin-bottom:16px;
}
.pub-stats {
  display:flex;gap:24px;margin-bottom:16px;padding:12px 16px;
  background:rgba(0,102,255,0.05);border-radius:8px;
  border:1px solid rgba(0,102,255,0.1);
}
.pub-stat { display:flex;flex-direction:column;gap:3px; }
.pub-stat-num { font-family:var(--font-hud);font-size:1.1rem;font-weight:700;color:var(--gold); }
.pub-stat-lbl { font-family:var(--font-mono);font-size:0.55rem;letter-spacing:1.5px;color:var(--text-dim); }

.pub-footer { display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px; }
.pub-tags { display:flex;gap:7px;flex-wrap:wrap; }
.pub-tag {
  font-family:var(--font-mono);font-size:0.56rem;letter-spacing:1px;
  padding:3px 9px;border-radius:3px;
  border:1px solid rgba(0,102,255,0.25);color:var(--red);background:rgba(0,102,255,0.05);
}
.pub-btn {
  font-family:var(--font-mono);font-size:0.65rem;letter-spacing:1.5px;
  padding:8px 18px;background:var(--red);color:white;
  border-radius:5px;text-decoration:none;
  transition:all 0.2s;box-shadow:0 0 16px rgba(0,102,255,0.3);
  white-space:nowrap;
}
.pub-btn:hover { background:transparent;color:var(--#00FF00);border:1px solid var(--#00FF00); }

/* ═══════════════════════════════════════════
   PROJECT BUTTONS
═══════════════════════════════════════════ */
.proj-btn {
  font-family:var(--font-mono);font-size:0.58rem;letter-spacing:1px;
  padding:6px 12px;border-radius:4px;text-decoration:none;
  transition:all 0.2s;cursor:pointer;display:inline-flex;align-items:center;gap:5px;
}
.proj-btn-paper {
  background:rgba(0,102,255,0.1);color:var(--red);
  border:1px solid rgba(0,102,255,0.35);
}
.proj-btn-paper:hover { background:rgba(0,102,255,0.25);border-color:var(--red); }
.proj-btn-code {
  background:rgba(0,212,255,0.08);color:var(--blue);
  border:1px solid rgba(0,212,255,0.3);
}
.proj-btn-code:hover { background:rgba(0,212,255,0.18);border-color:var(--blue); }
.proj-btn-preview {
  background:rgba(155,93,229,0.1);color:var(--purple);
  border:1px solid rgba(155,93,229,0.35);
}
.proj-btn-preview:hover { background:rgba(155,93,229,0.22);border-color:var(--purple); }
.proj-btn-preview-na {
  background:transparent;color:#3a4a5a;
  border:1px solid rgba(255,255,255,0.08);
  cursor:not-allowed;opacity:0.5;
}

/* Project card header image */
.project-card-header-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 8px 8px 0 0;
  margin: -16px -16px 14px -16px;
  width: calc(100% + 32px);
  border-bottom: 1px solid var(--border);
}
.project-card-header-default {
  width: calc(100% + 32px);
  height: 90px;
  margin: -16px -16px 14px -16px;
  background: linear-gradient(135deg, #0d1a26 0%, #111e2c 50%, #0a1520 100%);
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-header-default span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.08);
  text-transform: uppercase;
}
body.light-mode .project-card-header-default {
  background: linear-gradient(135deg, #e8edf2 0%, #dde4ec 100%);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
body.light-mode .project-card-header-default span { color: rgba(0,0,0,0.12); }
/* Light mode hover overlay for project cards */
body.light-mode .proj-pmr {
  border-left-color: rgba(0,120,160,0.4);
}
body.light-mode .proj-pmr-label { color: #0078a0; }
body.light-mode .proj-pmr-value { color: #111; }

/* Light mode */
body.light-mode #publications { background: transparent; }
body.light-mode .pub-card { background:rgba(255,255,255,0.75);border-color:rgba(0,102,255,0.2); }
body.light-mode .pub-title-text { color:#0a2a6e; }
body.light-mode .pub-abstract { color:#111111; }
body.light-mode .pub-stats { background:rgba(0,102,255,0.03); }

/* ── Light mode: Publication journey cards ── */
body.light-mode .pj-card { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.1); }
body.light-mode .pj-card:hover { border-color: rgba(126,184,247,0.4); }
body.light-mode .pj-card-title { color: #0a2a6e; }
body.light-mode .pj-card-desc { color: #333; }
body.light-mode .pj-card-detail { color: #333; }
body.light-mode .pj-card-detail strong { color: #0a2a6e; }
body.light-mode .pj-card-toggle { color: #0a2a6e; border-color: rgba(10,42,110,0.2); }
body.light-mode .pj-section-title { color: #0a2a6e; }
body.light-mode .pj-section-sub { color: #555; }
body.light-mode .pj-stats { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
body.light-mode .pj-stat-label { color: #777; }
body.light-mode .pj-stat-val { color: #0a2a6e; }
body.light-mode .pj-panel { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.1); }
body.light-mode .pj-panel-title { color: #0a2a6e; }
body.light-mode .pj-takeaway { color: #333; }
body.light-mode .pj-takeaway strong { color: #0a2a6e; }
body.light-mode .pj-mb-name { color: #333; }
body.light-mode .pj-mb-bar-bg { background: rgba(0,0,0,0.06); }
body.light-mode .pj-best-label { color: #777; }
body.light-mode .pj-best-name { color: #0a2a6e; }
body.light-mode .pj-best-acc { color: #0a2a6e; }
body.light-mode .pj-tech-label { color: #777; }
body.light-mode .pj-tech-tag { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: #444; }
body.light-mode .pub-journey { border-top-color: rgba(0,0,0,0.08); }

/* ── Light mode: Live Demo (.lmd-*) ── */
body.light-mode .lmd-wrap { background: rgba(255,255,255,0.75); border-color: rgba(58,142,252,0.2); }
body.light-mode .lmd-header { background: rgba(58,142,252,0.05); border-bottom-color: rgba(58,142,252,0.12); }
body.light-mode .lmd-title { color: #0a2a6e; }
body.light-mode .lmd-subtitle { color: #0078a0; }
body.light-mode .lmd-badge { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #555; }
body.light-mode .lmd-input-col { border-right-color: rgba(0,0,0,0.08); }
body.light-mode .lmd-label { color: #555; }
body.light-mode .lmd-input { background: #fff; border-color: rgba(58,142,252,0.3); color: #111; }
body.light-mode .lmd-input::placeholder { color: #aaa; }
body.light-mode .lmd-chip-label { color: #666; }
body.light-mode .lmd-chip { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); color: #555; }
body.light-mode .lmd-chip:hover { border-color: #0078a0; color: #0078a0; }
body.light-mode .lmd-idle { color: #aaa; }
body.light-mode .lmd-idle-text { color: #aaa; }
body.light-mode .lmd-idle-icon { color: #0078a0; }
body.light-mode .lmd-proc-text { color: #0078a0; }
body.light-mode .lmd-verdict { color: #0a2a6e; }
body.light-mode .lmd-bar-lbl { color: #555; }
body.light-mode .lmd-bar-track { background: rgba(0,0,0,0.07); }
body.light-mode .lmd-bar-pct { color: #555; }
body.light-mode .lmd-signals-label { color: #666; }
body.light-mode .lmd-sig-gray { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: #666; }
body.light-mode .lmd-disclaimer { color: #777; border-top-color: rgba(0,0,0,0.07); }
body.light-mode .lmd-disclaimer strong { color: #333; }
body.light-mode .lmd-result-col { background: rgba(248,248,245,0.5); }

@media (max-width:768px) {
  .pub-card { flex-direction:column;gap:16px; }
  .pub-card-left { flex-direction:row;width:100%;justify-content:flex-start; }
  .pub-stats { flex-wrap:wrap;gap:16px; }
}

/* Fix buttons inside project cards being blocked by card click */
.project-card .proj-btn {
  position: relative;
  z-index: 10;
  pointer-events: all !important;
  cursor: pointer !important;
}
.project-card .proj-btn:hover {
  transform: none;
}

/* Force circular avatar */
.id-card-avatar {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}
.id-card-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
}

/* ═══════════════════════════════════════════
   SKILL ICON GRID — Simple Glow Cards
═══════════════════════════════════════════ */
.skill-icons-grid{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:8px;}

.sk-icon{
  width:88px;height:88px;
  border-radius:16px;
  background:#0d0d0d;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  position:relative;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.sk-icon:hover{transform:translateY(-4px);filter:brightness(1.15);}

.sk-label{
  font-family:var(--font-mono);font-size:0.4rem;letter-spacing:1px;
  color:rgba(255,255,255,0.55);text-align:center;white-space:nowrap;
  margin-top:2px;
}

.sk-txt{font-weight:700;font-family:var(--font-mono);font-size:0.9rem;}

/* Glow colors */
.sk-glow-blue{box-shadow:0 0 20px rgba(0,102,255,0.5);border:1px solid rgba(0,102,255,0.4);}
.sk-glow-green{box-shadow:0 0 20px rgba(0,180,80,0.5);border:1px solid rgba(0,180,80,0.4);}
.sk-glow-orange{box-shadow:0 0 20px rgba(255,120,0,0.5);border:1px solid rgba(255,120,0,0.4);}
.sk-glow-yellow{box-shadow:0 0 20px rgba(255,200,0,0.5);border:1px solid rgba(255,200,0,0.4);}
.sk-glow-teal{box-shadow:0 0 20px rgba(0,200,180,0.5);border:1px solid rgba(0,200,180,0.4);}
.sk-glow-purple{box-shadow:0 0 20px rgba(140,80,255,0.5);border:1px solid rgba(140,80,255,0.4);}

/* Light mode skill icons */
body.light-mode .sk-icon{background:#fff;}
body.light-mode .sk-label{color:#555;}

/* ═══════════════════════════════════════════
   CERTIFICATES SECTION
═══════════════════════════════════════════ */
.cert-section-title{color:var(--gold);}
#certificates{background:var(--bg);}

.certs-grid{
  display:flex;flex-direction:column;gap:14px;
}

.cert-card{
  background:var(--bg-3);
  border:1px solid rgba(222,122,68,0.2);
  border-radius:10px;
  overflow:hidden;
  cursor:pointer;
  transition:border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.cert-card:hover{
  border-color:rgba(222,122,68,0.45);
  box-shadow:0 0 24px rgba(222,122,68,0.08);
  transform:translateY(-2px);
}

.cert-card-top-row{
  display:flex;align-items:center;gap:16px;
  padding:20px 24px;
}

.cert-card-icon{
  width:48px;height:48px;border-radius:12px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.cert-icon-blue{background:rgba(0,102,255,0.08);border:1px solid rgba(0,102,255,0.25);}
.cert-icon-teal{background:rgba(0,200,180,0.08);border:1px solid rgba(0,200,180,0.25);}
.cert-icon-green{background:rgba(0,180,80,0.08);border:1px solid rgba(0,180,80,0.25);}
.cert-icon-orange{background:rgba(255,120,0,0.08);border:1px solid rgba(255,120,0,0.25);}

.cert-card-body{flex:1;min-width:0;}
.cert-card-name{
  font-size:0.95rem;font-weight:600;color:var(--text);margin-bottom:3px;
}
.cert-card-issuer{
  font-family:var(--font-mono);font-size:0.62rem;letter-spacing:1px;color:var(--text-dim);
}

.cert-card-right{
  display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0;
}
.cert-card-date{
  font-family:var(--font-mono);font-size:0.62rem;letter-spacing:1px;color:var(--text-dim);
}
.cert-card-badge{
  font-family:var(--font-mono);font-size:0.5rem;letter-spacing:1.5px;
  color:#4caf50;padding:3px 8px;border:1px solid rgba(76,175,80,0.3);
  border-radius:3px;background:rgba(76,175,80,0.06);white-space:nowrap;
}

/* Certificate image preview — hidden by default, shown on click */
.cert-card-preview{
  max-height:0;overflow:hidden;
  transition:max-height 0.4s ease, padding 0.3s ease;
  padding:0 24px;
}
.cert-expanded .cert-card-preview{
  max-height:500px;
  padding:0 24px 20px;
}
.cert-card-img{
  width:100%;border-radius:8px;
  border:1px solid var(--border);
  margin-top:4px;
}

/* Light mode certificates */
body.light-mode #certificates{background:transparent;}
body.light-mode .cert-card{background:rgba(255,255,255,0.75);border-color:rgba(222,122,68,0.2);}
body.light-mode .cert-card-name{color:#0a2a6e;}
body.light-mode .cert-card-issuer{color:#555;}
body.light-mode .cert-card-date{color:#555;}

@media (max-width:768px){
  .cert-card-top-row{padding:16px 18px;flex-wrap:wrap;gap:10px;}
  .cert-card-right{flex-direction:row;align-items:center;width:100%;justify-content:flex-start;gap:12px;}
}
/* ═══════════════════════════════════════════
   WRITING SECTION
═══════════════════════════════════════════ */
.writing-title { color: var(--blue); }
.writing-subtitle {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim); letter-spacing: 1px; margin-top: 8px;
}
.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}
.writing-card {
  background: var(--bg-3);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 12px; padding: 28px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.writing-card:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: 0 0 30px rgba(0,212,255,0.06);
}
.writing-card-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 14px;
}
.writing-tag {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 1.5px; color: var(--blue);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 3px 10px; border-radius: 3px;
}
.writing-date {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--text-dim);
}
.writing-title-text {
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin-bottom: 12px; line-height: 1.3;
}
.writing-excerpt {
  font-size: 0.85rem; line-height: 1.7;
  color: var(--text-dim); margin-bottom: 16px;
}
.writing-body {
  display: none;
  font-size: 0.85rem; line-height: 1.8;
  color: var(--text-dim); margin-bottom: 16px;
}
.writing-body p { margin-bottom: 14px; }
.writing-body p:last-child { margin-bottom: 0; }
.writing-body strong { color: var(--text); font-weight: 600; }
.writing-card.expanded .writing-body { display: block; }
.writing-card.expanded .writing-excerpt { display: none; }
.writing-read-more {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 1.5px; color: var(--blue);
  background: none; border: none; cursor: pointer;
  padding: 0; transition: opacity 0.2s;
}
.writing-read-more:hover { opacity: 0.7; }

/* light mode */
body.light-mode .writing-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,150,200,0.15);
}
body.light-mode .writing-title-text { color: #111; }
body.light-mode .writing-excerpt,
body.light-mode .writing-body { color: #333; }
body.light-mode .writing-body strong { color: #000; }

/* ═══════════════════════════════════════════
   HOW I THINK — CASE STUDY
═══════════════════════════════════════════ */
.case-title { color: var(--gold); }
.case-subtitle {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim); letter-spacing: 1px; margin-top: 8px;
}
.case-study-card {
  background: var(--bg-3);
  border: 1px solid rgba(222,122,68,0.2);
  border-radius: 14px; padding: 40px;
  max-width: 860px;
}
.case-meta-row {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.case-badge {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 2px; padding: 4px 10px;
  border-radius: 3px; border: 1px solid var(--red);
  color: var(--red); background: rgba(248,48,48,0.06);
}
.case-badge-green {
  border-color: var(--green); color: var(--green);
  background: rgba(76,175,80,0.06);
}
.case-meta-title {
  font-size: 0.85rem; color: var(--text-dim);
  font-style: italic; flex: 1; min-width: 200px;
}
.case-block {
  display: flex; gap: 20px; margin-bottom: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.case-block:last-of-type { border-bottom: none; }
.case-block-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hud); font-size: 0.9rem;
  font-weight: 700; flex-shrink: 0; margin-top: 3px;
}
.case-icon-red   { background: rgba(248,48,48,0.1);  color: var(--red); border: 1px solid rgba(248,48,48,0.2); }
.case-icon-amber { background: rgba(232,197,71,0.1); color: var(--gold); border: 1px solid rgba(232,197,71,0.2); }
.case-icon-green { background: rgba(76,175,80,0.1);  color: var(--green); border: 1px solid rgba(76,175,80,0.2); }
.case-icon-blue  { background: rgba(0,212,255,0.1);  color: var(--blue); border: 1px solid rgba(0,212,255,0.2); }
.case-block-body h3.case-block-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text); margin-bottom: 12px; line-height: 1.3;
}
.case-block-body p {
  font-size: 0.88rem; line-height: 1.8;
  color: var(--text-dim); margin-bottom: 12px;
}
.case-block-body p:last-child { margin-bottom: 0; }
.case-block-body strong { color: var(--text); font-weight: 600; }
.case-block-body em { color: var(--blue); font-style: italic; }
.case-list {
  list-style: none; padding: 0; margin: 12px 0;
}
.case-list li {
  font-size: 0.87rem; line-height: 1.75;
  color: var(--text-dim); padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--border); position: relative;
}
.case-list li::before {
  content: '▶'; position: absolute; left: 0;
  color: var(--red); font-size: 0.65rem; top: 12px;
}
.case-list li:last-child { border-bottom: none; }
.case-list strong { color: var(--text); }
.case-takeaway {
  background: rgba(232,197,71,0.05);
  border: 1px solid rgba(232,197,71,0.2);
  border-radius: 8px; padding: 24px; margin-top: 8px;
}
.case-takeaway-label {
  display: block; font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 10px;
  text-transform: uppercase;
}
.case-takeaway p {
  font-size: 0.88rem; line-height: 1.75;
  color: var(--text-dim); margin: 0; font-style: italic;
}
.case-footer { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }

/* light mode */
body.light-mode .case-study-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(180,120,40,0.2);
}
body.light-mode .case-block-body p,
body.light-mode .case-list li,
body.light-mode .case-takeaway p { color: #333; }
body.light-mode .case-block-body strong,
body.light-mode .case-block-title { color: #111; }

/* ═══════════════════════════════════════════
   CONTACT FORM SUCCESS
═══════════════════════════════════════════ */
.form-success-msg {
  text-align: center; padding: 48px 32px;
  border: 1px solid rgba(76,175,80,0.3); border-radius: 12px;
  background: rgba(76,175,80,0.04); animation: fadeUp 0.5s ease forwards;
}
.form-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(76,175,80,0.12); border: 1px solid rgba(76,175,80,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--green); margin: 0 auto 20px;
}
.form-success-title { font-family: var(--font-hud); font-size: 1.2rem; letter-spacing: 3px; color: var(--green); margin-bottom: 12px; }
.form-success-text { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); line-height: 1.7; max-width: 360px; margin: 0 auto 28px; }
.form-success-reset { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 2px; color: var(--text-dim); background: none; border: 1px solid var(--border); padding: 9px 20px; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.form-success-reset:hover { border-color: var(--green); color: var(--green); }
.form-submit-btn.sending { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* ═══════════════════════════════════════════
   VIEW AS SWITCHER
═══════════════════════════════════════════ */


@media (max-width: 768px) {
  .writing-grid { grid-template-columns: 1fr; }
  .case-study-card { padding: 24px; }
  .case-block { flex-direction: column; gap: 12px; }
}

/* ═══════════════════════════════════════════
   WRITING FEEDBACK FORM
═══════════════════════════════════════════ */
.writing-feedback-wrapper {
  margin-top: 3.5rem;
  padding: 2.25rem 2.5rem;
  background: rgba(0,212,255,0.03);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.writing-feedback-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--blue), transparent);
  border-radius: 14px 0 0 14px;
}
.writing-feedback-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.writing-feedback-title {
  font-family: var(--font-hud);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.writing-feedback-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

/* Prompt chips */
.feedback-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.feedback-prompt-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.feedback-prompt-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0,212,255,0.06);
}

/* Form groups */
.feedback-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.feedback-form-group label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.7;
}
.feedback-required { color: var(--red); }
.feedback-optional { opacity: 0.45; font-size: 0.65rem; }

.feedback-select,
.feedback-input,
.feedback-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.feedback-select:focus,
.feedback-input:focus,
.feedback-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.07);
}
.feedback-select option { background: var(--bg-3); }

.feedback-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Light mode */
body.light-mode .writing-feedback-wrapper {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,150,200,0.15);
}
body.light-mode .writing-feedback-title { color: #0a2a6e; }
body.light-mode .writing-feedback-sub { color: #444; }
body.light-mode .feedback-select,
body.light-mode .feedback-input,
body.light-mode .feedback-textarea {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,150,200,0.2);
  color: #111;
}
body.light-mode .feedback-prompt-chip {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: #444;
}
body.light-mode .feedback-prompt-chip:hover {
  border-color: var(--blue-dim);
  color: var(--blue-dim);
}

@media (max-width: 768px) {
  .writing-feedback-wrapper { padding: 1.5rem; }
  .feedback-row { grid-template-columns: 1fr; }
  .feedback-prompts { gap: 0.4rem; }
}

/* ═══════════════════════════════════════════
   NAV LOGO
═══════════════════════════════════════════ */
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  border: 1px solid rgba(248,48,48,0.5);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hud); font-size: 0.85rem; font-weight: 900; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-logo-mark:hover { border-color: var(--red); box-shadow: 0 0 10px rgba(248,48,48,0.2); }
.nav-logo-mark span { color: var(--red); }
.nav-logo-name {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 2px; color: #bbb; line-height: 1.4;
}
.nav-logo-name strong {
  color: #ddd; display: block;
  font-size: 0.62rem; letter-spacing: 1.5px;
}
body.light-mode .nav-logo-mark { border-color: rgba(10,42,110,0.35); }
body.light-mode .nav-logo-name { color: #444; }
body.light-mode .nav-logo-name strong { color: #333; }
@media (max-width: 768px) { .nav-logo-name { display: none; } }

/* ═══════════════════════════════════════════
   SCROLL BAR GLOW
═══════════════════════════════════════════ */
.scroll-progress-container { height: 3px; }
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(to right, var(--red-dim), var(--red));
  box-shadow: 0 0 8px rgba(248,48,48,0.6), 0 0 16px rgba(248,48,48,0.2);
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════
   RECRUITER TL;DR CARD
═══════════════════════════════════════════ */
.recruiter-tldr-card {
  background: rgba(248,48,48,0.04);
  border: 1px solid rgba(248,48,48,0.18);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
  max-width: 680px;
}
.recruiter-tldr-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
}
.rtldr-header {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.rtldr-badge {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 2px; color: var(--red);
  text-transform: uppercase;
  background: rgba(248,48,48,0.1);
  border: 1px solid rgba(248,48,48,0.2);
  border-radius: 3px; padding: 0.15rem 0.5rem;
}
.rtldr-title {
  font-family: var(--font-hud); font-size: 0.65rem;
  letter-spacing: 1px; color: var(--text-dim);
}
.rtldr-pills {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.rtldr-pill {
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: #e0e0e0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; padding: 0.22rem 0.7rem;
}
.rtldr-pill-green {
  border-color: rgba(76,175,80,0.25);
  color: var(--green);
}

/* ═══════════════════════════════════════════
   ABOUT — MILESTONE TIMELINE
═══════════════════════════════════════════ */
.about-milestones {
  display: flex; flex-direction: column;
  margin: 1.75rem 0 1.5rem;
}
.about-milestone {
  display: flex; gap: 0; align-items: stretch;
}
.about-milestone-spine {
  display: flex; flex-direction: column;
  align-items: center; width: 40px; flex-shrink: 0;
}
.about-ms-dot {
  width: 11px; height: 11px;
  border-radius: 50%; flex-shrink: 0; margin-top: 3px;
}
.ms-red   { background: var(--red);      box-shadow: 0 0 8px rgba(248,48,48,0.5); }
.ms-gold  { background: var(--gold);     box-shadow: 0 0 8px rgba(222,122,68,0.5); }
.ms-blue  { background: #3a8efc;         box-shadow: 0 0 8px rgba(58,142,252,0.5); }
.ms-green { background: var(--green);    box-shadow: 0 0 8px rgba(76,175,80,0.5); }
.about-ms-line {
  width: 1px; flex: 1; min-height: 20px; margin: 4px 0;
}
.ml-red  { background: linear-gradient(to bottom, rgba(248,48,48,0.25),  rgba(248,48,48,0.03)); }
.ml-gold { background: linear-gradient(to bottom, rgba(222,122,68,0.25), rgba(222,122,68,0.03)); }
.ml-blue { background: linear-gradient(to bottom, rgba(58,142,252,0.25), rgba(58,142,252,0.03)); }
.about-ms-body {
  flex: 1; padding: 0 0 1.1rem 0.25rem;
}
.about-ms-year {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 2px; margin-bottom: 0.15rem;
}
.my-red   { color: var(--red); }
.my-gold  { color: var(--gold); }
.my-blue  { color: #3a8efc; }
.my-green { color: var(--green); }
.about-ms-title {
  font-size: 0.83rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.12rem;
}
.about-ms-sub {
  font-size: 0.82rem; color: #c8c8c8; line-height: 1.4;
}

/* ═══════════════════════════════════════════
   ABOUT — WORKFLOW STEPS
═══════════════════════════════════════════ */
.about-workflow {
  display: flex; flex-direction: column; gap: 0;
  margin: 0.75rem 0 1.25rem;
}
.about-wf-step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px; transition: background 0.2s;
}
.about-wf-step:last-child { border-bottom: none; }
.about-wf-step:hover { background: rgba(58,142,252,0.03); }
.about-wf-num {
  font-family: var(--font-hud); font-size: 0.65rem; font-weight: 700;
  color: #3a8efc;
  background: rgba(58,142,252,0.08);
  border: 1px solid rgba(58,142,252,0.15);
  border-radius: 4px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.about-wf-body { flex: 1; }
.about-wf-q {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.2rem; font-style: italic;
}
.about-wf-r {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.5px; color: #c8c8c8;
  display: flex; align-items: center; gap: 0.4rem;
}
.about-wf-arrow { color: #3a8efc; }

/* ═══════════════════════════════════════════
   ABOUT — SEEKING CALLOUT
═══════════════════════════════════════════ */
.about-seeking {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(76,175,80,0.04);
  border: 1px solid rgba(76,175,80,0.18);
  border-radius: 10px;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.about-seeking-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(76,175,80,0.5);
  flex-shrink: 0; margin-top: 4px;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.about-seeking-text {
  font-size: 0.84rem; color: var(--text-dim); line-height: 1.6;
}
.about-seeking-text strong { color: var(--text); }
.about-seeking-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 2px; color: var(--green);
  text-transform: uppercase; display: block; margin-bottom: 0.3rem;
}

/* ═══════════════════════════════════════════
   LIGHT MODE — ABOUT SECTION TEXT FIXES
═══════════════════════════════════════════ */
body.light-mode .about-ms-title { color: #111; }
body.light-mode .about-ms-sub { color: #555; }
body.light-mode .about-wf-q { color: #0a2a6e; }
body.light-mode .about-wf-desc { color: #333; }
body.light-mode .about-wf-r { color: #555; }
body.light-mode .about-wf-step { border-bottom-color: rgba(0,0,0,0.06); }
body.light-mode .about-wf-step:hover { background: rgba(58,142,252,0.04); }
body.light-mode .about-seeking-text { color: #333; }
body.light-mode .about-seeking-text strong { color: #0a2a6e; }
body.light-mode .about-seeking { background: rgba(76,175,80,0.05); border-color: rgba(76,175,80,0.22); }

/* ═══════════════════════════════════════════
   LIGHT MODE — RECRUITER TLDR CARD
═══════════════════════════════════════════ */
body.light-mode .recruiter-tldr-card { background: rgba(255,255,255,0.75); border-color: rgba(10,42,110,0.18); }
body.light-mode .rtldr-title { color: #555; }
body.light-mode .rtldr-pill { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #444; }
body.light-mode .rtldr-seeking-text { color: #333; }
body.light-mode .rtldr-seeking-text strong { color: #0a2a6e; }

/* ═══════════════════════════════════════════
   LIGHT MODE — ABOUT WORKFLOW TITLE
═══════════════════════════════════════════ */
body.light-mode .about-workflow-title { color: #0078a0; }

/* ═══════════════════════════════════════════
   LIGHT MODE — PUBLICATIONS JOURNEY (pj-*) 
   already added above, but these are extras
═══════════════════════════════════════════ */
body.light-mode .pj-card-detail li { color: #333; }
body.light-mode .pj-card-detail li strong { color: #0a2a6e; }

/* ═══════════════════════════════════════════
   LIGHT MODE — LIVE DEMO (lmd-*)
   (full block already added above; these are
    the dark-value overrides that were missed)
═══════════════════════════════════════════ */
body.light-mode .lmd-body { background: rgba(248,248,245,0.4); }
body.light-mode .lmd-v-real { color: #2e7d32; }
body.light-mode .lmd-v-fake { color: #b71c1c; }
body.light-mode .lmd-v-uncertain { color: #b45309; }
body.light-mode .lmd-sig-red { background: rgba(183,28,28,0.06); border-color: rgba(183,28,28,0.2); color: #b71c1c; }
body.light-mode .lmd-sig-green { background: rgba(46,125,50,0.06); border-color: rgba(46,125,50,0.2); color: #2e7d32; }

/* ═══════════════════════════════════════════
   DARK MODE — PROJECT CARD HOVER OVERLAY FIX
   Make sure proj-pmr is always legible on dark bg
═══════════════════════════════════════════ */
.proj-pmr-value { color: #e8e8e8; }
.proj-pmr-label { color: #7eb8f7; }