:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-elevated: rgba(10, 20, 35, 0.82);
  --surface: rgba(12, 22, 39, 0.92);
  --surface-strong: #0d1727;
  --line: rgba(179, 204, 255, 0.16);
  --text: #eef4ff;
  --muted: #a9b9d1;
  --accent: #7ee0c6;
  --accent-2: #7bb0ff;
  --accent-3: #ffd166;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(123, 176, 255, 0.11), transparent 34%),
    radial-gradient(circle at top right, rgba(126, 224, 198, 0.08), transparent 30%),
    linear-gradient(180deg, #06101b 0%, #09101d 48%, #050b14 100%);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.backdrop-one {
  width: 360px;
  height: 360px;
  top: 4rem;
  left: -8rem;
  background: rgba(123, 176, 255, 0.18);
}

.backdrop-two {
  width: 420px;
  height: 420px;
  right: -10rem;
  top: 24rem;
  background: rgba(126, 224, 198, 0.14);
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.lang-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}

.lang-switch-indicator {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(126, 224, 198, 0.2), rgba(123, 176, 255, 0.14));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transition: left 220ms cubic-bezier(0.22, 1, 0.36, 1), width 220ms cubic-bezier(0.22, 1, 0.36, 1), background 220ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.lang-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 3.35rem;
  min-height: 2rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.78rem/1 "IBM Plex Mono", monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 180ms ease, transform 180ms ease;
}

.lang-btn.is-active {
  color: var(--text);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn:active {
  transform: scale(0.98);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(126, 224, 198, 0.5);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch::before,
  .lang-btn {
    transition: none;
  }
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.25rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
  padding-top: 4.2rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1rem 0.2rem auto;
  height: 16rem;
  border-radius: 40px;
  background:
    radial-gradient(circle at 25% 20%, rgba(126, 224, 198, 0.05), transparent 42%),
    radial-gradient(circle at 78% 25%, rgba(123, 176, 255, 0.045), transparent 38%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.hero-copy,
.hero-panel,
.content-card,
.contact-card,
.project-card,
.timeline > div,
.panel-card {
  background: linear-gradient(180deg, rgba(15, 26, 43, 0.9), rgba(10, 18, 31, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  border-radius: 32px;
  padding: 2.1rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font: 500 0.78rem/1.4 "IBM Plex Mono", monospace;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  margin-bottom: 0.6rem;
  color: #f8fbff;
  text-shadow: 0 0 28px rgba(123, 176, 255, 0.18);
}

.lead {
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0.15rem 0 1.45rem;
}

.hero-role {
  margin: 0.85rem 0 0.35rem;
  color: #f4fffb;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-link {
  gap: 0.45rem;
  border-color: rgba(123, 176, 255, 0.2);
  background: rgba(123, 176, 255, 0.1);
  color: var(--text);
}

.hero-resume {
  margin-left: auto;
}

.hero-link:hover,
.hero-link:focus-visible {
  border-color: rgba(123, 176, 255, 0.34);
  background: rgba(123, 176, 255, 0.14);
}

.hero-link-icon {
  color: var(--accent);
  font-size: 0.95em;
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: auto 0 0.35rem;
  align-items: center;
}

.hero-actions .button {
  min-width: 0;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.25rem 0 0.75rem;
}

.contact-details {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-details p {
  margin: 0;
  max-width: none;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.contact-row.is-primary {
  background: rgba(126, 224, 198, 0.08);
  border-color: rgba(126, 224, 198, 0.16);
}

.contact-label {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.contact-value {
  text-align: right;
  color: var(--text);
  font-weight: 700;
  word-break: break-word;
}

.contact-value:hover,
.contact-value:focus-visible {
  text-decoration: underline;
  text-decoration-color: rgba(126, 224, 198, 0.7);
  text-underline-offset: 0.18em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #9bf5d8);
  color: #041019;
  box-shadow: 0 14px 28px rgba(126, 224, 198, 0.14);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 34px rgba(126, 224, 198, 0.2);
}

.button-secondary {
  background: rgba(123, 176, 255, 0.12);
  border-color: rgba(123, 176, 255, 0.28);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(126, 224, 198, 0.22);
  background: rgba(10, 20, 35, 0.88);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
  z-index: 8;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: rgba(15, 28, 46, 0.96);
  border-color: rgba(126, 224, 198, 0.4);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.stat-card {
  min-height: 96px;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 224, 198, 0.18);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 30px rgba(8, 18, 31, 0.18);
}

.stats dt {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats dd {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-panel {
  border-radius: 32px;
  padding: 1.35rem;
  display: grid;
  gap: 1.1rem;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(126, 224, 198, 0.08);
}

.panel-card {
  border-radius: 24px;
  padding: 1.35rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.panel-card-main h2 {
  margin-bottom: 0.15rem;
  font-size: 1.34rem;
  line-height: 1.05;
  color: #f8fbff;
  letter-spacing: -0.03em;
}

.panel-copy {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
  font-size: 0.96rem;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.3rem;
}

.panel-metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 104px;
  padding: 0.95rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-metric-accent {
  background:
    radial-gradient(circle at top left, rgba(126, 224, 198, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(126, 224, 198, 0.18);
}

.panel-metric-value {
  color: #f8fbff;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1rem;
}

.panel-metric-label {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.panel-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.panel-skill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(126, 224, 198, 0.11);
  border: 1px solid rgba(126, 224, 198, 0.18);
  color: #eef7f3;
  font: 600 0.8rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
}

.panel-label {
  margin-bottom: 0.7rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font: 500 0.74rem/1.4 "IBM Plex Mono", monospace;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.section-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}

.section-title h2,
.contact-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0;
  line-height: 1.05;
}

#stack .section-title h2 {
  color: #f5fbff;
  text-shadow: 0 0 24px rgba(123, 176, 255, 0.22);
}

.section-note {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.projects .section-title {
  margin-bottom: 1.15rem;
}

#certificates .section-title {
  margin-bottom: 1rem;
}

#projects .section-title {
  margin-bottom: 1.15rem;
}

#articles .section-title {
  margin-bottom: 0.9rem;
}

.content-card,
.contact-card {
  border-radius: 28px;
  padding: 1.4rem;
}

.content-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.resume-list {
  margin: 0 0 1rem;
  padding-left: 0;
  color: var(--muted);
  display: grid;
  gap: 0.7rem;
}

.resume-list li::marker {
  color: var(--accent);
}

#languages .content-card {
  padding: 1.5rem;
}

#languages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.language-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.language-item-primary {
  background:
    radial-gradient(circle at top left, rgba(126, 224, 198, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(126, 224, 198, 0.16);
}

.language-item:hover,
.language-item:focus-within {
  transform: translateY(-2px);
  border-color: rgba(126, 224, 198, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.language-name {
  color: var(--text);
  font-weight: 700;
}

.language-level {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(123, 176, 255, 0.1);
  border: 1px solid rgba(123, 176, 255, 0.16);
  color: #dce7f7;
  font-size: 0.9rem;
  text-align: right;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chips span,
.chip {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce7f7;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.chip-core {
  background: rgba(126, 224, 198, 0.14);
  border-color: rgba(126, 224, 198, 0.3);
  color: #f4fffb;
}

.chip-support,
.chip-secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  color: #c9d3e4;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-2px);
  background: rgba(126, 224, 198, 0.18);
  border-color: rgba(126, 224, 198, 0.42);
  box-shadow: 0 10px 24px rgba(126, 224, 198, 0.12);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stack-card {
  padding: 1.35rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15, 26, 43, 0.9), rgba(10, 18, 31, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.stack-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(126, 224, 198, 0.34);
  box-shadow: 0 24px 60px rgba(8, 18, 31, 0.48), 0 0 0 1px rgba(126, 224, 198, 0.1);
}

.stack-card-featured {
  grid-column: span 2;
  padding: 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(126, 224, 198, 0.15), transparent 40%),
    radial-gradient(circle at top right, rgba(123, 176, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 25, 42, 0.9), rgba(8, 16, 27, 0.96));
  border-color: rgba(126, 224, 198, 0.26);
  box-shadow:
    0 26px 70px rgba(4, 11, 22, 0.42),
    0 0 0 1px rgba(126, 224, 198, 0.08);
}

.stack-card h3 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.stack-card-note {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 54ch;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.project-card,
.article-card {
  position: relative;
  z-index: 0;
  border-radius: 26px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background: linear-gradient(180deg, rgba(15, 26, 43, 0.9), rgba(10, 18, 31, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  will-change: transform;
}

.article-card {
  min-height: 178px;
  padding: 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(123, 176, 255, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(15, 26, 43, 0.9), rgba(10, 18, 31, 0.95));
}

.article-card .project-topline {
  margin-bottom: 0.65rem;
}

.article-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.article-card p {
  margin-bottom: 0.8rem;
}

.article-card .project-tags {
  margin-bottom: 0.85rem;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 176, 255, 0.3);
  box-shadow: 0 24px 60px rgba(8, 18, 31, 0.48), 0 0 0 1px rgba(123, 176, 255, 0.1);
}

.project-index {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent-3);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(126, 224, 198, 0.12);
  border: 1px solid rgba(126, 224, 198, 0.2);
  color: #f4fffb;
  font: 600 0.76rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  margin-top: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.15rem 0 1.15rem;
}

.project-tags span {
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(123, 176, 255, 0.1);
  border: 1px solid rgba(123, 176, 255, 0.16);
  color: #dce7f7;
  font-size: 0.78rem;
  font-weight: 600;
}

.project-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 224, 198, 0.28);
  background: rgba(126, 224, 198, 0.1);
  color: var(--text);
  font-weight: 700;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.project-link::after {
  content: "↗";
  color: var(--accent);
  line-height: 1;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(126, 224, 198, 0.45);
  background: rgba(126, 224, 198, 0.15);
  box-shadow: 0 10px 24px rgba(126, 224, 198, 0.12);
}

.project-card.reveal.is-visible:hover,
.project-card.reveal.is-visible:focus-within {
  z-index: 2;
  transform: translateY(-2px);
  border-color: rgba(126, 224, 198, 0.22);
  box-shadow: 0 18px 30px rgba(8, 18, 31, 0.18);
}

.project-card-featured {
  grid-column: span 2;
  min-height: 250px;
  background:
    radial-gradient(circle at top left, rgba(126, 224, 198, 0.15), transparent 40%),
    radial-gradient(circle at top right, rgba(123, 176, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 25, 42, 0.9), rgba(8, 16, 27, 0.96));
  border-color: rgba(126, 224, 198, 0.26);
  box-shadow:
    0 26px 70px rgba(4, 11, 22, 0.42),
    0 0 0 1px rgba(126, 224, 198, 0.08);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline > div {
  border-radius: 26px;
  padding: 1.35rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.timeline > div:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 224, 198, 0.22);
  box-shadow: 0 28px 70px rgba(4, 11, 22, 0.42);
}

.experience-item {
  display: grid;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 26, 43, 0.9), rgba(10, 18, 31, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.experience-item-featured {
  border-color: rgba(126, 224, 198, 0.2);
  background:
    radial-gradient(circle at top right, rgba(126, 224, 198, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(17, 30, 48, 0.95), rgba(10, 18, 31, 0.98));
}

.timeline h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.experience-item h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.experience-item h3::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: rgba(123, 176, 255, 0.65);
  box-shadow: 0 0 10px rgba(123, 176, 255, 0.3);
  flex: 0 0 auto;
}

.experience-item-featured h3::before {
  background: rgba(126, 224, 198, 0.8);
  box-shadow: 0 0 12px rgba(126, 224, 198, 0.4);
}

.experience-company {
  color: #f4f8ff;
}

.experience-role-text {
  color: #cfd9ea;
}

.experience-country {
  color: rgba(126, 224, 198, 0.88);
}

.timeline ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.experience-period {
  display: inline-flex;
  margin: -0.15rem 0 0.85rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(123, 176, 255, 0.12);
  border: 1px solid rgba(123, 176, 255, 0.18);
  color: #d8e3f7;
  font: 600 0.88rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}

.experience-links {
  margin-top: 0.9rem;
}

.experience-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 224, 198, 0.28);
  background: rgba(126, 224, 198, 0.1);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.experience-link::after {
  content: "↗";
  color: var(--accent);
  font-size: 0.95em;
  line-height: 1;
}

.experience-link:hover,
.experience-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(126, 224, 198, 0.5);
  background: rgba(126, 224, 198, 0.16);
}

.timeline li + li {
  margin-top: 0.45rem;
}

.education-card {
  border-radius: 28px;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(15, 26, 43, 0.9), rgba(10, 18, 31, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

#certificates .education-card {
  width: 100%;
}

.education-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.education-count {
  margin: 0.1rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.education-text {
  margin: 0;
  color: var(--muted);
}

.education-item {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.education-item:hover,
.education-item:focus-within {
  transform: translateY(-2px);
  border-color: rgba(126, 224, 198, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 30px rgba(8, 18, 31, 0.18);
}

.education-item-featured {
  background:
    radial-gradient(circle at top right, rgba(126, 224, 198, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(126, 224, 198, 0.16);
}

.education-year {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(123, 176, 255, 0.12);
  border: 1px solid rgba(123, 176, 255, 0.18);
  color: #dce7f7;
  font: 600 0.82rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}

.education-institution {
  margin: 0;
  color: var(--accent);
  font: 600 0.8rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.education-item h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.certificate-card:hover,
.certificate-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(126, 224, 198, 0.28);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 30px rgba(8, 18, 31, 0.22);
}

.certificate-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.certificate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.certificate-card a {
  align-self: flex-start;
  margin-top: 0.15rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.contact {
  padding-bottom: 5rem;
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .section-split,
  .projects,
  .articles-grid,
  .stack-grid,
  .certificate-grid {
    grid-template-columns: 1fr;
  }

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

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

  .panel-metrics {
    grid-template-columns: 1fr;
  }

  .education-summary {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: auto;
  }

}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .section {
    padding-top: 4rem;
  }

  .hero-copy,
  .hero-panel,
  .content-card,
  .contact-card,
  .project-card,
  .article-card,
  .timeline > div {
    border-radius: 22px;
  }

  .scroll-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .hero-copy {
    padding: 1.4rem;
  }

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

  .hero-actions {
    gap: 0.7rem;
  }

  .hero-link {
    align-self: flex-start;
  }

  .hero-resume {
    margin-left: 0;
  }

  .contact-links {
    gap: 0.7rem;
  }

  .language-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .language-level {
    text-align: left;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .contact-value {
    text-align: left;
  }
}
