* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0e14;
  --bg-elev: #111826;
  --panel: #161b22;
  --panel-soft: #1a2233;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f4f7;
  --muted: #97a0b5;
  --purple: #b38cff;
  --cyan: #68d2ff;
  --accent: #6f8cff;
  --accent-strong: #4f6bff;
  --accent-soft: rgba(111, 140, 255, 0.16);
  --accent-border: rgba(111, 140, 255, 0.34);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --panel-gradient: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-strong));
  --accent-text-gradient: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 100%);
  --success: #4ade80;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.28);
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(179, 140, 255, 0.2), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(104, 210, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #0b0e14 0%, #0d121e 62%, #0f1523 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 44%, transparent 86%);
  z-index: -1;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: #7be7f6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(10px);
}

.site-header .wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.86rem 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__text {
  display: inline-block;
}

.brand__gif {
  display: inline-block;
  width: clamp(1.75rem, 3.4vw, 2.35rem);
  height: auto;
  flex-shrink: 0;
  transform: translateY(-0.02rem);
}

.nav-center {
  justify-self: center;
  display: inline-flex;
  gap: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem;
  background: rgba(255, 255, 255, 0.02);
}

.nav-center a {
  padding: 0.39rem 0.66rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.nav-center a:hover {
  color: #fff;
  background: var(--accent-soft);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 0.44rem 0.82rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.menu-toggle:hover {
  border-color: var(--accent-border);
}

.menu-icon {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 1.2rem;
  min-width: 236px;
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.66rem;
  background: rgba(19, 25, 37, 0.95);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.nav-menu a {
  color: #d6dbea;
  border-radius: 10px;
  padding: 0.46rem 0.62rem;
  font-size: 0.9rem;
}

.nav-menu a:hover {
  background: var(--accent-soft);
}

.content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.8rem 1.2rem 4rem;
}

.section {
  margin: 0 0 3.3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  color: #eef2ff;
  letter-spacing: -0.03em;
}

.view-all {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
}

.ide-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.ide-left,
.ide-right {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-gradient);
  box-shadow: var(--shadow-soft);
}

.ide-left {
  padding: clamp(1.3rem, 2.8vw, 2rem);
}

.visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 1.15rem;
  background: rgba(255, 255, 255, 0.02);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 0 rgba(111, 140, 255, 0.6);
  animation: dotPulse 1.7s infinite;
}

.ide-left h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.name-accent-gif {
  display: inline-block;
  width: clamp(3rem, 6.75vw, 4.75rem);
  height: auto;
  margin-left: 0.45rem;
  vertical-align: middle;
}

.gradient-name {
  background: var(--accent-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typing-line {
  margin: 0.75rem 0 0;
}

.mono-text,
.typing-cursor,
.editor-code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.mono-text {
  color: #b2b9cb;
  font-size: clamp(1rem, 2.2vw, 1.7rem);
}

.typing-cursor {
  color: var(--accent);
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  animation: cursorBlink 0.9s steps(1) infinite;
}

.hero-copy {
  max-width: 58ch;
  margin: 0.95rem 0 0;
  color: #b6bed1;
  line-height: 1.5;
  font-size: clamp(1.12rem, 2.1vw, 1.48rem);
  font-weight: 600;
}

.hero-code-card {
  margin-top: 1rem;
  max-width: 560px;
}

.hero-socials {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-socials a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-glass);
  color: #d8def0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

.hero-socials a:hover {
  transform: translateY(-2px);
  background: #fff;
  color: #0b0e14;
}

.hero-stats {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.65rem;
}

.hero-stats li {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.18rem;
  color: #fff;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.78rem;
}

.ide-right {
  position: relative;
  padding: 0.85rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-glow {
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: linear-gradient(130deg, rgba(111, 140, 255, 0.26), rgba(104, 210, 255, 0.18));
  filter: blur(22px);
  opacity: 0.5;
  pointer-events: none;
}

.code-editor-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 27, 34, 0.9);
  padding: 1rem;
  box-shadow: var(--shadow);
  z-index: 2;
}

.editor-dots {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  margin-bottom: 0.85rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.editor-code {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
  white-space: pre-wrap;
  color: #dce2f0;
  text-align: left;
}

.sql-keyword {
  color: #c084fc;
}

.sql-table {
  color: #67e8f9;
}

.sql-column {
  color: #fde68a;
}

.sql-value {
  color: #4ade80;
}

.sql-text {
  color: #f3f4f6;
}

.editor-bars {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-bars span {
  display: block;
  border-radius: 999px;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.editor-bars span:nth-child(2) {
  width: 78%;
}

.editor-bars span:nth-child(3) {
  width: 65%;
}

.blueprint-grid {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 230px;
  height: 230px;
  border-radius: 20px;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.22) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: 1;
}

.profile-figure {
  position: static;
  width: 100%;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.ide-profile-pic {
  width: 100%;
  height: clamp(320px, 36vw, 460px);
  object-fit: cover;
  object-position: center 40%;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
  background: var(--bg-elev);
}

.profile-note {
  position: static;
  transform: none;
  margin: 0;
  padding: 0.72rem 1.05rem;
  border-radius: 14px;
  border: 2px solid rgba(17, 24, 39, 0.35);
  background: linear-gradient(135deg, #fef08a, #facc15);
  color: #1f1a06;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
}

.quote-section {
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(111, 140, 255, 0.12), rgba(104, 210, 255, 0.08));
  text-align: center;
  padding: 1.3rem 1.1rem;
}

.quote-text {
  margin: 0;
  font-size: clamp(1.02rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.7;
  color: #e6e9f4;
}

.quote-author {
  margin: 0.5rem 0 0;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.works-section {
  margin-top: 0.3rem;
}

.works-subtext {
  margin: -0.3rem 0 1rem;
  max-width: 78ch;
  color: #b6bed1;
  line-height: 1.7;
}

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.works-filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #dbe3f3;
  padding: 0.52rem 0.92rem;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.works-filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 166, 255, 0.52);
}

.works-filter-btn.is-active {
  background: var(--accent-gradient);
  border-color: rgba(123, 163, 255, 0.85);
  color: #fff;
  box-shadow: 0 14px 28px rgba(46, 120, 255, 0.22);
}

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

.works-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(123, 95, 255, 0.4);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(20, 25, 41, 0.96), rgba(15, 20, 34, 0.99));
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.works-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(153, 123, 255, 0.4), rgba(255, 255, 255, 0.08));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.works-card:hover {
  transform: translateY(-6px);
  border-color: rgba(156, 132, 255, 0.62);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.44);
}

.works-card.is-hidden {
  display: none;
}

.works-media {
  position: relative;
}

.works-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10.75;
  overflow: hidden;
  background: #0f1523;
}

.works-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.5s ease, filter 0.35s ease;
}

.works-card:hover .works-thumb img {
  transform: scale(1.045);
  filter: saturate(1.03);
}

.works-thumb-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 34, 0.1) 0%, rgba(11, 18, 34, 0.04) 38%, rgba(11, 18, 34, 0.72) 100%),
    radial-gradient(circle at top right, rgba(255, 232, 180, 0.22), transparent 28%);
  pointer-events: none;
}

.works-tag {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.4rem;
  box-shadow: 0 18px 30px rgba(40, 94, 255, 0.3);
  z-index: 1;
}

.works-expand-btn {
  display: none;
}

.works-expand-btn:hover {
  transform: scale(1.06);
  background: rgba(248, 250, 252, 0.28);
}

.works-expand-btn:focus-visible,
.works-thumb:focus-visible,
.works-link:focus-visible,
.works-filter-btn:focus-visible {
  outline: 2px solid #9ec2ff;
  outline-offset: 3px;
}

.works-body {
  flex: 1 1 auto;
  padding: 1.45rem 1.45rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 295px;
  min-width: 0;
  background: linear-gradient(180deg, rgba(19, 24, 40, 0.92), rgba(15, 20, 33, 0.98));
}

.works-kicker {
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.works-body h3 {
  margin: 0;
  font-size: clamp(0.69rem, 0.93vw, 0.99rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.works-body h3 a {
  color: #d3c2ff;
}

.works-body h3 a:hover {
  color: #e2d7ff;
}

.works-body p {
  margin: 0;
  color: #adb5c6;
  font-size: 0.98rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.works-tools {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.works-tools-label {
  color: #8f9bb5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.works-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.works-tool {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 24, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.works-card:hover .works-tool {
  border-color: rgba(150, 164, 188, 0.18);
}

.works-tool:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(10, 14, 24, 0.65);
  border-color: rgba(134, 168, 255, 0.32);
}

.works-tool-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.works-tool-icon img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  display: block;
}

.works-tool-icon img[src*="Github_actions.png"],
.works-tool-icon img[src*="github_actions.png"] {
  width: 1.55rem;
  height: 1.55rem;
  transform: scale(1.12);
  transform-origin: center;
}

.works-tool-icon img[src*="snowflake.png"] {
  width: 1.6rem;
  height: 1.6rem;
  transform: scale(1.14);
  transform-origin: center;
}

/* Docker.svg uses a 128×128 viewBox with lots of empty margin around the whale */
.works-tool-icon img[src*="Docker.svg"],
.works-tool-icon img[src*="docker.svg"] {
  width: 1.52rem;
  height: 1.52rem;
  transform: scale(1.08);
  transform-origin: center;
}

/* Logos with generous canvas / padding — scale up to match neighbors */
.works-tool-icon img[src*="mlflow.png"] {
  width: 1.5rem;
  height: 1.5rem;
  transform: scale(1.1);
  transform-origin: center;
}

.works-tool-icon img[src*="scikit-learn.svg"] {
  width: 1.52rem;
  height: 1.52rem;
  transform: scale(1.1);
  transform-origin: center;
}

.works-tool-icon img[src*="terraform.svg"] {
  width: 1.46rem;
  height: 1.46rem;
  transform: scale(1.06);
  transform-origin: center;
}

.works-tool-icon img[src*="streamlit.svg"] {
  width: 1.38rem;
  height: 1.38rem;
  transform: scale(1.14);
  transform-origin: center;
}

.works-tool-icon i,
.works-tool-fallback {
  color: #dce6fb;
  font-size: 1.05rem;
  line-height: 1;
}

.works-tool-icon .fa-brands.fa-python {
  font-size: 1.18rem;
  color: #ffd43b;
}

.works-tool-icon .fa-square-root-variable {
  font-size: 1.12rem;
}

.works-tool-fallback {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.works-tool--stack {
  flex-shrink: 1;
  min-width: 0;
  width: auto;
  height: auto;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  padding: 0.48rem 0.8rem 0.48rem 0.52rem;
  gap: 0.7rem;
  border-radius: 999px;
}

.works-tool-stack-copy {
  color: #d7dceb;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
  min-width: 0;
  word-break: break-word;
}

.works-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.works-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #eef2ff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.works-link:hover {
  color: #bcd0ff;
  transform: translateX(2px);
}

.works-link i {
  font-size: 0.82rem;
}

.cap-grid,
.projects-grid,
.cert-grid {
  display: grid;
  gap: 0.9rem;
}

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

.cap-card,
.card,
.cert-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-gradient);
  box-shadow: var(--shadow-soft);
}

.cap-card,
.cert-card,
.contact-panel {
  padding: 1rem;
}

.cap-card h3,
.cert-card h3,
.contact-panel h3 {
  margin: 0;
}

.cap-card p,
.cert-card p,
.contact-panel p {
  margin: 0.62rem 0 0;
  color: var(--muted);
  line-height: 1.66;
}

/* —— Experience: left-weighted track + full-width cards —— */
.experience-section__header {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.experience-section__header h2 {
  margin: 0;
}

.exp-visual {
  --exp-track: clamp(11rem, 24vw, 15rem);
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem 1.5rem clamp(1.75rem, 3.5vw, 2.75rem);
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .exp-visual {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (min-width: 1280px) {
  .exp-visual {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

.exp-visual__rail {
  position: absolute;
  left: var(--exp-track);
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.09) 10%,
    rgba(255, 255, 255, 0.13) 50%,
    rgba(255, 255, 255, 0.09) 90%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.exp-visual__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--exp-track) minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: center;
  margin: 0 0 1.5rem;
}

.exp-visual__row:last-child {
  margin-bottom: 0;
}

.exp-visual__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  padding-right: 1rem;
  min-width: 0;
}

.exp-visual__dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  text-align: left;
  line-height: 1.3;
}

.exp-visual__date-start,
.exp-visual__date-end {
  font-size: 1.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9aa8c4;
}

.exp-visual__date-end {
  font-weight: 600;
  color: #7f8daa;
}

.exp-visual__date-sep {
  font-size: 1.48rem;
  color: rgba(152, 164, 188, 0.4);
}

.exp-visual__axis {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 0;
}

.exp-visual__node {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a3148, #12151f);
  border: 2px solid rgba(179, 140, 255, 0.55);
  box-shadow:
    0 0 0 4px rgba(111, 140, 255, 0.08),
    0 0 18px rgba(104, 210, 255, 0.22);
  transform: translateX(50%);
  z-index: 2;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
}

.exp-visual__connector {
  flex: 0 0 auto;
  width: clamp(18px, 2.8vw, 36px);
  height: 1px;
  margin-left: -1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  align-self: center;
}

.exp-visual__card {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  justify-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: clamp(220px, 26vw, 288px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 24, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 20px 50px rgba(0, 0, 0, 0.38);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.45s ease;
}

.exp-visual__media,
.exp-visual__media--static {
  flex: 0 0 70%;
  max-width: 70%;
  min-width: 0;
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.exp-visual__media--static {
  pointer-events: none;
}

.exp-visual__media-inner {
  position: relative;
  height: 100%;
  min-height: clamp(220px, 26vw, 288px);
  background: #0e121c;
}

.exp-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-visual__media-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 10, 16, 0) 0%,
    rgba(8, 10, 16, 0.18) 38%,
    rgba(8, 10, 16, 0.85) 100%
  );
}

.exp-visual__panel {
  flex: 1 1 30%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.exp-visual__panel-content {
  position: relative;
  z-index: 1;
}

.exp-visual__role {
  margin: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.18;
  color: #f8f9ff;
}

.exp-visual__company {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c5cee6;
  text-decoration: underline;
  text-decoration-color: rgba(104, 210, 255, 0.35);
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.exp-visual__company:hover {
  color: #eef2ff;
  text-decoration-color: rgba(104, 210, 255, 0.75);
}

.exp-visual__company--text {
  text-decoration: none;
  color: #c5cee6;
}

.exp-visual__team {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: rgba(152, 164, 188, 0.82);
}

.exp-visual__location {
  margin: 0.65rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(139, 152, 176, 0.75);
}

.exp-visual__location i {
  font-size: 0.68rem;
  opacity: 0.85;
  color: rgba(104, 210, 255, 0.65);
}

.exp-visual__row:hover .exp-visual__card {
  transform: scale(1.02);
  border-color: rgba(127, 160, 255, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 26px 64px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(127, 160, 255, 0.18),
    0 0 40px rgba(111, 140, 255, 0.12);
}

.exp-visual__row:hover .exp-visual__img {
  transform: scale(1.06);
}

.exp-visual__row:hover .exp-visual__node {
  transform: translateX(50%) scale(1.35);
  border-color: rgba(104, 210, 255, 0.95);
  box-shadow:
    0 0 0 6px rgba(104, 210, 255, 0.12),
    0 0 28px rgba(104, 210, 255, 0.45);
}

@media (hover: none) {
  .exp-visual__row:hover .exp-visual__card {
    transform: none;
  }

  .exp-visual__row:hover .exp-visual__img {
    transform: none;
  }

  .exp-visual__row:hover .exp-visual__node {
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-visual__card,
  .exp-visual__img,
  .exp-visual__node {
    transition: none !important;
  }

  .exp-visual__row:hover .exp-visual__card,
  .exp-visual__row:hover .exp-visual__img {
    transform: none !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.07) inset,
      0 20px 50px rgba(0, 0, 0, 0.38) !important;
  }

  .exp-visual__row:hover .exp-visual__node {
    box-shadow:
      0 0 0 4px rgba(111, 140, 255, 0.08),
      0 0 18px rgba(104, 210, 255, 0.22) !important;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 881px) {
  .exp-visual__row:hover .exp-visual__node {
    transform: translateX(50%) !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 880px) {
  .exp-visual__row:hover .exp-visual__node {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js-exp-reveal.exp-reveal-pending {
    opacity: 0;
    transform: translateY(22px);
  }

  .js-exp-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--exp-i, 0) * 70ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-exp-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(286px, 1fr));
}

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card {
  border-color: rgba(168, 85, 247, 0.3);
}

.thumb {
  display: block;
  background: var(--bg-elev);
}

.thumb img {
  width: 100%;
  height: 198px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.card:hover .thumb img {
  transform: scale(1.04);
}

.card-body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.35;
}

.card-title a {
  color: #fff;
}

.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.card-tags {
  margin: 0;
  color: #b5c1dc;
  font-size: 0.82rem;
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.project-skill-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.project-skill-icon[src*="mlflow"],
.project-skill-icon[src*="tableau"],
.project-skill-icon[src*="github_action"] {
  width: 42px;
  height: 42px;
}

.card-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.card-actions {
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 0.92rem;
  font-size: 0.86rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  color: #0b0e14;
}

.btn:hover {
  filter: brightness(1.06);
  color: #0b0e14;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
}

.btn.ghost:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 20px rgba(111, 140, 255, 0.2);
}

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

.cert-preview {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.cert-preview iframe {
  width: 100%;
  height: 210px;
  border: 0;
  display: block;
  pointer-events: none;
}

.cert-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #d9e4ff;
  background: var(--accent-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.contact-actions {
  margin-top: 1rem;
}

.contact-meta {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.55rem;
}

.contact-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  color: #d8def0;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-meta__item i {
  color: rgba(104, 210, 255, 0.85);
}

.contact-meta__item:hover {
  color: #ffffff;
}

.site-footer {
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.3rem 1rem 1.9rem;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 14, 20, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 70;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lightbox.hidden {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.lb-img {
  position: relative;
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #0b0e14;
  font-size: 1.35rem;
  cursor: pointer;
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes dotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 140, 255, 0.58);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(111, 140, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 140, 255, 0);
  }
}

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

  .ide-hero-grid,
  .contact-layout,
  .cap-grid {
    grid-template-columns: 1fr;
  }

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

  .works-body {
    min-height: 280px;
  }

  .ide-profile-pic {
    height: clamp(260px, 60vw, 360px);
  }
}

@media (max-width: 880px) {
  .exp-visual {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    --exp-track: 1fr;
  }

  .exp-visual__rail {
    left: 0.75rem;
    transform: none;
  }

  .exp-visual__row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
    padding-left: 1.375rem;
  }

  .exp-visual__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
    padding-right: 0;
  }

  .exp-visual__dates {
    justify-content: flex-start;
    text-align: left;
  }

  .exp-visual__axis {
    justify-content: flex-start;
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .exp-visual__node {
    transform: none;
  }

  .exp-visual__row:hover .exp-visual__node {
    transform: scale(1.2);
  }

  .exp-visual__connector {
    flex: 1;
    max-width: 3rem;
    margin-left: 0.35rem;
  }

  .exp-visual__card {
    grid-column: 1;
    grid-row: auto;
    flex-direction: column;
    min-height: 0;
  }

  .exp-visual__media,
  .exp-visual__media--static {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .exp-visual__media-inner {
    min-height: 200px;
    aspect-ratio: 16 / 10;
  }

  .exp-visual__media-gradient {
    background: linear-gradient(
      180deg,
      rgba(8, 10, 16, 0) 0%,
      rgba(8, 10, 16, 0.35) 55%,
      rgba(8, 10, 16, 0.88) 100%
    );
  }

  .exp-visual__panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.875rem 1rem 1rem;
  }

  .exp-visual__role {
    font-size: 1.12rem;
  }
}

@media (max-width: 760px) {
  .site-header .wrap {
    padding: 0.78rem 0.95rem;
  }

  .nav-menu {
    left: 0.95rem;
    right: 0.95rem;
  }

  .content {
    padding: 1.8rem 0.95rem 3rem;
  }

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

  .hero-socials a {
    width: 40px;
    height: 40px;
  }

  .thumb img {
    height: 184px;
  }

  .cert-preview iframe {
    height: 184px;
  }

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

  .works-tag {
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.72rem 1.05rem;
    font-size: 0.76rem;
  }

  .works-expand-btn {
    top: 0.9rem;
    right: 0.9rem;
    width: 54px;
    height: 54px;
    font-size: 1.05rem;
  }

  .works-body {
    padding: 1.2rem 1.1rem 1.3rem;
    min-height: auto;
  }

  .works-body h3 {
    font-size: 0.81rem;
  }

  .works-body p {
    font-size: 0.94rem;
    -webkit-line-clamp: 5;
  }

  .works-tools-list {
    gap: 0.52rem;
  }

  .works-tool {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 14px;
  }

  .works-tool-icon {
    width: 1.32rem;
    height: 1.32rem;
  }

  .works-tool-icon img {
    width: 1.18rem;
    height: 1.18rem;
  }

  .works-tool-icon img[src*="Github_actions.png"],
  .works-tool-icon img[src*="github_actions.png"] {
    width: 1.3rem;
    height: 1.3rem;
  }

  .works-tool-icon img[src*="snowflake.png"] {
    width: 1.34rem;
    height: 1.34rem;
  }

  .works-tool-icon img[src*="Docker.svg"],
  .works-tool-icon img[src*="docker.svg"] {
    width: 1.44rem;
    height: 1.44rem;
    transform: scale(1.06);
    transform-origin: center;
  }

  .works-tool-icon img[src*="mlflow.png"] {
    width: 1.38rem;
    height: 1.38rem;
    transform: scale(1.08);
    transform-origin: center;
  }

  .works-tool-icon img[src*="scikit-learn.svg"] {
    width: 1.4rem;
    height: 1.4rem;
    transform: scale(1.08);
    transform-origin: center;
  }

  .works-tool-icon img[src*="terraform.svg"] {
    width: 1.34rem;
    height: 1.34rem;
    transform: scale(1.05);
    transform-origin: center;
  }

  .works-tool-icon img[src*="streamlit.svg"] {
    width: 1.28rem;
    height: 1.28rem;
    transform: scale(1.1);
    transform-origin: center;
  }

  .works-tool-icon .fa-brands.fa-python {
    font-size: 1.22rem;
  }

  .works-tool-icon .fa-square-root-variable {
    font-size: 1.16rem;
  }

  .works-tool--stack {
    width: auto;
    height: auto;
    padding: 0.38rem 0.7rem 0.38rem 0.42rem;
  }

  .works-tool-stack-copy {
    font-size: 0.78rem;
  }
}
