@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #08090b;
  --surface: #101216;
  --surface-2: #15171c;
  --text: #f2f3f5;
  --muted: #9a9da6;
  --line: #272a31;
  --accent: #72a7ff;
  --accent-2: #b58cff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1180px; margin: auto; padding: 24px 28px;
  background: rgba(8,9,11,.82); backdrop-filter: blur(18px);
}
.logo { font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.logo span, h1 span, h2 span { color: var(--accent); }
.nav nav { display: flex; gap: 28px; }
.nav nav a, .socials a, .contact-links a { color: var(--muted); font-size: 13px; transition: .2s; }
.nav nav a:hover, .socials a:hover, .contact-links a:hover { color: var(--text); }

.hero {
  min-height: 82vh; max-width: 1180px; margin: auto; padding: 90px 28px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center;
}
.eyebrow, .section-label, .date {
  font: 500 12px/1.2 "DM Mono", monospace;
  letter-spacing: 1.5px; color: var(--accent);
}
h1 { font-size: clamp(52px, 7vw, 88px); line-height: 1.03; letter-spacing: -4px; margin: 22px 0; }
.lead { max-width: 650px; color: var(--muted); font-size: 17px; }
.actions { display: flex; gap: 12px; margin: 30px 0 20px; }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 700; border: 1px solid var(--line);
}
.button.primary { background: var(--text); color: #090a0c; }
.button.secondary:hover { background: var(--surface-2); }
.socials { display: flex; gap: 22px; }

.hero-card {
  padding: 18px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(145deg, var(--surface), #0b0c0f);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.status { color: var(--muted); font-size: 12px; margin: 5px 4px 16px; }
.status span { display: inline-block; width: 7px; height: 7px; background: #72e0a0; border-radius: 50%; margin-right: 8px; }
.code-window { background: #08090b; border-radius: 12px; padding: 18px; }
.dots { display: flex; gap: 6px; margin-bottom: 22px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #343740; }
pre { overflow: auto; font: 13px/2 "DM Mono", monospace; color: #c6c9d1; }
pre b { color: var(--accent-2); font-weight: 500; }

.section { max-width: 1180px; margin: auto; padding: 110px 28px; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: -2px; margin: 18px 0 45px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.about-grid h2 { margin-top: 0; }
.about-grid p { color: var(--muted); margin-bottom: 18px; }
.facts { display: flex; gap: 45px; margin-top: 35px; }
.facts div { display: flex; flex-direction: column; }
.facts strong { font-size: 25px; }
.facts small { color: var(--muted); font-size: 11px; }

.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.skill-grid article { background: var(--bg); padding: 28px; min-height: 145px; }
.skill-grid h3 { margin-bottom: 12px; }
.skill-grid p { color: var(--muted); font-size: 13px; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project {
  border: 1px solid var(--line); border-radius: 14px; padding: 30px;
  background: var(--surface); transition: transform .25s, border-color .25s;
}
.project:hover { transform: translateY(-5px); border-color: #414550; }
.project.featured { grid-column: span 2; }
.project-top { display: flex; justify-content: space-between; color: var(--muted); font: 12px "DM Mono", monospace; }
.project h3 { font-size: 27px; margin: 28px 0 12px; }
.project p { color: var(--muted); max-width: 720px; }
.tags { color: var(--accent); font: 11px "DM Mono", monospace; margin: 25px 0; }
.project a { font-size: 13px; font-weight: 700; }

.timeline article {
  display: grid; grid-template-columns: 220px 1fr; gap: 45px;
  padding: 35px 0; border-bottom: 1px solid var(--line);
}
.timeline h3 { font-size: 22px; }
.company { color: var(--accent); margin: 4px 0 12px; font-size: 13px; }
.timeline p:last-child { color: var(--muted); max-width: 760px; }

.education strong { color: var(--accent); }

.contact {
  text-align: center; max-width: 1180px; margin: 0 auto; padding: 140px 28px;
  border-top: 1px solid var(--line);
}
.contact h2 { font-size: clamp(44px, 6vw, 76px); line-height: 1.05; letter-spacing: -3px; margin: 20px 0 35px; }
.contact-links { display: flex; justify-content: center; gap: 25px; margin-top: 35px; }

footer {
  max-width: 1180px; margin: auto; padding: 25px 28px 40px;
  display: flex; justify-content: space-between; color: var(--muted);
  font: 11px "DM Mono", monospace;
}

@media (max-width: 800px) {
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 25px; }
  .skill-grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project.featured { grid-column: auto; }
  .timeline article { grid-template-columns: 1fr; gap: 10px; }
  .contact-links { flex-direction: column; gap: 10px; }
  footer { flex-direction: column; gap: 8px; }
  h1 { letter-spacing: -2.5px; }
}


/* ---------- V2: motion + visual polish ---------- */

body {
  overflow-x: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -20% -10%;
  z-index: -3;
  opacity: .42;
  background-image:
    linear-gradient(rgba(114,167,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114,167,255,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 72%);
  animation: gridDrift 18s linear infinite;
}

.orb {
  position: absolute;
  z-index: -2;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .14;
  pointer-events: none;
}

.orb-one {
  top: 4%;
  right: 12%;
  background: #72a7ff;
  animation: floatOne 8s ease-in-out infinite;
}

.orb-two {
  bottom: -15%;
  left: 18%;
  background: #b58cff;
  animation: floatTwo 10s ease-in-out infinite;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #72e0a0;
  box-shadow: 0 0 0 0 rgba(114,224,160,.45);
  animation: pulse 2s infinite;
}

.hero h1 {
  animation: heroText .9s cubic-bezier(.2,.8,.2,1) both;
}

.hero .lead {
  animation: heroText .9s .12s cubic-bezier(.2,.8,.2,1) both;
}

.hero .actions {
  animation: heroText .9s .22s cubic-bezier(.2,.8,.2,1) both;
}

.hero .socials {
  animation: heroText .9s .32s cubic-bezier(.2,.8,.2,1) both;
}

.hero-card {
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.hero-card:hover {
  transform: translateY(-8px) rotateX(1deg) rotateY(-1deg);
  border-color: #3b4351;
  box-shadow: 0 35px 100px rgba(53,95,165,.14);
}

.code-window {
  position: relative;
  overflow: hidden;
}

.code-window::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -80%;
  width: 45%;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transform: skewX(-18deg);
  animation: scan 5s ease-in-out infinite;
}

.magnetic {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.magnetic:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,.24);
}

.button b {
  margin-left: 7px;
  font-weight: 500;
  transition: transform .2s ease;
}

.button:hover b {
  display: inline-block;
  transform: translateX(3px);
}

.scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 28px;
  color: #6e727c;
  font: 10px "DM Mono", monospace;
  letter-spacing: 1.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-cue span {
  display: block;
  width: 28px;
  height: 1px;
  background: #555a64;
  animation: scrollLine 1.8s ease-in-out infinite;
}

.fact {
  position: relative;
}

.fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 18px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.fact:hover::before {
  transform: scaleX(1);
}

.skill-grid article {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, background .25s ease;
}

.skill-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(114,167,255,.09), transparent 42%);
  opacity: 0;
  transition: opacity .3s ease;
}

.skill-grid article:hover {
  transform: translateY(-3px);
  background: #0d0f13;
}

.skill-grid article:hover::before {
  opacity: 1;
}

.project {
  position: relative;
  overflow: hidden;
}

.project::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: rgba(114,167,255,.08);
  transition: transform .45s ease;
}

.project:hover::before {
  transform: scale(1.8);
}

.project a {
  position: relative;
  display: inline-block;
}

.project a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.project a:hover::after {
  transform: scaleX(1);
}

.timeline article {
  transition: padding-left .3s ease;
}

.timeline article:hover {
  padding-left: 10px;
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 220px;
  left: 50%;
  bottom: -180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(114,167,255,.13);
  filter: blur(70px);
  pointer-events: none;
}

.reveal-section {
  animation: sectionReveal linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}

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

@keyframes gridDrift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(54px,54px,0); }
}

@keyframes floatOne {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-35px,25px) scale(1.08); }
}

@keyframes floatTwo {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(35px,-30px) scale(1.12); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(114,224,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(114,224,160,0); }
}

@keyframes scan {
  0%, 20% { left: -80%; }
  55%, 100% { left: 140%; }
}

@keyframes scrollLine {
  0%,100% { transform: scaleX(.45); transform-origin: left; opacity: .5; }
  50% { transform: scaleX(1); transform-origin: left; opacity: 1; }
}

@keyframes sectionReveal {
  from { opacity: .25; transform: translateY(45px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 800px) {
  .hero-grid { background-size: 38px 38px; }
  .orb { width: 260px; height: 260px; filter: blur(55px); }
  .scroll-cue { display: none; }
}


/* ---------- V3: project showcase ---------- */

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading-row h2 {
  margin-bottom: 45px;
}

.section-heading-row > p {
  max-width: 310px;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.project {
  min-height: 360px;
}

.project-main {
  min-height: 410px;
  background:
    radial-gradient(circle at 80% 20%, rgba(114,167,255,.08), transparent 30%),
    linear-gradient(145deg, #11151c, #0d0f13);
}

.project-main .project-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(181,140,255,.08);
  filter: blur(45px);
  transition: transform .6s ease;
}

.project-main:hover .project-glow {
  transform: scale(1.35);
}

.project-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
  height: calc(100% - 30px);
}

.project-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #343945;
  border-radius: 13px;
  background: #0a0c10;
  font-size: 22px;
  color: var(--accent);
  transition: transform .3s ease, border-color .3s ease;
}

.project-main:hover .project-icon {
  transform: translateY(-4px) rotate(-4deg);
  border-color: var(--accent);
}

.project-main h3 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.5px;
  margin: 22px 0 12px;
}

.project-main p {
  max-width: 690px;
}

.project-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-metrics div {
  min-height: 100px;
  padding: 20px;
  background: rgba(8,9,11,.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-metrics span {
  color: #676b75;
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.project-metrics strong {
  font: 500 14px "DM Mono", monospace;
  color: #dfe2e8;
}

.project-number {
  position: absolute;
  top: 62px;
  right: 28px;
  font: 64px/1 "DM Mono", monospace;
  color: rgba(255,255,255,.035);
  transition: color .3s ease, transform .3s ease;
}

.project-small:hover .project-number {
  color: rgba(114,167,255,.10);
  transform: translateY(-5px);
}

.project-small h3 {
  position: relative;
  max-width: 390px;
  font-size: 25px;
  margin-top: 55px;
}

.project-small p {
  max-width: 470px;
}

.project-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}

.project-link span {
  transition: transform .25s ease;
}

.project-link:hover span {
  transform: translate(3px, -3px);
}

@media (max-width: 800px) {
  .section-heading-row {
    display: block;
  }

  .section-heading-row > p {
    margin-top: -25px;
    margin-bottom: 35px;
    text-align: left;
  }

  .project-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .project-main {
    min-height: auto;
  }

  .project-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .project-metrics div {
    min-height: 82px;
    padding: 12px;
  }

  .project-metrics strong {
    font-size: 11px;
  }

  .project-metrics span {
    font-size: 8px;
  }

  .project-small {
    min-height: 330px;
  }
}


/* ---------- V4: identity + resume ---------- */

.identity-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 65px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.identity-item {
  min-height: 88px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(16,18,22,.55);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.identity-item:hover {
  transform: translateY(-4px);
  background: #101318;
  border-color: #3a3e48;
}

.identity-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid #30343d;
  border-radius: 10px;
  color: var(--accent);
  font: 18px "DM Mono", monospace;
}

.identity-item div {
  display: flex;
  flex-direction: column;
}

.identity-item small {
  color: #666b75;
  font: 9px "DM Mono", monospace;
  letter-spacing: 1.2px;
  margin-bottom: 3px;
}

.identity-item strong {
  font-size: 13px;
  font-weight: 600;
}

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

@media (max-width: 800px) {
  .identity-strip {
    grid-template-columns: 1fr;
    padding-bottom: 35px;
  }

  .identity-item {
    min-height: 76px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
}


/* ---------- V5: final visual polish ---------- */

::selection {
  background: rgba(114,167,255,.25);
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(114,167,255,.035), transparent 25%),
    radial-gradient(circle at 85% 70%, rgba(181,140,255,.025), transparent 28%);
}

.section,
.contact {
  scroll-margin-top: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
}

.socials a,
.contact-links a {
  position: relative;
}

.socials a::after,
.contact-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}

.socials a:hover::after,
.contact-links a:hover::after {
  right: 0;
}

.nav {
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}

.nav:hover {
  border-color: rgba(255,255,255,.05);
}

.logo {
  transition: transform .25s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.project,
.skill-grid article,
.identity-item {
  will-change: transform;
}

.project,
.skill-grid article,
.identity-item,
.button {
  -webkit-tap-highlight-color: transparent;
}

.availability-note {
  margin-top: 30px;
  color: #676b75;
  font: 10px "DM Mono", monospace;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.availability-note span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #72e0a0;
  box-shadow: 0 0 12px rgba(114,224,160,.35);
}

footer a {
  color: var(--muted);
  transition: color .2s ease;
}

footer a:hover {
  color: var(--text);
}

@media (max-width: 800px) {
  .nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero,
  .section,
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .identity-strip {
    padding-left: 20px;
    padding-right: 20px;
  }

  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 65px;
    padding-bottom: 90px;
  }

  .hero-card {
    margin-top: 5px;
  }

  .project-main h3 {
    font-size: 31px;
  }
}


/* ---------- V6: hero identity polish ---------- */
.tech-line { display:flex; align-items:center; gap:11px; margin-top:27px; color:#646973; font:9px "DM Mono",monospace; letter-spacing:1px; }
.tech-line i { width:3px; height:3px; border-radius:50%; background:#444851; }
.tech-line span { transition:color .2s ease; }
.tech-line span:hover { color:var(--accent); }
.terminal-head { padding-bottom:15px; margin-bottom:17px; border-bottom:1px solid #20232a; color:#6e737e; font:10px "DM Mono",monospace; }
.terminal-body { display:grid; gap:12px; color:#aeb3bd; font:12px/1.5 "DM Mono",monospace; }
.terminal-body strong { color:#f0f2f5; font-weight:500; padding-left:18px; }
.prompt { color:var(--accent); margin-right:8px; }
.stack-output { display:flex; flex-wrap:wrap; gap:7px; padding-left:18px; }
.stack-output span { padding:5px 8px; border:1px solid #2b2f38; border-radius:5px; background:#0d0f13; color:#cbd0d8; font-size:10px; }
.terminal-status { padding-left:18px; color:#8f95a0; }
.terminal-status span { display:inline-block; width:6px; height:6px; margin-right:7px; border-radius:50%; background:#72e0a0; box-shadow:0 0 10px rgba(114,224,160,.3); animation:pulse 2s infinite; }
.hero-card { position:relative; }
.hero-card::before { content:""; position:absolute; inset:0; border-radius:18px; padding:1px; background:linear-gradient(135deg,rgba(114,167,255,.22),transparent 35%,rgba(181,140,255,.12)); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; }
@media (max-width:800px) { .tech-line { flex-wrap:wrap; line-height:1.7; } .tech-line i { display:none; } }


/* ---------- V7: certifications ---------- */

.cert-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.cert-heading h2 {
  margin-bottom: 45px;
}

.cert-heading > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 52px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-card {
  position: relative;
  min-height: 225px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #101216, #0b0d10);
  display: grid;
  grid-template-columns: 70px 1fr 20px;
  gap: 22px;
  align-items: start;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.cert-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -110px;
  bottom: -110px;
  border-radius: 50%;
  background: rgba(114,167,255,.07);
  filter: blur(25px);
  transition: transform .45s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: #3d424d;
  background: linear-gradient(145deg, #12151a, #0d0f13);
}

.cert-card:hover::after {
  transform: scale(1.6);
}

.cert-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #30343d;
  border-radius: 12px;
  color: var(--accent);
  background: #090b0e;
  font: 500 12px "DM Mono", monospace;
  letter-spacing: .5px;
}

.cert-type {
  color: var(--accent);
  font: 9px "DM Mono", monospace;
  letter-spacing: 1px;
  margin-bottom: 9px;
}

.cert-card h3 {
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.cert-card div:nth-child(2) > p:last-child {
  color: var(--muted);
  font-size: 12px;
}

.cert-arrow {
  position: relative;
  z-index: 1;
  color: #626772;
  transition: color .2s ease, transform .2s ease;
}

.cert-card:hover .cert-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

@media (max-width: 950px) {
  .nav nav {
    gap: 15px;
  }

  .cert-heading {
    display: block;
  }

  .cert-heading > p {
    margin-top: -25px;
    margin-bottom: 35px;
  }
}

@media (max-width: 800px) {
  .nav nav a:nth-child(5) {
    display: none;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    grid-template-columns: 58px 1fr 15px;
    gap: 16px;
    padding: 22px;
  }
}


/* ---------- V8: real repository links ---------- */

.all-projects-link {
  display: inline-block;
  margin-top: -28px;
  margin-bottom: 45px;
  color: var(--muted);
  font: 11px "DM Mono", monospace;
  transition: color .2s ease, transform .2s ease;
}

.all-projects-link:hover {
  color: var(--accent);
  transform: translateX(3px);
}

@media (max-width: 800px) {
  .all-projects-link {
    margin-top: -18px;
    margin-bottom: 35px;
  }
}


/* ---------- V9: project case studies + engineering approach ---------- */

.case-study {
  position: relative;
  margin-top: 18px;
  border-top: 1px solid #252932;
  padding-top: 13px;
}

.case-study summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #777c86;
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  user-select: none;
}

.case-study summary::-webkit-details-marker {
  display: none;
}

.case-study summary span {
  font-size: 16px;
  color: var(--accent);
  transition: transform .25s ease;
}

.case-study[open] summary span {
  transform: rotate(45deg);
}

.case-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 18px;
  animation: caseOpen .3s ease both;
}

.case-body div {
  padding: 14px;
  border: 1px solid #252932;
  border-radius: 8px;
  background: rgba(8,9,11,.45);
}

.case-body b {
  color: var(--accent);
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-body p {
  margin-top: 7px;
  color: #858a94;
  font-size: 11px;
  line-height: 1.6;
}

.approach-heading {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 70px;
  align-items: end;
}

.approach-heading h2 {
  margin-bottom: 45px;
}

.approach-heading > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 52px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.approach-grid article {
  position: relative;
  min-height: 210px;
  padding: 28px;
  background: var(--bg);
  overflow: hidden;
  transition: background .25s ease, transform .25s ease;
}

.approach-grid article:hover {
  background: #0d0f13;
  transform: translateY(-3px);
}

.approach-grid article > span {
  color: #4f545e;
  font: 11px "DM Mono", monospace;
}

.approach-grid h3 {
  margin: 55px 0 10px;
  font-size: 21px;
}

.approach-grid p {
  color: var(--muted);
  font-size: 12px;
  max-width: 300px;
}

@keyframes caseOpen {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
  .case-body {
    grid-template-columns: 1fr;
  }

  .approach-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .approach-heading > p {
    margin-top: -25px;
    margin-bottom: 35px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid article {
    min-height: 170px;
  }

  .approach-grid h3 {
    margin-top: 35px;
  }
}


/* ---------- V10: recruiter polish ---------- */

.highlight-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 75px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.highlight-strip > div {
  min-height: 92px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(12,14,18,.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.highlight-strip > div:hover {
  transform: translateY(-4px);
  background: #101318;
  border-color: #3a3f49;
}

.highlight-strip strong {
  font: 600 20px "DM Mono", monospace;
  color: #eef0f4;
  letter-spacing: -.5px;
}

.highlight-strip span {
  margin-top: 5px;
  color: #666b75;
  font: 9px "DM Mono", monospace;
  letter-spacing: .7px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .highlight-strip {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 800px) {
  .nav nav {
    max-width: 72vw;
    gap: 17px;
  }

  .nav nav a {
    font-size: 11px;
  }

  .highlight-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .highlight-strip {
    grid-template-columns: 1fr;
  }
}
