/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #2d3142;
  --bg-alt:    #272b3c;
  --bg-card:   #404a5d;
  --bg-card2:  #4a5568;
  --border:    #535f75;
  --accent:    #ef8354;
  --accent-dim:#c4622e;
  --accent-glow: rgba(239,131,84,.15);
  --text:      #f0ece6;
  --text-muted:#b0b8c8;
  --text-dim:  #6b7a94;
  --red:       #ff5f57;
  --yellow:    #febc2e;
  --green:     #ef9a6a;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Courier New', monospace;
  --radius:    10px;
  --radius-lg: 16px;
  --nav-h:     64px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #f9a87a; }

p { color: var(--text-muted); margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 { color: var(--text); font-weight: 600; line-height: 1.25; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Navigation ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(45,49,66,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.4); }

.nav-inner {
  max-width: 1160px; margin: 0 auto;
  height: 100%; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem; font-weight: 500;
  color: var(--accent); letter-spacing: .05em;
}
.nav-logo:hover { color: #f9a87a; }

.nav-links {
  list-style: none;
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  letter-spacing: .02em; padding: .2rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #0d1117; border-color: var(--accent);
}
.btn-primary:hover {
  background: #f9a87a; border-color: #f9a87a; color: #0d1117;
  box-shadow: 0 0 20px rgba(239,131,84,.3);
}
.btn-outline {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-glow); color: #f9a87a; border-color: #f9a87a;
}
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  font-family: var(--mono);
  color: var(--accent); font-size: .85rem;
  display: block; margin-bottom: .75rem; letter-spacing: .04em;
}
.section-header h2 { font-size: 2.2rem; margin-bottom: .75rem; }
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 32px rgba(0,0,0,.3); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: calc(var(--nav-h) + 60px) 2rem 80px;
  max-width: 1160px; margin: 0 auto;
  position: relative;
}

.hero-bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .25;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 20%, transparent 100%);
}

.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(239,131,84,.08); border: 1px solid rgba(239,131,84,.25);
  border-radius: 999px; padding: .3rem .85rem;
  font-size: .8rem; color: var(--accent); margin-bottom: 1.2rem;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem;
  background: linear-gradient(135deg, #f0ece6 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-role {
  font-family: var(--mono); font-size: 1rem; color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-desc { font-size: 1.05rem; max-width: 500px; margin-bottom: 2rem; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Photo */
.hero-photo-wrap { display: flex; justify-content: center; align-items: center; }

.hero-photo {
  width: 100%; max-width: 420px; aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow), 0 0 40px rgba(239,131,84,.2);
  overflow: hidden;
}

.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; display: block;
}

/* ── About Grid ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.bio-card     { grid-column: 1 / -1; }
.contact-card { grid-column: 1 / 2; }
.skills-card  { grid-column: 2 / 3; }

.contact-list { list-style: none; margin-bottom: 1.5rem; }
.contact-list li {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem;
  color: var(--text-muted);
}
.contact-list li:last-child { border-bottom: none; }
.icon { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }
.icon-sm { width: 15px; height: 15px; fill: currentColor; }

.contact-card h3, .skills-card h3, .bio-card h3 { margin-bottom: 1rem; font-size: 1.1rem; }

.skills-intro { margin-bottom: 1rem; font-size: .92rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 999px; padding: .3rem .85rem;
  font-size: .8rem; color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── Experience ── */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.exp-column-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); margin-bottom: 1.75rem;
}
.exp-column-title svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }

.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}

.timeline-item { display: flex; gap: 1.25rem; padding-bottom: 1.5rem; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  margin-top: 6px; position: relative; z-index: 1;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline-card {
  flex: 1; padding: 1.25rem 1.4rem;
}
.timeline-card:hover { border-color: var(--accent-dim); }

.timeline-period {
  font-family: var(--mono); font-size: .75rem;
  color: var(--accent); margin-bottom: .35rem; letter-spacing: .04em;
}

.timeline-card h4 { font-size: 1rem; margin-bottom: .2rem; }

.timeline-place {
  font-size: .82rem; color: var(--text-dim);
  margin-bottom: .6rem; font-style: italic;
}

.timeline-card p { font-size: .88rem; margin: 0; }

.cv-bar {
  margin-top: 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.6rem;
  box-shadow: 0 0 0 1px var(--accent-glow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cv-bar:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.cv-bar-info {
  display: flex; align-items: center; gap: 1rem;
}
.cv-bar-info svg {
  width: 36px; height: 36px; fill: var(--accent); flex-shrink: 0;
}
.cv-bar-title {
  display: block; font-weight: 600; font-size: 1rem; color: var(--text);
}
.cv-bar-sub {
  display: block; font-size: .8rem; color: var(--text-dim);
  font-family: var(--mono); margin-top: .1rem;
}

.cv-bar-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .experience-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Internship preview (homepage) ── */
.internship-preview {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.internship-preview-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.internship-preview-desc {
  font-size: 1rem; max-width: 720px;
}

/* ── Internship dedicated page ── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 56px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.back-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.back-link svg { width: 18px; height: 18px; fill: currentColor; }
.back-link:hover { color: var(--accent); }

.page-hero-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .4rem 0 .5rem; }
.page-hero-content .hero-desc { font-size: 1rem; margin: 0; }

/* ── Internship ── */
.internship-header-card { margin-bottom: 1.5rem; }
.internship-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem;
}
.meta-label { display: block; font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.meta-value { font-size: 1rem; font-weight: 500; color: var(--text); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.two-col .card h3 { margin-bottom: 1rem; font-size: 1.1rem; }

/* Evidence */
.evidence-section h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.evidence-intro { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.5rem; }

.evidence-grid { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }

.evidence-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex; align-items: center; gap: 1.2rem;
  transition: border-color var(--transition);
}
.evidence-card:hover { border-color: var(--accent-dim); }
.evidence-icon { width: 40px; height: 40px; flex-shrink: 0; }
.evidence-icon svg { fill: var(--accent); width: 100%; height: 100%; }
.evidence-info { flex: 1; }
.evidence-info h4 { font-size: .95rem; margin-bottom: .2rem; }
.evidence-info p { font-size: .85rem; color: var(--text-muted); margin: 0; }


/* ── Projects ── */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex; flex-direction: column;
  padding: 0; overflow: hidden; cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 12px 40px rgba(0,0,0,.35);
  transform: translateY(-3px);
}

/* Card image */
.project-card-img {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--bg-card2); overflow: hidden; flex-shrink: 0;
}
.project-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.04); }
.project-card-img.no-img {
  display: flex; align-items: center; justify-content: center;
}
.project-card-img.no-img::after {
  content: '[ image ]';
  font-family: var(--mono); font-size: .8rem; color: var(--text-dim);
}
.project-card-tags {
  position: absolute; bottom: .6rem; left: .75rem;
  display: flex; gap: .35rem; flex-wrap: wrap;
}
.project-tag {
  background: rgba(20,22,32,.75); backdrop-filter: blur(6px);
  border: 1px solid rgba(239,131,84,.35);
  border-radius: 999px; padding: .2rem .65rem;
  font-size: .72rem; color: var(--accent);
}

/* Card body */
.project-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex; flex-direction: column; gap: .6rem; flex: 1;
}
.project-card-meta { display: flex; justify-content: flex-end; }
.project-year { font-size: .78rem; color: var(--text-dim); font-family: var(--mono); }
.project-card-body h3 { font-size: 1.05rem; margin: 0; }
.project-card-body p { font-size: .88rem; margin: 0; flex: 1; }
.project-read-more { align-self: flex-start; margin-top: .5rem; }

/* ── Project Detail Modal ── */
.proj-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,22,32,.8);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.proj-modal-backdrop.open { opacity: 1; pointer-events: auto; }

.proj-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  z-index: 201;
  width: min(92vw, 860px);
  max-height: 88vh;
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.proj-modal.open {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%);
}

.proj-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2); flex-shrink: 0;
}
.proj-modal-title-wrap { display: flex; flex-direction: column; gap: .4rem; }
.proj-modal-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.proj-modal-title { font-size: 1.3rem; margin: 0; }

.proj-modal-body {
  overflow-y: auto; flex: 1;
  padding: 0 0 2rem;
}
.proj-modal-body::-webkit-scrollbar { width: 5px; }
.proj-modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.proj-modal-img-wrap {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0;
  background: var(--bg-card2);
}
.proj-modal-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.proj-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; padding: 1.75rem 1.75rem 0;
}
.proj-detail-full { grid-column: 1 / -1; }

.proj-detail-section h4 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); margin-bottom: .5rem;
}
.proj-detail-section p { font-size: .92rem; }

.proj-detail-links {
  display: flex; gap: .75rem; flex-wrap: wrap;
  padding: 1.5rem 1.75rem 0;
}

@media (max-width: 600px) {
  .proj-detail-grid { grid-template-columns: 1fr; }
  .proj-detail-full { grid-column: 1; }
}


/* ── Internship page components ── */
.intern-section-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.intern-section-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.intern-full-col { grid-column: 1 / -1; }
.intern-full-card { width: 100%; }

.intern-phases { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.intern-phase-tag {
  background: rgba(239,131,84,.1); border: 1px solid rgba(239,131,84,.25);
  border-radius: 999px; padding: .3rem .85rem;
  font-size: .78rem; color: var(--accent);
}

.intern-findings-list {
  list-style: none; display: flex; flex-direction: column; gap: .5rem;
  margin: .75rem 0;
}
.intern-findings-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .88rem; color: var(--text-muted);
}
.finding-severity {
  font-size: .7rem; font-weight: 600; border-radius: 4px;
  padding: .15rem .5rem; white-space: nowrap; flex-shrink: 0; margin-top: .1rem;
}
.finding-severity.critical { background: rgba(220,60,60,.2); color: #ff6b6b; }
.finding-severity.high     { background: rgba(239,131,84,.2); color: var(--accent); }
.finding-severity.info     { background: rgba(100,160,220,.15); color: #7ab8f5; }
.finding-severity.finding  { background: rgba(239,131,84,.15); color: var(--accent); }

.intern-tool-note {
  font-size: .8rem; color: var(--text-dim);
  font-family: var(--mono); margin-top: .5rem; margin-bottom: 0;
}

.client-eng-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.client-eng-grid h3 { margin-bottom: .75rem; font-size: 1.05rem; }

.side-assign-icon { margin-bottom: .75rem; }
.side-assign-icon svg { width: 28px; height: 28px; fill: var(--accent); }

.docs-block { }
.docs-block-second {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
}
.docs-block-header { margin-bottom: 1.5rem; }
.docs-block-header h2 { font-size: 1.75rem; margin: .3rem 0 .6rem; }
.docs-block-header .section-sub { margin: 0; }

@media (max-width: 900px) {
  .intern-section-grid,
  .intern-section-grid.three-col,
  .client-eng-grid { grid-template-columns: 1fr; }
  .intern-full-col { grid-column: 1; }
}

/* ── PDF Modal ── */
.pdf-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 22, 32, .75);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.pdf-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.pdf-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  z-index: 201;
  width: min(92vw, 960px);
  height: min(88vh, 860px);
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  flex-direction: column;
  overflow: hidden;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.pdf-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.pdf-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2);
  flex-shrink: 0;
}

.pdf-modal-title {
  font-size: .95rem; font-weight: 600; color: var(--text);
}

.pdf-modal-actions { display: flex; align-items: center; gap: .75rem; }

.pdf-close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: .3rem;
  border-radius: 6px; display: flex; align-items: center;
  transition: color var(--transition), background var(--transition);
}
.pdf-close-btn:hover { color: var(--text); background: var(--border); }
.pdf-close-btn svg { width: 20px; height: 20px; fill: currentColor; }

.pdf-frame {
  flex: 1; width: 100%; border: none;
  background: #fff;
}

/* ── Markdown Modal ── */
.md-modal { max-width: 860px; }
.md-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  color: var(--text);
  line-height: 1.75;
}
.md-body h1, .md-body h2, .md-body h3, .md-body h4 {
  color: var(--accent);
  margin: 1.5rem 0 .6rem;
  line-height: 1.3;
}
.md-body h1 { font-size: 1.6rem; border-bottom: 1px solid var(--border); padding-bottom: .4rem; }
.md-body h2 { font-size: 1.3rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; }
.md-body h3 { font-size: 1.1rem; }
.md-body h4 { font-size: 1rem; }
.md-body p { margin: .6rem 0; }
.md-body ul, .md-body ol { padding-left: 1.5rem; margin: .6rem 0; }
.md-body li { margin: .3rem 0; }
.md-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1rem 0;
  padding: .5rem 1rem;
  background: rgba(239,131,84,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim);
}
.md-body blockquote p { margin: .3rem 0; }
.md-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  background: rgba(255,255,255,.07);
  padding: .15em .4em;
  border-radius: 4px;
  color: var(--accent);
}
.md-body pre {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: .8rem 0;
}
.md-body pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
  font-size: .82rem;
}
.md-body img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: .75rem 0;
  display: block;
}
.md-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}
.md-body a { color: var(--accent); }
.md-body strong { color: var(--text); }

/* ── Get in Touch ── */
.contact-cta {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-cta p {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-cta-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-cta-links .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.contact-cta-links .icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.footer-inner {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; color: var(--text-dim); font-size: .85rem;
}
.footer-sep { opacity: .4; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: calc(var(--nav-h) + 40px); }
  .hero-photo { max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .bio-card { grid-column: 1; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(13,17,23,.97); border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem; gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .section { padding: 70px 0; }
  .hero-content h1 { font-size: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
