/* ═══════════════════════════════════════════════════════════
   MAHEEDHAR BHAMIDIPATI — Portfolio
   Theme : Dark Silicon · Molten Gold PCB Traces
   Fonts : Syne (display) + Space Mono (code)
   ═══════════════════════════════════════════════════════════ */

/* ── ROOT TOKENS ─────────────────────────────────────────── */
:root {
  --bg0:       #07070e;
  --bg1:       #0c0c18;
  --bg2:       #101020;
  --bg3:       #16162a;

  --gold:      #f5a623;
  --gold2:     #e05c2a;
  --gold-dim:  rgba(245,166,35,0.13);
  --gold-glow: 0 0 28px rgba(245,166,35,0.38);

  --text:      #ccc8e4;
  --text-dim:  #6868a0;
  --border:    rgba(245,166,35,0.16);
  --border-lo: rgba(245,166,35,0.06);

  --card:      rgba(12,12,24,0.9);
  --nav-h:     68px;
  --sans:      'Syne', sans-serif;
  --mono:      'Space Mono', monospace;
  --r:         8px;
  --ease:      0.3s ease;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── UTILITIES ───────────────────────────────────────────── */
.mono    { font-family: var(--mono); }
.gold    { color: var(--gold); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

/* ── BG CANVAS ───────────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(7,7,14,0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-lo);
  transition: background var(--ease), box-shadow var(--ease);
}
#navbar.scrolled {
  background: rgba(7,7,14,0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.65);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 1px;
}
.logo-bracket { font-family: var(--mono); font-size: 1rem; opacity: 0.6; }

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-link {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  transition: color var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-link:hover,
.nav-link.active        { color: var(--gold); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.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); }

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════════════════ */
section { position: relative; z-index: 1; padding: 108px 0 78px; }
#hero   { padding: 0; min-height: 100vh; }

#about        { background: var(--bg1); }
#skills       { background: var(--bg0); }
#projects     { background: var(--bg1); }
#publications { background: var(--bg0); }
#resume       { background: var(--bg1); }
#contact      { background: var(--bg0); }

/* section heading */
.sec-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.sec-num {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.sec-title {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #edeaff;
  white-space: nowrap;
}
.sec-rule {
  flex: 1;
  height: 1px;
  max-width: 380px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--ease);
  padding: 0.72rem 1.6rem;
  border: 2px solid var(--gold);
}
.btn-solid {
  background: var(--gold);
  color: #090710;
  font-weight: 700;
}
.btn-solid:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: var(--gold-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: #090710;
  font-weight: 700;
}
.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.74rem; }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
#hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 2rem) 4rem 3rem;
  gap: 2.5rem;
}
.hero-content { flex: 1; max-width: 640px; }

.hero-pre {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
  opacity: 0.85;
}
.hero-name {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.06;
  color: #edeaff;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}
.badge {
  font-size: 0.73rem;
  padding: 0.32rem 0.85rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 2px;
  background: var(--gold-dim);
  letter-spacing: 0.04em;
}
.hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 2.4rem;
}
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* scroll hint */
.scroll-hint { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.scroll-hint .mono { font-size: 0.7rem; color: var(--text-dim); }
.scroll-bar {
  width: 2px; height: 46px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%,100% { opacity: 1; height: 46px; }
  50%      { opacity: 0.25; height: 20px; }
}

/* ── IC chip ── */
.ic-wrap { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ic-chip {
  position: relative;
  width: 210px; height: 210px;
  display: flex; align-items: center; justify-content: center;
}
.ic-core {
  width: 160px; height: 160px;
  background: var(--bg3);
  border: 2px solid var(--gold);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  animation: chipPulse 3.5s ease-in-out infinite;
}
@keyframes chipPulse {
  0%,100% { box-shadow: 0 0 22px rgba(245,166,35,0.28), inset 0 0 30px rgba(245,166,35,0.04); }
  50%      { box-shadow: 0 0 52px rgba(245,166,35,0.58), inset 0 0 55px rgba(245,166,35,0.1); }
}
.ic-label { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.12em; }
.ic-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 5px;
}
.ic-cell {
  width: 12px; height: 12px;
  background: var(--bg2);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 2px;
  transition: background 0.4s;
}
.gold-cell { background: rgba(245,166,35,0.4); }

/* pins */
.ic-pins { position: absolute; display: flex; gap: 12px; }
.ic-pins--left,  .ic-pins--right  { flex-direction: column; top: 50%; transform: translateY(-50%); }
.ic-pins--top,   .ic-pins--bottom { flex-direction: row;    left: 50%; transform: translateX(-50%); }
.ic-pins--left   { left:  -14px; }
.ic-pins--right  { right: -14px; }
.ic-pins--top    { top:   -14px; }
.ic-pins--bottom { bottom:-14px; }
.ic-pins span { display: block; background: var(--gold); border-radius: 1px; opacity: 0.7; }
.ic-pins--left span, .ic-pins--right span   { width: 12px; height: 7px; }
.ic-pins--top  span, .ic-pins--bottom span  { width: 7px;  height: 12px; }

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.about-body p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-size: 0.97rem;
  line-height: 1.88;
}
.about-stats {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.stat-box {
  flex: 1; min-width: 95px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 0.9rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.stat-box:hover { border-color: var(--gold); box-shadow: var(--gold-glow); }
.stat-val { font-size: 1.9rem; font-weight: 800; }
.stat-lbl { font-size: 0.68rem; color: var(--text-dim); text-align: center; line-height: 1.4; }

.about-card {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.about-card:hover { border-color: var(--gold); box-shadow: var(--gold-glow); }

.avatar-wrap {
  position: relative;
  width: 78px; height: 78px;
  margin: 0 auto 1.75rem;
  display: flex; align-items: center; justify-content: center;
}
.avatar-ring {
  position: absolute; inset: 0;
  border: 2px solid var(--gold);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 10s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-core {
  width: 62px; height: 62px;
  background: var(--bg3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  color: var(--gold);
}

.info-list { display: flex; flex-direction: column; gap: 0.8rem; }
.info-list li {
  display: flex; flex-direction: column; gap: 0.08rem;
  font-size: 0.77rem;
  border-bottom: 1px solid var(--border-lo);
  padding-bottom: 0.65rem;
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-key {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.blink { animation: blink 1.4s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ═══════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
.skill-panel {
  background: var(--card);
  border: 1px solid var(--border-lo);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.skill-panel:hover {
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
  transform: translateY(-3px);
}
.skill-panel-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #edeaff;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.65rem;
  background: var(--gold-dim);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 3px;
  color: var(--text);
  cursor: default;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.tag:hover {
  background: rgba(245,166,35,0.22);
  color: var(--gold);
  border-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   WORK EXPERIENCE — 
   ═══════════════════════════════════════════════════════════ */

.timeline {
  position: relative;
  margin-left: 1rem;
  padding-left: 2rem;
}

/* vertical silicon trace line */
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; /* fixed alignment */
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.6;
}

/* each stage */
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

/* silicon node (stable) */
.timeline-dot {
  position: absolute;
  left: 0; /* FIXED alignment */
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  transform: translateZ(0); /* GPU fix */
}

/* card */
.timeline-content {
  background: var(--card);
  border: 1px solid var(--border-lo);
  border-radius: var(--r);
  padding: 1.5rem;
  min-height: 120px; /* prevents jump */
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  will-change: transform;
  transform: translateZ(0); /* GPU stabilization */
}

/* HOVER — NO SHAKE VERSION */
.timeline-content:hover {
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
  transform: scale(1.02); /* smoother than translate */
}

/* text */
.exp-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: #edeaff;
}

.exp-company {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}

.exp-desc {
  padding-left: 1rem;
}

.exp-desc li {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 1.75rem;
}
.proj-card {
  background: var(--card);
  border: 1px solid var(--border-lo);
  border-radius: var(--r);
  padding: 1.9rem;
  display: flex; flex-direction: column; gap: 0.95rem;
  position: relative; overflow: hidden;
  backdrop-filter: blur(6px);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.proj-card:hover {
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
  transform: translateY(-5px);
}
.proj-card:hover::before { transform: scaleX(1); }

.proj-top { display: flex; justify-content: space-between; align-items: center; }
.proj-hex { font-size: 1.5rem; opacity: 0.55; }
.proj-icons { display: flex; gap: 0.7rem; }
.gh-link {
  color: var(--text-dim);
  display: flex; align-items: center;
  transition: color var(--ease), transform var(--ease);
}
.gh-link:hover { color: var(--gold); transform: translateY(-2px); }

.proj-title { font-size: 1.05rem; font-weight: 700; color: #edeaff; line-height: 1.4; }
.proj-desc  { font-size: 0.88rem; color: var(--text-dim); line-height: 1.78; flex: 1; }
.tool-tags  { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; }
.tool {
  font-family: var(--mono);
  font-size: 0.67rem;
  padding: 0.22rem 0.6rem;
  background: rgba(224,92,42,0.1);
  border: 1px solid rgba(224,92,42,0.28);
  border-radius: 3px;
  color: #e09070;
}

/* ═══════════════════════════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════════════════════════ */
.pub-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.pub-item {
  display: flex; gap: 1.4rem; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border-lo);
  border-radius: var(--r);
  padding: 1.5rem 1.8rem;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.pub-item:hover {
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
  transform: translateX(6px);
}
.pub-meta {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.4rem; flex-shrink: 0; padding-top: 0.1rem;
}
.pub-badge {
  font-size: 0.62rem;
  padding: 0.3rem 0.62rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 3px;
  letter-spacing: 0.1em;
  background: var(--gold-dim);
  white-space: nowrap;
}
.pub-year {
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.pub-body { flex: 1; }
.pub-title { font-size: 0.97rem; font-weight: 700; color: #edeaff; margin-bottom: 0.35rem; line-height: 1.45; }
.pub-venue { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.6rem; }
.pub-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; color: var(--gold2);
  transition: color var(--ease);
}
.pub-link:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   RESUME  — the star section
   ═══════════════════════════════════════════════════════════ */
.resume-wrap { max-width: 900px; }

/* action bar */
.resume-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r) var(--r) 0 0;
  padding: 0.85rem 1.25rem;
}
.resume-actions-left { display: flex; align-items: center; gap: 0.6rem; }
.resume-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.resume-actions-right { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* frame wrapper */
.resume-frame-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r) var(--r);
  overflow: hidden;
  background: var(--bg3);
}
.resume-frame-inner {
  position: relative;
  width: 100%;
  padding-top: 130%; /* tall enough to show A4 resume */
  max-height: 88vh;
}
.resume-frame-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

/* fallback */
.resume-fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-dim);
  background: var(--bg3);
}
.resume-fallback.show { display: flex; }
.resume-fallback p { font-size: 0.88rem; }

/* decorative corner accents */
.corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.corner-tl { top: 0; left: 0;  border-width: 2px 0 0 2px; }
.corner-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; }
.corner-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-lead {
  font-size: 1.02rem;
  color: var(--text-dim);
  margin-bottom: 2.8rem;
  line-height: 1.88;
  max-width: 620px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
  max-width: 800px;
}
.contact-tile {
  display: flex; align-items: center; gap: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border-lo);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.contact-tile:hover {
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
  transform: translateY(-3px);
}
.ct-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: background var(--ease);
}
.contact-tile:hover .ct-icon { background: rgba(245,166,35,0.25); }
.ct-key {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.18rem;
}
.ct-val { font-size: 0.8rem; color: var(--text); word-break: break-all; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
#footer {
  position: relative; z-index: 1;
  background: var(--bg0);
  border-top: 1px solid var(--border-lo);
  padding: 2.4rem 2rem;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.55rem;
}
.footer-logo  { font-size: 1.15rem; font-weight: 700; color: var(--gold); }
.footer-copy  { font-size: 0.73rem; color: var(--text-dim); text-align: center; }
.footer-stack { font-size: 0.65rem; color: rgba(100,90,155,0.45); }

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar        { width: 5px; }
::-webkit-scrollbar-track  { background: var(--bg0); }
::-webkit-scrollbar-thumb  { background: var(--gold); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  #hero {
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 3rem) 2.5rem 3rem;
    text-align: center;
    min-height: auto;
    padding-bottom: 5rem;
  }
  .hero-badges, .hero-actions { justify-content: center; }
  .scroll-hint { align-items: center; }
  .ic-wrap { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-card   { position: static; }
  .proj-grid    { grid-template-columns: 1fr; }
  .resume-frame-inner { padding-top: 140%; }
}
@media (max-width: 720px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7,7,14,0.97);
    backdrop-filter: blur(18px);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border-lo);
  }
  .nav-links.open { display: flex; }
  .nav-link {
    display: block;
    padding: 0.95rem 2rem;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-lo);
  }
  .nav-link::after { display: none; }
  #navbar { padding: 0 1.4rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .pub-item    { flex-direction: column; gap: 0.7rem; }
  .pub-meta    { flex-direction: row; align-items: center; }
  .sec-title   { font-size: 1.45rem; }
  .resume-actions { flex-direction: column; align-items: flex-start; }
  .resume-frame-inner { padding-top: 160%; max-height: none; }
}
@media (max-width: 480px) {
  #hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem; }
  .about-stats { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 2.5rem; }
  .resume-actions-right { width: 100%; }
  .resume-actions-right .btn { flex: 1; justify-content: center; }
}
