:root {
  --bg: #0a0f14;
  --panel: #10171f;
  --panel-2: #141d26;
  --line: #1f2b36;
  --text: #dce6ee;
  --text-strong: #ffffff;
  --muted: #7d8ea0;
  --muted-2: #56687a;
  --green: #3fd67a;
  --green-dim: #1f6b3d;
  --green-glow: rgba(63, 214, 122, 0.25);
  --amber: #e3b341;
  --red: #e5534b;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --radius: 8px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}



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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(63, 214, 122, 0.06), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(88, 166, 255, 0.04), transparent 60%);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--green-dim);
  color: var(--text-strong);
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted-2);
}

/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 16px;
}

.brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

nav.links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12.5px;
}

nav.links a {
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  position: relative;
  padding: 4px 0;
}

nav.links a:hover {
  color: var(--green);
}

nav.links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}



.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--muted);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 10px 0; width: 100%; }
}

/* ---------- HERO / TERMINAL ---------- */
.hero {
  padding: 60px 0 48px;
}

.terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.term-bar span.dot-btn {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.term-bar .r { background: #e5534b; }
.term-bar .y { background: #e3b341; }
.term-bar .g { background: #3fd67a; }

.term-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.term-body {
  padding: 22px 20px 26px;
  font-family: var(--mono);
  font-size: 13.5px;
}

.term-line {
  color: var(--muted);
  margin-bottom: 6px;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.term-line .p { color: var(--green); }
.term-line .ok { color: var(--green); font-weight: 600; }
.term-line.l1 { animation-delay: 0.1s; }
.term-line.l2 { animation-delay: 0.4s; }
.term-line.l3 { animation-delay: 0.7s; }
.term-line.l4 { animation-delay: 1.0s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-name {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 1.3s;
}

h1.title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.role-line {
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: 14px;
}

.summary {
  color: var(--muted);
  font-size: 15px;
  max-width: 65ch;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--green);
  color: #04140a;
  border-color: var(--green);
  font-weight: 600;
}

.btn-primary:hover {
  background: #5ee595;
  box-shadow: 0 0 20px var(--green-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: var(--panel-2);
  transform: translateY(-1px);
}

/* LIVE BADGE */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  background: var(--panel-2);
  border: 1px solid var(--green-dim);
  padding: 5px 11px;
  border-radius: 20px;
  margin-top: 16px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* COMMAND PALETTE IN TERMINAL */
.cmd-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.cmd-line .p {
  color: var(--green);
  font-family: var(--mono);
  font-size: 13.5px;
}

#cmd-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
  caret-color: var(--green);
}

#cmd-input::placeholder {
  color: var(--muted-2);
}

.cmd-output {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.cmd-output .line {
  color: var(--muted);
  line-height: 1.5;
  word-break: break-word;
  opacity: 0;
  animation: fadeIn 0.2s ease forwards;
}

.cmd-output .ok { color: var(--green); }
.cmd-output .err { color: var(--red); }
.cmd-output .info { color: var(--amber); }
.cmd-output a {
  color: var(--green);
  border-bottom: 1px dashed var(--green-dim);
}

/* ---------- SECTION LABELS ---------- */
section {
  padding: 56px 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: '$';
  color: var(--green);
}

h2.h {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 24px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin: 0 0 30px;
}

/* ---------- SEARCH & FILTER ---------- */
.search-box {
  margin-bottom: 20px;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px 10px 38px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--green);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 13px;
  pointer-events: none;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.about-text {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.about-text strong {
  color: var(--text-strong);
  font-weight: 600;
}

/* ---------- PERFORMANCE STATS ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.stat-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text-strong);
}

.stat-value .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

.stat-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ---------- EXPERIENCE ---------- */
.log {
  border-left: 1px solid var(--line);
  margin-left: 6px;
}

.log-entry {
  position: relative;
  padding: 0 0 34px 26px;
}

.log-entry:last-child {
  padding-bottom: 0;
}

.log-dot {
  position: absolute;
  left: -6.5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
}

.log-entry.past .log-dot {
  border-color: var(--muted-2);
}

.log-ts {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--green);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.log-entry.past .log-ts {
  color: var(--muted-2);
}

.log-role {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text-strong);
  margin-bottom: 2px;
}

.log-org {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.log-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.log-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green-dim);
  font-family: var(--mono);
  font-weight: 700;
}

/* ---------- SKILLS ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 640px) {
  .skill-grid { grid-template-columns: 1fr; }
}

.skill-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: border-color 0.15s ease;
}

.skill-panel:hover {
  border-color: var(--green-dim);
}

.skill-panel .k {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

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

.tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  transition: all 0.15s ease;
}

.tag:hover {
  border-color: var(--green-dim);
  color: var(--green);
}

/* ---------- PROJECTS ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 680px) {
  .proj-grid { grid-template-columns: 1fr 1fr; }
}

.proj-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.proj-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.proj-name {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text-strong);
}

.proj-status {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.proj-desc {
  color: var(--muted);
  font-size: 14px;
  flex-grow: 1;
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-stack span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}

.proj-stack span:not(:last-child)::after {
  content: '·';
  margin-left: 6px;
  color: var(--muted-2);
}

/* ---------- TESTIMONIALS ---------- */
.test-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 680px) {
  .test-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .test-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.test-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.test-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
}

.test-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stars {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 2px;
}

.test-src {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.test-quote {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
  flex-grow: 1;
}

.test-quote::before { content: '“'; color: var(--muted-2); font-family: var(--mono); }
.test-quote::after { content: '”'; color: var(--muted-2); font-family: var(--mono); }

.test-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
}

/* ---------- INCIDENT LOG ---------- */
.incident {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.incident-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 22px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
}

.incident-head .id {
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.incident-status {
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
}

.incident-body {
  padding: 24px 22px;
}

.incident-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.incident-row:last-child { border-bottom: none; padding-bottom: 0; }
.incident-row:first-child { padding-top: 0; }

@media (max-width: 560px) {
  .incident-row { grid-template-columns: 1fr; gap: 6px; }
}

.incident-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.incident-text {
  color: var(--muted);
  font-size: 14.5px;
}

.incident-text strong {
  color: var(--text-strong);
  font-weight: 600;
}

.incident-slider {
  position: relative;
}

.incident.slide {
  display: none;
}

.incident.slide.active {
  display: block;
  animation: incFade 0.35s ease;
}

@keyframes incFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.incident-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.incident-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.incident-arrow:hover {
  border-color: var(--green);
  color: var(--green);
}

.incident-dots {
  display: flex;
  gap: 9px;
}

.incident-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.incident-dot.active {
  background: var(--green);
  transform: scale(1.25);
}

/* ---------- CERTS / ACHIEVEMENTS ---------- */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.cert-item:last-child { border-bottom: none; }
.cert-name { color: var(--text); }
.cert-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* ---------- EDUCATION ---------- */
.edu-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.edu-item:last-child { border-bottom: none; }

.edu-degree {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 15px;
  margin-bottom: 3px;
}

.edu-school {
  color: var(--muted);
  font-size: 13.5px;
}

.edu-right {
  text-align: right;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.edu-gpa {
  color: var(--green);
  font-weight: 600;
}

/* ---------- FOOTER / CONTACT ---------- */
footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.contact-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
}

.contact-box h2 {
  font-size: 22px;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.contact-box p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.clink {
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  cursor: pointer;
}

.clink:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.icon-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: currentColor;
}

.foot-note {
  text-align: center;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

/* ---------- CHAT WIDGET ---------- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  font-family: var(--sans);
}

.chat-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  animation: chatPulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.chat-bubble:hover {
  transform: scale(1.08);
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(63, 214, 122, 0.35); }
  50% { box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(63, 214, 122, 0); }
}

.chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  border: 2px solid var(--bg);
}

.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 310px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chat-widget.open .chat-panel {
  display: flex;
  animation: chatOpen 0.2s ease;
}

.chat-widget.open .chat-badge {
  display: none;
}

@keyframes chatOpen {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.chat-panel-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-strong);
}

.chat-panel-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 3px;
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--muted-2);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.chat-close:hover {
  color: var(--text);
}

.chat-thread {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.chat-msg {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px 10px 10px 2px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  max-width: 92%;
  align-self: flex-start;
  animation: fadeIn 0.2s ease;
}

.chat-msg.user {
  background: var(--green-dim);
  color: var(--text-strong);
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
}

.chat-actions {
  display: flex;
  flex-direction: column;
  padding: 6px 10px 14px;
  gap: 4px;
}

.chat-action {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  padding: 9px 10px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.chat-action:hover {
  background: var(--panel-2);
  color: var(--green);
}

@media (max-width: 480px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-panel { width: calc(100vw - 32px); right: -8px; }
}

/* ---------- MODAL (RESUME) ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8);
}

.modal-head {
  padding: 16px 20px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted-2);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.resume-preview {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  font-family: var(--sans);
}

.resume-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.resume-header h2 {
  font-size: 24px;
  color: var(--text-strong);
}

.resume-header p {
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
}

.resume-sec {
  margin-bottom: 18px;
}

.resume-sec h3 {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.modal-foot {
  padding: 14px 20px;
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ---------- TOAST NOTIFICATION ---------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--panel-2);
  border: 1px solid var(--green-dim);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast .icon {
  color: var(--green);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-12px) scale(0.95); }
}
