/* ============================================================
   Bonnie Bennett — Personal Site
   Vanilla CSS · dark tech / neon theme
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #080b14;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e7edf5;
  --muted: #8b98ab;
  --dim: #5b6678;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --mint: #00ffa3;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, #22d3ee 0%, #8b5cf6 50%, #00ffa3 100%);
  --grad-soft: linear-gradient(120deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .16));
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
  --glow: 0 0 30px -6px rgba(34, 211, 238, .45);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -3;
  background:
    radial-gradient(40% 40% at 15% 20%, rgba(34, 211, 238, .14), transparent 70%),
    radial-gradient(45% 45% at 85% 15%, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(50% 50% at 70% 90%, rgba(0, 255, 163, .08), transparent 70%);
  animation: floatBg 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes floatBg {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(34, 211, 238, .3); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05060a; }
::-webkit-scrollbar-thumb { background: linear-gradient(#22d3ee, #8b5cf6); border-radius: 10px; }

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Ambient canvases / overlays ===== */
.bg-canvas { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .75; }
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
}

/* ===== Custom cursor ===== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; z-index: 9999; mix-blend-mode: difference;
}
.cursor-dot { width: 7px; height: 7px; background: var(--cyan); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid rgba(255,255,255,.6);
  transform: translate(-50%, -50%); transition: width .2s, height .2s, border-color .2s, background .2s;
}
.cursor-ring.hover { width: 54px; height: 54px; border-color: var(--cyan); background: rgba(34,211,238,.08); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 1000; box-shadow: var(--glow);
}

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 16px clamp(18px, 4vw, 48px);
  transition: background .35s, backdrop-filter .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 11px clamp(18px, 4vw, 48px);
  background: rgba(5, 6, 10, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; letter-spacing: .3px; }
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #05060a; font-size: 13px; font-weight: 700;
  box-shadow: var(--glow);
}
.logo-text { font-size: 17px; }
.logo-text b { color: var(--cyan); font-weight: 600; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  position: relative; padding: 8px 14px; border-radius: 9px; font-size: 14.5px;
  color: var(--muted); transition: color .25s, background .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 34px;
  padding: 0 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 13px; cursor: pointer;
  transition: all .25s;
}
.lang-toggle:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.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); }


/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 11px; font-family: var(--font-head); font-weight: 600;
  font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s; white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #05060a; box-shadow: 0 8px 30px -10px rgba(34,211,238,.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -12px rgba(139,92,246,.8); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.btn-ghost { color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--cyan); border-color: var(--cyan); }

/* ===== Layout / Sections ===== */
.section { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 130px) clamp(18px, 4vw, 40px); }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 46px; }
.section-index { font-family: var(--font-mono); color: var(--cyan); font-size: 14px; opacity: .8; }
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -.5px; }
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }

/* link colour inside prose */
.lead b, .point b, .about-points b { color: var(--text); }

/* ===== Hero ===== */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 120px; }
.hero-inner { max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; margin-bottom: 26px;
  border: 1px solid var(--border); border-radius: 100px; background: var(--panel);
  font-size: 13.5px; color: var(--muted); font-family: var(--font-mono);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(0,255,163,.7); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,255,163,.6); }
  70% { box-shadow: 0 0 0 12px rgba(0,255,163,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,163,0); }
}
.hero-title { font-size: clamp(34px, 7vw, 76px); font-weight: 700; letter-spacing: -1.5px; margin: 0 0 22px; }
.hero-title .line { display: block; }
.hero-type { font-size: clamp(22px, 4vw, 40px); color: var(--muted); margin-top: 8px; min-height: 1.2em; }
.type-target { color: var(--cyan); }
.caret { color: var(--mint); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: clamp(15px, 1.7vw, 18px); color: var(--muted); max-width: 680px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 54px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 1.4px; margin-top: 2px; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; }
.mouse { width: 24px; height: 40px; border: 1.5px solid var(--border-strong); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.wheel { width: 3px; height: 7px; border-radius: 3px; background: var(--cyan); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(11px); } }

/* ===== Ticker ===== */
.ticker { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); padding: 13px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: ticker 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.tick .up { color: var(--mint); }
.tick .down { color: #fb7185; }


/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.about-card { padding: 30px 28px; text-align: center; position: relative; overflow: hidden; }
.about-card::before { content: ""; position: absolute; inset: -40% 30% auto; height: 180px; background: var(--grad-soft); filter: blur(40px); }
.avatar-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.avatar { width: 150px; height: 150px; border-radius: 50%; border: 2px solid var(--border-strong); background: #0a0f1c; }
.avatar-ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(34,211,238,.4); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-name { font-size: 22px; }
.about-role { color: var(--cyan); font-size: 14px; font-family: var(--font-mono); margin: 6px 0 18px; }
.about-meta { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; display: grid; gap: 9px; }
.about-meta li { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.about-socials { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip-link { padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); transition: all .25s; }
.chip-link:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow); }
.about-text .lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); margin-top: 0; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.point { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); transition: transform .3s, border-color .3s, background .3s; }
.point:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--panel-2); }
.point-icon { font-size: 22px; line-height: 1; }
.point h4 { font-size: 15px; margin-bottom: 4px; }
.point p { margin: 0; font-size: 13.5px; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { font-family: var(--font-mono); font-size: 12px; padding: 5px 12px; border-radius: 7px; background: var(--grad-soft); border: 1px solid var(--border); color: #cbd5e1; }

/* ===== Skills ===== */
.skills-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.skills-panel { padding: 26px; }
.skill-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.skill-tab { padding: 8px 15px; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; cursor: pointer; transition: all .25s; }
.skill-tab:hover { color: var(--text); border-color: var(--border-strong); }
.skill-tab.active { background: var(--grad); color: #05060a; border-color: transparent; font-weight: 600; }
.skill-list { display: grid; gap: 14px; }
.skill-item { display: grid; gap: 7px; opacity: 0; transform: translateY(10px); animation: fadeUp .5s forwards; }
.skill-item .s-row { display: flex; justify-content: space-between; font-size: 13.5px; }
.skill-item .s-name { font-family: var(--font-mono); }
.skill-item .s-pct { color: var(--dim); }
.skill-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.skill-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grad); transition: width 1s cubic-bezier(.2,.8,.2,1); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.radar-panel { padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.panel-title { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.6px; font-family: var(--font-mono); font-weight: 500; margin-bottom: 14px; }
#radarCanvas { width: 100%; max-width: 360px; height: auto; }
.radar-note { font-size: 12px; color: var(--dim); margin: 10px 0 0; font-family: var(--font-mono); }


/* ===== Experience timeline ===== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--violet), transparent); opacity: .5; }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-dot { position: absolute; left: -34px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
.tl-item:hover .tl-dot { box-shadow: 0 0 0 6px rgba(34,211,238,.2); }
.tl-card { padding: 24px 26px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.tl-card:hover { transform: translateX(6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tl-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; margin-bottom: 14px; }
.tl-role { font-size: 19px; }
.tl-company { color: var(--cyan); font-size: 13.5px; font-family: var(--font-mono); margin: 4px 0 0; }
.tl-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); padding: 5px 12px; border-radius: 100px; white-space: nowrap; }
.tl-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tl-list li { position: relative; padding-left: 20px; font-size: 14.3px; color: var(--muted); }
.tl-list li::before { content: "▹"; position: absolute; left: 0; color: var(--cyan); }
.tl-list b { color: var(--text); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tl-tags span { font-family: var(--font-mono); font-size: 11.5px; padding: 3px 10px; border-radius: 6px; background: rgba(34,211,238,.08); border: 1px solid var(--border); color: #a5f3fc; }
.tl-compact .tl-card { padding: 18px 24px; }
.tl-compact .tl-role { font-size: 16.5px; }

/* ===== Projects ===== */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-family: var(--font-head); font-size: 13.5px; cursor: pointer; transition: all .25s; }
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active { background: var(--grad); color: #05060a; border-color: transparent; font-weight: 600; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.project-card {
  position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--panel); display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
  transform-style: preserve-3d; will-change: transform;
}
.project-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 300px at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,.12), transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.project-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.project-card:hover::after { opacity: 1; }
.project-card.hide { display: none; }
.pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pc-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--grad-soft); border: 1px solid var(--border); }
.pc-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; }
.pc-title { font-size: 17px; }
.pc-desc { font-size: 13.8px; color: var(--muted); flex: 1; }
.pc-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-metrics span { font-family: var(--font-mono); font-size: 11.5px; color: var(--mint); background: rgba(0,255,163,.07); border: 1px solid rgba(0,255,163,.16); padding: 3px 9px; border-radius: 6px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pc-tags i { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); background: rgba(255,255,255,.04); padding: 3px 9px; border-radius: 6px; }
.pc-link { margin-top: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; }
.pc-link:hover { gap: 11px; }


/* ===== Certificates ===== */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.cert-card {
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel);
  display: flex; flex-direction: column; gap: 10px; transition: transform .3s, border-color .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.cert-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.cert-badge { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); font-size: 18px; }
.cert-name { font-size: 14.5px; font-family: var(--font-head); font-weight: 600; }
.cert-issuer { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.cert-card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--grad-soft); filter: blur(24px); }

/* ===== Terminal ===== */
.terminal { overflow: hidden; font-family: var(--font-mono); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.term-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.term-title { margin-left: 10px; font-size: 12.5px; color: var(--dim); }
.term-body { padding: 20px 22px 6px; max-height: 380px; overflow-y: auto; font-size: 13.5px; line-height: 1.8; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line.cmd { color: var(--text); }
.term-line.cmd::before { content: "$ "; color: var(--mint); }
.term-line.out { color: var(--muted); }
.term-line.acc { color: var(--cyan); }
.term-line.ok { color: var(--mint); }
.term-line.err { color: #fb7185; }
.term-input-line { display: flex; align-items: center; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--border); }
.term-input-line .prompt { color: var(--mint); font-size: 13.5px; white-space: nowrap; }
.term-input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-family: var(--font-mono); font-size: 13.5px; }
.term-input::placeholder { color: var(--dim); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.contact-left .lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); margin-top: 0; margin-bottom: 26px; }
.contact-links { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 15px 18px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.contact-item:hover { transform: translateX(7px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.ci-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); font-size: 16px; font-weight: 700; font-family: var(--font-head); }
.ci-body { flex: 1; display: flex; flex-direction: column; }
.ci-body b { font-size: 14.5px; font-weight: 600; }
.ci-body i { font-style: normal; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.ci-arrow { color: var(--dim); transition: transform .3s, color .3s; }
.contact-item:hover .ci-arrow { transform: translateX(4px); color: var(--cyan); }
.contact-right { padding: 26px; }
.fact-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.fact-list li { display: flex; justify-content: space-between; gap: 14px; font-size: 13.8px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.fact-list span { color: var(--dim); font-family: var(--font-mono); font-size: 12.5px; }
.fact-list b { color: var(--text); font-weight: 500; text-align: right; }
.fact-list b.ok { color: var(--mint); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); background: rgba(255,255,255,.015); padding: 44px clamp(18px, 4vw, 40px); text-align: center; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.footer-brand span { color: var(--cyan); }
.footer-note, .footer-copy { color: var(--dim); font-size: 12.5px; margin: 4px 0; font-family: var(--font-mono); }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 13px;
  border: 1px solid var(--border-strong); background: rgba(5,6,10,.7); backdrop-filter: blur(10px);
  color: var(--text); font-size: 19px; cursor: pointer; z-index: 800; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s, border-color .3s, color .3s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-4px); border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow); }


/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 380px; }
  .skills-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
    gap: 6px; padding: 96px 26px 26px; background: rgba(6,8,14,.96); backdrop-filter: blur(16px);
    border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .35s;
  }
  .nav-links.open { transform: none; }
  .nav-link { font-size: 17px; padding: 12px 14px; }
  .nav-toggle { display: flex; z-index: 950; }
  .nav-actions .btn-ghost { display: none; }
  .about-points { grid-template-columns: 1fr; }
  .hero { padding-top: 108px; }
  .timeline { padding-left: 26px; }
  .tl-dot { left: -26px; }
  .tl-card:hover { transform: none; }
}
@media (max-width: 460px) {
  .project-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 22px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .bg-canvas, .cursor-dot, .cursor-ring { display: none; }
}


/* ===== Small utilities ===== */
.cue-text { letter-spacing: 3px; text-transform: uppercase; }
.meta-k { font-size: 15px; line-height: 1; }

