/* ============================================================
   dishant.ai — futuristic ML portfolio
   Mobile-first, fully responsive
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --bg:     #070c14;
  --bg1:    #0d1520;
  --bg2:    #111d2e;
  --bg3:    #162236;
  --border: #1a2d45;
  --border2: #254060;

  --cyan:       #00d4ff;
  --cyan-dim:   rgba(0,212,255,.08);
  --cyan-glow:  rgba(0,212,255,.28);
  --violet:     #8b5cf6;
  --violet-dim: rgba(139,92,246,.12);
  --green:      #10b981;
  --green-dim:  rgba(16,185,129,.12);
  --amber:      #f59e0b;
  --amber-dim:  rgba(245,158,11,.12);

  --text:  #e2e8f0;
  --text2: #b0c4d8;
  --text3: #7d8fa3;

  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', system-ui, sans-serif;

  --nav-h: 56px;
  --radius: 12px;
  --card-transition: border-color .3s ease, box-shadow .3s ease, transform .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
ul { list-style: none; }

/* ---------- Grid Background ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 39px, rgba(0,212,255,.04) 40px),
    repeating-linear-gradient(90deg,  transparent, transparent 39px, rgba(0,212,255,.04) 40px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Scanlines ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,.06) 2px, rgba(0,0,0,.06) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* ---------- Canvas (particle field) ---------- */
#canvas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Scroll Progress ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  z-index: 1001;
  transition: width .1s linear;
}

/* ---------- Cursor Glow ---------- */
#cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,212,255,.06) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  z-index: 1;
  transition: opacity .3s;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(7,12,20,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 40px);
  gap: 16px;
}

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

.nav-status {
  width: 7px; height: 7px;
  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; }
  50%      { opacity: .4; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cyan); background: var(--cyan-dim); }

.nav-token {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--violet);
  background: var(--violet-dim);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  margin-left: 8px;
}

/* hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(7,12,20,.97);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  z-index: 998;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text2);
  padding: 10px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-drawer a:hover { color: var(--cyan); background: var(--cyan-dim); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
main {
  padding-top: var(--nav-h);
  position: relative;
  z-index: 2;
}

section { padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 60px); }

/* ============================================================
   CHAT PATTERN — shared across all sections
   ============================================================ */
.section-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.user-bubble {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.user-bubble-inner {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,.2);
  border-radius: 16px 16px 4px 16px;
  padding: 8px 16px;
}

.agent-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-label::before {
  content: '⬡';
  color: var(--violet);
  font-size: 13px;
}

/* The main card / bubble for each section */
.agent-bubble {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 4px 16px 16px 16px;
  padding: clamp(16px, 4vw, 28px);
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease, opacity .6s ease, transform .6s ease;
}
.agent-bubble:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px var(--cyan-glow);
}
/* when agent-bubble also has fade-up, merge both transitions */
.agent-bubble.fade-up {
  transition: border-color .3s ease, box-shadow .3s ease, opacity .6s ease, transform .6s ease;
}

/* ---------- Exec Summary (section footer) ---------- */
.exec-summary {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  margin-top: 20px;
  padding: 12px 16px;
}

.exec-header {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
}
.exec-prompt {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
}
.exec-time {
  margin-left: auto;
  font-size: 10px;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: 4px;
  padding: 1px 7px;
}

.exec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.epill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}
.epill.cyan   { color: var(--cyan);   background: var(--cyan-dim);   border-color: rgba(0,212,255,.3); }
.epill.violet { color: var(--violet); background: var(--violet-dim); border-color: rgba(139,92,246,.3); }
.epill.green  { color: var(--green);  background: var(--green-dim);  border-color: rgba(16,185,129,.3); }
.epill.amber  { color: var(--amber);  background: var(--amber-dim);  border-color: rgba(245,158,11,.3); }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

/* ---- terminal side ---- */
.hero-terminal {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--card-transition);
}
.hero-terminal:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px var(--cyan-glow);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.term-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.term-dot.red   { background: #ff5f57; }
.term-dot.amber { background: #febc2e; }
.term-dot.green { background: #28c840; }
.term-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}
.term-body {
  padding: clamp(14px, 3vw, 24px);
  font-family: var(--mono);
  font-size: clamp(11px, 1.6vw, 13px);
  line-height: 1.75;
  min-height: 180px;
}
.term-line { display: flex; gap: 8px; }
.term-line.cmd    .tl-txt { color: var(--cyan); }
.term-line.info   .tl-txt { color: var(--text2); }
.term-line.ok     .tl-txt { color: var(--green); }
.term-line.err    .tl-txt { color: #ff5f57; }
.tl-prompt { color: var(--violet); user-select: none; }

.term-role {
  padding: clamp(10px, 2vw, 16px) clamp(14px, 3vw, 24px);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: clamp(13px, 2.2vw, 18px);
  font-weight: 600;
}
.role-label { color: var(--text3); font-size: 11px; margin-bottom: 4px; }
.role-text  { color: var(--cyan); min-height: 1.4em; }
.role-cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--cyan); margin-left: 2px; vertical-align: middle; animation: blink .8s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-stats {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  padding: clamp(10px, 2vw, 14px) clamp(14px, 3vw, 24px);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-val {
  font-family: var(--mono);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--cyan);
}
.stat-key {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: clamp(10px, 2vw, 14px) clamp(14px, 3vw, 24px);
  border-top: 1px solid var(--border);
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  font-weight: 600;
}
.chip:hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-dim); }

/* ---- profile side ---- */
.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.profile-frame {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.profile-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan), var(--violet), var(--cyan));
  animation: spin 8s linear infinite;
  z-index: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }
.profile-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
}

.profile-img {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero-name {
  font-family: var(--sans);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
  word-break: break-word;
}

.hero-location {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
}
.loc-icon { color: var(--cyan); font-size: 14px; }

.hero-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.social-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 6px 12px;
  transition: color .2s, border-color .2s, background .2s;
  font-weight: 600;
}
.social-link:hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-dim); }


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.about-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 16px;
}

.info-list { display: flex; flex-direction: column; gap: 8px; }
.info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-key {
  font-family: var(--mono);
  color: var(--text3);
  font-size: 12px;
  font-weight: 600;
}
.info-val {
  color: var(--text2);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.astat {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: var(--card-transition);
}
.astat:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.astat-val {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--cyan);
}
.astat-key {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
  font-weight: 600;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.skill-cat {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--card-transition);
}
.skill-cat:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px var(--cyan-glow);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.skill-cat-icon {
  font-size: 20px;
  width: 36px;
  text-align: center;
}
.skill-cat-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.skill-bar-wrap { margin-bottom: 12px; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 5px;
  font-weight: 600;
}
.skill-bar-label span:last-child { color: var(--cyan); }
.skill-bar-track {
  height: 5px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 3px;
  transition: width 1.4s cubic-bezier(.25,.46,.45,.94);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 3px 9px;
  transition: color .2s, border-color .2s;
}
.tag:hover { color: var(--cyan); border-color: var(--cyan); }
.tag.cyan   { color: var(--cyan);   border-color: rgba(0,212,255,.3);   background: var(--cyan-dim); }
.tag.violet { color: var(--violet); border-color: rgba(139,92,246,.3);  background: var(--violet-dim); }
.tag.green  { color: var(--green);  border-color: rgba(16,185,129,.3);  background: var(--green-dim); }
.tag.amber  { color: var(--amber);  border-color: rgba(245,158,11,.3);  background: var(--amber-dim); }

/* ============================================================
   EXPERIENCE / EDUCATION SECTION
   ============================================================ */
.tl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.tl-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--card-transition);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.tl-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px var(--cyan-glow);
}
.tl-card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,212,255,.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.tl-card:hover .tl-card-shine { opacity: 1; }

.tl-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 6px;
}
.tl-role {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tl-org {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet);
  font-weight: 600;
  margin-bottom: 12px;
}
.tl-body {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
  line-height: 1.7;
}
.tl-body li {
  list-style: none;
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}
.tl-body li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* section sub-headers */
.sub-header {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border2);
}

/* ============================================================
   PUBLICATIONS SECTION
   ============================================================ */
.pub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.pub-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--card-transition);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.pub-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px var(--cyan-glow);
}
.pub-card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,212,255,.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.pub-card:hover .pub-card-shine { opacity: 1; }

.pub-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  padding: 3px 9px;
  margin-bottom: 10px;
  letter-spacing: .06em;
}
.pub-badge.cyan   { color: var(--cyan);   background: var(--cyan-dim);   border: 1px solid rgba(0,212,255,.3); }
.pub-badge.violet { color: var(--violet); background: var(--violet-dim); border: 1px solid rgba(139,92,246,.3); }

.pub-award {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 5px;
  padding: 3px 9px;
  margin-left: 6px;
}

.pub-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}
.pub-authors {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  margin-bottom: 4px;
}
.pub-venue {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--violet);
  font-weight: 700;
  margin-bottom: 12px;
}
.pub-abstract {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 12px;
}
.pub-doi {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
}
.pub-doi:hover { text-decoration: underline; }

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.proj-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: var(--card-transition);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.proj-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px var(--cyan-glow);
}
.proj-card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(0,212,255,.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.proj-card:hover .proj-card-shine { opacity: 1; }

.proj-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.proj-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.proj-gh {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  font-weight: 600;
}
.proj-gh:hover { color: var(--cyan); border-color: var(--cyan); }
.proj-desc {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
  line-height: 1.7;
  flex: 1;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.contact-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: var(--card-transition);
}
.contact-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px var(--cyan-glow);
}
.contact-icon { font-size: 22px; }
.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
  word-break: break-all;
}
.contact-val a { color: var(--cyan); }

/* ============================================================
   SECTION HEADING
   ============================================================ */
.sec-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border2), transparent);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 20px clamp(16px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.footer-brand {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text3);
  font-weight: 600;
}
.footer-brand span { color: var(--cyan); }
.footer-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.footer-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-profile {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    justify-content: flex-start;
  }
  .hero-socials { justify-content: flex-start; }
  .hero-location { justify-content: flex-start; }

  .about-grid    { grid-template-columns: 1fr; }
  .tl-grid       { grid-template-columns: 1fr; }
  .pub-grid      { grid-template-columns: 1fr; }
  .about-stats   { grid-template-columns: repeat(4, 1fr); }

  .nav-links { display: none; }
  .nav-token { display: none; }
  .nav-burger { display: flex; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root { --nav-h: 52px; }

  section { padding: 28px 14px; }

  .hero-grid { gap: 20px; }

  .hero-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-socials  { justify-content: center; }
  .hero-location { justify-content: center; }

  .profile-frame,
  .profile-img   { width: 160px; height: 160px; }

  .hero-stats {
    gap: 10px;
    justify-content: space-between;
  }
  .stat-val { font-size: 18px; }

  .hero-chips { gap: 6px; }
  .chip       { font-size: 10px; padding: 4px 8px; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .skills-grid  { grid-template-columns: 1fr; }
  .proj-grid    { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }

  .info-row { grid-template-columns: 110px 1fr; font-size: 12px; }

  footer { flex-direction: column; text-align: center; }

  .tl-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }

  .agent-bubble { padding: 14px; }
  .tl-card      { padding: 16px; }
  .pub-card     { padding: 16px; }
  .proj-card    { padding: 16px; }
  .skill-cat    { padding: 16px; }
}

/* ============================================================
   RESPONSIVE — Very small (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
  .profile-frame,
  .profile-img { width: 130px; height: 130px; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 16px; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: var(--cyan);
  border-radius: 8px;
  padding: 10px 20px;
  margin-top: 16px;
  transition: opacity .2s, box-shadow .2s;
}
.cv-btn:hover { color: var(--bg); opacity: .9; box-shadow: 0 0 20px var(--cyan-glow); }
