/* ===================================================================
   TOKENS
=================================================================== */
:root {
  /* ---- dark theme (default) ---- */
  --bg: #0d1117;
  --bg-2: #10151c;
  --bg-3: #0b0e13;
  --bg-elev: #161b22;
  --bg-inset: #010409;
  --border: #262c36;
  --border-2: #30363d;

  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --heading: #ffffff;

  --blue: #58a6ff;
  --green: #7ee787;
  --orange: #ffa657;
  --purple: #d2a8ff;
  --red: #ff7b72;
  --pink: #ff9bce;
  --on-accent: #04101f;

  --grid-line: rgba(255, 255, 255, 0.025);
  --topbar-bg: rgba(13, 17, 23, 0.7);
  --topbar-bg-solid: rgba(13, 17, 23, 0.92);
  --shadow-strong: rgba(0, 0, 0, 0.6);
  --shadow-soft: rgba(0, 0, 0, 0.5);

  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- light theme ---- */
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f8fa;
  --bg-3: #eaeef2;
  --bg-elev: #ffffff;
  --bg-inset: #f6f8fa;
  --border: #d0d7de;
  --border-2: #c8d0d9;

  --text: #24292f;
  --text-muted: #57606a;
  --text-dim: #6e7781;
  --heading: #1f2328;

  --blue: #0969da;
  --green: #1a7f37;
  --orange: #9a6700;
  --purple: #8250df;
  --red: #cf222e;
  --pink: #bf3989;
  --on-accent: #ffffff;

  --grid-line: rgba(31, 35, 40, 0.045);
  --topbar-bg: rgba(255, 255, 255, 0.72);
  --topbar-bg-solid: rgba(255, 255, 255, 0.92);
  --shadow-strong: rgba(140, 149, 159, 0.3);
  --shadow-soft: rgba(140, 149, 159, 0.25);
}

html,
body {
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}
*,
*::before,
*::after {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
}

::selection {
  background: var(--blue);
  color: var(--on-accent);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.section__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
section {
  padding: 120px 0;
  position: relative;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.section__eyebrow--light {
  color: var(--green);
}
.section__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  color: var(--text);
}
.section__title--light {
  color: var(--heading);
}

/* ===================================================================
   SCROLL PROGRESS
=================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  background: transparent;
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--orange));
  transition: width 0.1s linear;
}

/* ===================================================================
   TOPBAR / TABS
=================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.topbar.is-scrolled {
  border-bottom-color: var(--border);
  background: var(--topbar-bg-solid);
}
.topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--heading);
  white-space: nowrap;
}
.brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.brand__ext {
  color: var(--text-dim);
  font-weight: 500;
}

.tabs {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.tab__file {
  color: var(--text-dim);
}
.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.tab.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.topbar__cta {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bg);
  background: var(--green);
  padding: 9px 18px;
  border-radius: var(--radius-s);
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s ease;
}
.topbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(126, 231, 135, 0.25);
}

/* theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease),
    background 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.theme-toggle__icon {
  font-size: 14px;
}
.theme-toggle__icon--moon {
  display: none;
}
html[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}
html[data-theme="light"] .theme-toggle__icon--moon {
  display: inline-block;
}
.theme-toggle--mobile {
  display: none;
  width: auto;
  height: auto;
  border-radius: var(--radius-s);
  align-self: flex-start;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 14px;
  justify-content: flex-start;
  width: 100%;
}
.theme-toggle__label {
  color: var(--text-muted);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 100%;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
  opacity: 0;
}
.burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.mobile-menu.is-open {
  max-height: 340px;
}
.mobile-menu a {
  font-family: var(--font-mono);
  padding: 16px 32px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.03);
}

/* ===================================================================
   HERO
=================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(88, 166, 255, 0.1),
      transparent 45%
    ),
    radial-gradient(
      circle at 10% 85%,
      rgba(126, 231, 135, 0.08),
      transparent 40%
    ),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    #000 40%,
    transparent 90%
  );
  pointer-events: none;
}
.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.eyebrow__blink {
  animation: blink 1.6s ease-in-out infinite;
  font-size: 10px;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.hero__title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--heading);
  margin-bottom: 22px;
}
.hero__title .hl {
  color: var(--blue);
}
.hero__lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 50ch;
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-s);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--blue);
  color: var(--on-accent);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(88, 166, 255, 0.28);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.btn--block {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 15px;
}

.hero__stats {
  display: flex;
  gap: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat__num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--heading);
}
.stat__num i {
  font-style: normal;
  font-size: 15px;
  color: var(--text-dim);
  margin-left: 2px;
}
.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* code editor card */
.hero__editor {
  position: relative;
}

/* normal-sized profile photo, sitting in the hero copy above the eyebrow */
.hero__photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-elev);
  outline: 2px solid var(--green);
  outline-offset: 3px;
  box-shadow: 0 14px 32px -10px var(--shadow-strong);
  background: var(--bg-elev);
  margin-bottom: 26px;
}

.editor {
  background: var(--bg-inset);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-l);
  box-shadow:
    0 30px 70px -20px var(--shadow-strong),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.editor__titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot--red {
  background: #ff5f56;
}
.dot--yellow {
  background: #ffbd2e;
}
.dot--green {
  background: #27c93f;
}
.editor__filename {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.editor__body {
  padding: 22px 20px;
  min-height: 300px;
}
.code {
  font-family: var(--font-mono);
  font-size: 13.6px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.code .ln {
  color: var(--text-dim);
  display: inline-block;
  width: 20px;
  user-select: none;
}
.code .k {
  color: var(--purple);
}
.code .s {
  color: var(--green);
}
.code .p {
  color: var(--text-muted);
}
.code .f {
  color: var(--orange);
}
.code .c {
  color: var(--text-dim);
  font-style: italic;
}
.code .n {
  color: #79c0ff;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--blue);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.editor__statusbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 16px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.editor__statusbar-right {
  margin-left: auto;
  color: var(--text-dim);
}
#typedRole {
  color: var(--orange);
  font-weight: 600;
}
#typedRole::after {
  content: "|";
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  color: var(--text-dim);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-2);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 1;
}
.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  animation: scrollhint 1.6s ease infinite;
}
@keyframes scrollhint {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0;
  }
}

/* ===================================================================
   REVEAL ON SCROLL
=================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===================================================================
   ABOUT
=================================================================== */
.about {
  background: var(--bg);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.terminal {
  background: var(--bg-inset);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px var(--shadow-strong);
}
.terminal__body {
  padding: 22px 20px;
  font-family: var(--font-mono);
  font-size: 13.6px;
  color: var(--text-muted);
}
.terminal__body p {
  margin-bottom: 14px;
}
.prompt {
  color: var(--green);
  margin-right: 6px;
}
.terminal__muted {
  color: var(--text-muted);
  line-height: 1.9;
}
.cursor-block {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--blue);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin: 8px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  color: #04101f;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.about__content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 58ch;
}
.facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0 30px;
}
.fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fact i {
  color: var(--blue);
  font-size: 16px;
  margin-top: 3px;
  width: 18px;
}
.fact strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
}
.fact span {
  font-size: 13.5px;
  color: var(--text-muted);
}
.text-link {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 14.5px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.text-link:hover {
  text-decoration: underline;
}

/* ===================================================================
   EXPERIENCE — git log
=================================================================== */
.experience {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
}
.gitlog {
  position: relative;
  padding-left: 8px;
}
.commit {
  display: flex;
  gap: 24px;
  padding-bottom: 44px;
  position: relative;
}
.commit:last-child {
  padding-bottom: 0;
}
.commit__rail {
  position: relative;
  width: 14px;
  display: flex;
  justify-content: center;
}
.commit__rail::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -44px;
  width: 2px;
  background: var(--border-2);
}
.commit:last-child .commit__rail::before {
  display: none;
}
.commit__node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--border-2);
  margin-top: 4px;
  z-index: 1;
}
.commit__node--current {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(126, 231, 135, 0.15);
  background: var(--green);
}
.commit__body {
  flex: 1;
}
.commit__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.commit__branch {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  border: 1px solid rgba(126, 231, 135, 0.35);
  background: rgba(126, 231, 135, 0.08);
  padding: 3px 9px;
  border-radius: 20px;
}
.commit__date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.commit__role {
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--heading);
  margin-bottom: 6px;
}
.commit__at {
  color: var(--blue);
  font-weight: 500;
}
.commit__loc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.commit__loc i {
  margin-right: 6px;
  color: var(--text-dim);
}
.commit__msg {
  font-size: 14.5px;
  color: var(--text-muted);
}
.commit__msg strong {
  color: var(--text);
}
.commit__msg a {
  color: var(--blue);
}
.commit__msg a:hover {
  text-decoration: underline;
}

/* ===================================================================
   SKILLS
=================================================================== */
.skills {
  background: var(--bg);
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.skillcard {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px;
  border-top: 3px solid var(--border-2);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s ease;
}
.skillcard:hover {
  transform: translateY(-4px);
}
.skillcard--blue {
  border-top-color: var(--blue);
}
.skillcard--green {
  border-top-color: var(--green);
}
.skillcard--orange {
  border-top-color: var(--orange);
}
.skillcard--purple {
  border-top-color: var(--purple);
}
.skillcard h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
}
.skillcard--blue h3 i {
  color: var(--blue);
}
.skillcard--green h3 i {
  color: var(--green);
}
.skillcard--orange h3 i {
  color: var(--orange);
}
.skillcard--purple h3 i {
  color: var(--purple);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-inset);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 5px 12px;
}
.langlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.langlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}
.dots {
  display: flex;
  gap: 5px;
}
.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.dots i.off {
  background: var(--border-2);
}

/* ===================================================================
   PROJECTS
=================================================================== */
.projects {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.project {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: 0 20px 40px -20px var(--shadow-soft);
}
.project__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.project__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.project__icon {
  font-size: 20px;
  color: var(--blue);
  opacity: 0.85;
}
.project h3 {
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--heading);
}
.project p {
  font-size: 14.5px;
  color: var(--text-muted);
  flex: 1;
}
.project__stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project__stack span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--green);
  background: rgba(126, 231, 135, 0.08);
  border: 1px solid rgba(126, 231, 135, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ===================================================================
   CONTACT
=================================================================== */
.contact {
  background: var(--bg);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact__info p {
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 30px;
}
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 34px;
}
.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact__list i {
  width: 20px;
  margin-top: 4px;
  color: var(--blue);
  font-size: 16px;
}
.contact__list strong {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.contact__list a,
.contact__list span {
  font-size: 15px;
  color: var(--text);
}
.contact__list a:hover {
  color: var(--blue);
}
.contact__social {
  display: flex;
  gap: 12px;
}
.contact__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.contact__social a:hover {
  color: var(--bg);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.contact__form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px;
}
.field-row {
  display: flex;
  gap: 16px;
}
.field {
  margin-bottom: 18px;
  flex: 1;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
  outline: none;
}

/* ===================================================================
   FOOTER
=================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer span {
  font-size: 13.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.footer__top {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__top:hover {
  color: var(--blue);
}

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 1020px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__editor {
    order: -1;
    margin-top: 30px;
  }
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .skills__grid,
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .tabs,
  .topbar__cta,
  .theme-toggle:not(.theme-toggle--mobile) {
    display: none;
  }
  .burger {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
  .theme-toggle--mobile {
    display: flex;
  }
  section {
    padding: 88px 0;
  }
  .hero {
    padding-top: 130px;
  }
}

@media (max-width: 620px) {
  .section__inner {
    padding: 0 20px;
  }
  .topbar__inner {
    padding: 14px 20px;
    justify-content: space-between;
  }
  .hero__inner {
    padding: 0 20px;
  }
  .hero__stats {
    gap: 26px;
    flex-wrap: wrap;
  }
  .skills__grid,
  .projects__grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    flex-direction: column;
    gap: 0;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .hero__photo {
    width: 110px;
    height: 110px;
  }
}