:root {
  --bg: #0b0d14;
  --card: #111424;
  --accent: #7c6cf2;
  --accent-2: #5eead4;
  --accent-2-ink: #3fd1b5;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --surface-1: rgba(255, 255, 255, 0.02);
  --surface-2: rgba(255, 255, 255, 0.03);
  --surface-3: rgba(255, 255, 255, 0.04);
  --surface-4: rgba(255, 255, 255, 0.08);
  --overlay: rgba(11, 13, 20, 0.8);
  --overlay-strong: rgba(11, 13, 20, 0.95);
  --panel-gradient: linear-gradient(180deg, rgba(7, 8, 14, 0.94), rgba(11, 13, 20, 0.88));
  --nav-fade: linear-gradient(180deg, rgba(11, 13, 20, 0.9), rgba(11, 13, 20, 0.7), rgba(11, 13, 20, 0));
  --hero-card-bg: linear-gradient(160deg, rgba(124, 108, 242, 0.18), rgba(11, 13, 20, 0.9));
  --contact-card-bg: linear-gradient(140deg, rgba(124, 108, 242, 0.12), rgba(11, 13, 20, 0.95));
  --contact-icon-surface: rgba(11, 13, 20, 0.78);
  --linkedin-hover-bg: rgba(5, 7, 13, 0.95);
  --linkedin-hover-shadow: 0 16px 36px rgba(5, 7, 13, 0.5);
  --divider-dot: rgba(255, 255, 255, 0.18);
  --dot: rgba(255, 255, 255, 0.24);
  --lead: #d1d5db;
  --surface-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --contact-ink: rgba(11, 13, 20, 0.92);
  --toggle-active-text: #0b0d14;
  --nn-alpha-base: 0.08;
  --nn-alpha-scale: 0.42;
  --nn-wire-alpha: 0.28;
  --soft-line: rgba(124, 108, 242, 0.32);
  --soft-point: rgba(94, 234, 212, 0.82);
  --soft-spark: rgba(124, 180, 242, 0.96);
  --nn-opacity: 0.82;
  --nn-filter: none;
  --nn-blend: normal;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #e9edf5;
  --card: #f8fafc;
  --accent: #7c6cf2;
  --accent-2: #5eead4;
  --accent-2-ink: #26b69f;
  --text: #0d1623;
  --muted: #42526b;
  --border: rgba(13, 22, 35, 0.12);
  --shadow: 0 18px 44px rgba(13, 22, 35, 0.14);
  --surface-1: rgba(13, 22, 35, 0.04);
  --surface-2: rgba(13, 22, 35, 0.06);
  --surface-3: rgba(13, 22, 35, 0.08);
  --surface-4: rgba(13, 22, 35, 0.12);
  --overlay: rgba(255, 255, 255, 0.9);
  --overlay-strong: rgba(255, 255, 255, 0.96);
  --panel-gradient: linear-gradient(180deg, rgba(240, 244, 252, 0.96), rgba(229, 236, 250, 0.92));
  --nav-fade: linear-gradient(180deg, rgba(233, 237, 245, 0.95), rgba(233, 237, 245, 0.72), rgba(233, 237, 245, 0));
  --hero-card-bg: linear-gradient(160deg, rgba(124, 108, 242, 0.12), #f9fbff);
  --contact-card-bg: linear-gradient(140deg, rgba(124, 108, 242, 0.12), #f9fbff);
  --contact-icon-surface: linear-gradient(135deg, rgba(249, 251, 255, 0.96), rgba(233, 237, 245, 0.96));
  --linkedin-hover-bg: #e6eaff;
  --linkedin-hover-shadow: 0 16px 36px rgba(124, 108, 242, 0.18);
  --divider-dot: rgba(13, 22, 35, 0.2);
  --dot: rgba(13, 22, 35, 0.2);
  --lead: #1a2434;
  --surface-shadow: 0 12px 30px rgba(13, 22, 35, 0.12);
  --contact-ink: rgba(235, 240, 248, 0.96);
  --toggle-active-text: #0b0d14;
  --nn-alpha-base: 0.24;
  --nn-alpha-scale: 0.7;
  --nn-wire-alpha: 0.54;
  --soft-line: rgba(72, 96, 190, 0.6);
  --soft-point: rgba(26, 156, 132, 0.95);
  --soft-spark: rgba(70, 110, 200, 0.96);
  --nn-opacity: 0.75;
  --nn-filter: saturate(1);
  --nn-blend: multiply;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Poppins', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(124, 108, 242, 0.08), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(94, 234, 212, 0.08), transparent 30%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 0 clamp(12px, 3vw, 28px);
  line-height: 1.5;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.top-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  background: var(--nav-fade);
  backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 9;
}

main {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: clamp(48px, 6vw, 70px) auto 0;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
}

.top-nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: min(1180px, 100%);
  margin: clamp(12px, 3vw, 20px) auto 0;
  padding: clamp(12px, 2vw, 16px) clamp(14px, 3vw, 22px);
  background: var(--overlay);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.logo {
  font-weight: 700;
  letter-spacing: -0.4px;
  font-size: clamp(18px, 2.4vw, 22px);
}

.logo span {
  color: var(--accent);
  margin-left: 4px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
  z-index: 12;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

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

nav .pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0d14;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

nav .pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: var(--surface-shadow);
  min-width: 120px;
  height: 40px;
}

.theme-toggle:hover {
  background: var(--surface-3);
  transform: translateY(-1px);
}

.theme-toggle__labels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.theme-toggle__labels span {
  text-align: center;
  color: var(--muted);
}

.theme-toggle__thumb {
  position: absolute;
  inset: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, background 0.22s ease;
  z-index: 1;
}

:root[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(0);
}

:root:not([data-theme="light"]) .theme-toggle__thumb {
  transform: translateX(100%);
}

:root[data-theme="light"] .theme-toggle__labels span:first-child,
:root:not([data-theme="light"]) .theme-toggle__labels span:last-child {
  color: var(--toggle-active-text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.2s ease;
}

.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: clamp(10px, 3vw, 18px) auto clamp(18px, 4vw, 26px);
  opacity: 0.8;
}

.section-divider span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--divider-dot);
  animation: divider-bounce 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 1px var(--border);
}

.section-divider span:nth-child(2) { animation-delay: 0.12s; }
.section-divider span:nth-child(3) { animation-delay: 0.24s; }

@keyframes divider-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-8px); opacity: 1; }
}

.section,
.hero {
  scroll-margin-top: clamp(120px, 14vw, 160px);
}

.section-focus {
  animation: focus-pop 0.55s ease;
}

@keyframes focus-pop {
  0% { transform: scale(0.995); }
  35% { transform: scale(1.012); }
  100% { transform: scale(1); }
}

.side-nav {
  position: fixed;
  right: clamp(10px, 3vw, 22px);
  top: 50%;
  transform: translateY(-50%) translateX(14px);
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-gradient);
  box-shadow: var(--surface-shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 8;
}

.side-nav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.side-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: 0.2s ease;
  background: var(--surface-1);
  border: 1px solid transparent;
}

.side-nav a .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 1px var(--border);
}

.side-nav a:hover {
  color: var(--text);
  border-color: var(--border);
}

.side-nav a.active {
  background: linear-gradient(120deg, rgba(124, 108, 242, 0.22), rgba(94, 234, 212, 0.18));
  color: var(--text);
  border-color: rgba(124, 108, 242, 0.4);
  box-shadow: 0 14px 28px rgba(124, 108, 242, 0.18);
}

.side-nav a.active .dot {
  background: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(124, 108, 242, 0.4);
}

.hero {
  display: grid;
  gap: clamp(18px, 3vw, 26px);
  grid-template-columns: minmax(340px, 1.05fr) minmax(300px, 0.95fr);
  align-items: stretch;
}

.hero__text {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: clamp(380px, 60vw, 440px);
  height: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 30px);
  box-shadow: var(--shadow);
}

.kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2-ink);
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.05;
}

.subtitle {
  margin: 8px 0 12px;
  font-size: clamp(16px, 3vw, 19px);
  color: var(--muted);
}

.lead {
  color: var(--lead);
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: clamp(15px, 2.6vw, 17px);
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0d14;
  box-shadow: var(--shadow);
}

.ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.ghost:hover {
  background: var(--surface-3);
  border-color: var(--accent);
}

.cta.linkedin {
  position: relative;
  overflow: hidden;
  border-color: rgba(124, 108, 242, 0.55);
  background: linear-gradient(120deg, rgba(124, 108, 242, 0.3), rgba(94, 234, 212, 0.25));
  box-shadow: 0 14px 32px rgba(124, 108, 242, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  min-width: 170px;
  padding: 12px 16px;
  justify-content: center;
  gap: 10px;
  color: var(--text);
}

.cta.linkedin::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  transform: translateX(-140%);
  animation: linkedin-sweep 3.2s linear infinite;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta.linkedin span {
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cta.linkedin .linkedin-icon {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #e8ebff;
  z-index: 1;
  transition: transform 0.2s ease;
}

.cta.linkedin:hover {
  background: var(--linkedin-hover-bg);
  border-color: rgba(124, 108, 242, 0.75);
  box-shadow: var(--linkedin-hover-shadow);
}

.cta.linkedin:hover::before {
  opacity: 0;
  transform: translateX(0);
}

.cta.linkedin:hover span {
  color: var(--text);
}

.cta.linkedin:hover .linkedin-icon {
  transform: translateY(-1px);
  color: var(--accent);
}

.cta:hover {
  transform: translateY(-1px);
}

.hero__meta {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.meta-item {
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

.meta-item i {
  color: var(--accent);
}

.meta-item a {
  color: var(--text);
  text-decoration: none;
}

.hero__card {
  background: var(--hero-card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 28px);
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.6vw, 18px);
}

.hero__card .accent {
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.16), transparent 70%);
  top: -60px;
  right: -40px;
  filter: blur(4px);
}

.badge {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-4);
  border: 1px solid var(--border);
  font-weight: 700;
}

.hero__avatar {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  position: relative;
}

  .hero__visual canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: var(--nn-opacity);
    filter: var(--nn-filter);
    mix-blend-mode: var(--nn-blend);
  }

.hero__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.highlight {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: var(--accent-2-ink);
  margin: 0 0 6px;
}

.highlight h3 {
  margin: 0 0 8px;
}

.highlight .desc {
  margin: 0;
  color: var(--muted);
}

.hero__about {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

.hero__about h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}

.hero__about p {
  margin: 0;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-3);
  transition: 0.2s ease;
}

.social a:hover { background: rgba(124, 108, 242, 0.15); }

.section {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--shadow);
}

.section__header {
  margin-bottom: 12px;
}

.section h2 { margin: 4px 0 0; }

.section .body { color: var(--muted); line-height: 1.6; }

.timeline {
  display: grid;
  gap: 14px;
}

.timeline__item {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.timeline__item h3 { margin: 6px 0; }

.timeline__item .meta { color: var(--muted); margin: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 108, 242, 0.15);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skills-group {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.skills-group--full {
  width: 100%;
}

.skills-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.skills-group h3 { margin-top: 0; }

.skills-group ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 18px;
  justify-content: center;
  grid-auto-flow: row;
}

.project {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  gap: 8px;
}

.project .meta { color: var(--muted); margin: 0; }

.project .desc {
  margin: 0;
  color: var(--muted);
}

.project .cta {
  align-self: flex-start;
}

.project .cta.ghost:hover {
  background: linear-gradient(120deg, rgba(124, 108, 242, 0.18), rgba(94, 234, 212, 0.18));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 14px 36px rgba(124, 108, 242, 0.22);
}


.experience-grid {
  display: grid;
  gap: 18px;
}

.experience-visual {
  position: relative;
  overflow: hidden;
}

.experience-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  filter: blur(0.2px) saturate(1.1);
  pointer-events: none;
}

.experience-visual .experience-grid {
  position: relative;
  z-index: 1;
}

.xp-row {
  display: grid;
  gap: 16px;
  justify-content: center;
}

.xp-row--top {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
}

.xp-row--bottom {
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
}

.xp-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.xp-card h3 { margin: 0 0 6px; }

.xp-card .meta { color: var(--muted); margin: 0 0 8px; }

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

.cert {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.cert h3 { margin: 0; }

.cert__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.credential-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.credential-link i { font-size: 0.9em; }

.credential-link:hover {
  color: #0b0d14;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: var(--shadow);
}

.cert .meta { color: var(--muted); margin: 0 0 8px; }

.contact {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 24px);
  padding: clamp(18px, 4vw, 26px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--contact-card-bg);
  box-shadow: var(--shadow);
}

.contact-links {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.contact-links .meta-item {
  gap: 10px;
  align-items: center;
  line-height: 1.4;
}

.contact-links .contact-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--contact-icon-surface);
  border: 1px solid var(--border);
  box-shadow: var(--surface-shadow);
  color: var(--text);
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
  overflow: hidden;
}

.contact-links .contact-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-links .icon-email {
  color: #f6c177;
  border-color: rgba(246, 193, 119, 0.4);
  background: linear-gradient(135deg, rgba(246, 193, 119, 0.14), var(--contact-ink));
}

.contact-links .icon-github {
  color: #dfe3ec;
  border-color: rgba(223, 227, 236, 0.35);
  background: linear-gradient(135deg, rgba(223, 227, 236, 0.12), var(--contact-ink));
}

:root[data-theme="light"] .contact-links .icon-github {
  color: #6b7280;
  border-color: rgba(107, 114, 128, 0.3);
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.12), var(--contact-ink));
}

.contact-links .icon-linkedin {
  color: #6ab4ff;
  border-color: rgba(106, 180, 255, 0.45);
  background: linear-gradient(135deg, rgba(106, 180, 255, 0.14), var(--contact-ink));
}

.contact-links .meta-item:hover .contact-icon {
  background: linear-gradient(120deg, rgba(124, 108, 242, 0.18), rgba(94, 234, 212, 0.18));
  border-color: rgba(124, 108, 242, 0.6);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(124, 108, 242, 0.22);
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.footer {
  text-align: center;
  margin: clamp(24px, 5vw, 40px) 0 clamp(40px, 8vw, 60px);
  color: var(--muted);
}

.footer .code-sub {
  font-size: 0.72em;
  vertical-align: sub;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-left: 2px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .xp-row--top,
  .xp-row--bottom {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1100px) {
  nav {
    position: fixed;
    top: 76px;
    left: clamp(12px, 3vw, 28px);
    right: clamp(12px, 3vw, 28px);
    background: var(--overlay-strong);
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    box-shadow: var(--shadow);
  }

  nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav .pill { width: 100%; text-align: center; }

  .nav-toggle { display: block; }

  .top-nav { padding: 12px 14px; }
}

@media (max-width: 720px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .cta {
    width: 100%;
  }

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

  .hero__card .accent {
    width: 180px;
    height: 180px;
    top: -90px;
    right: -90px;
  }

  .hero__avatar {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 1024px) {
  .side-nav {
    display: none;
  }
}
