/* =========================================================
   Kenean Dita Meleta — portfolio
   Vanilla CSS. Dark by default, light via body.light
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-elev: #101012;
  --fg: #ededed;
  --fg-muted: #8b8b93;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #4f8ef7;
  --accent-soft: rgba(79, 142, 247, 0.14);
  --matrix: #00ff88;
  --dot: rgba(255, 255, 255, 0.1);
  --glass: rgba(18, 18, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);

  --font-brand: "Permanent Marker", "Space Grotesk", cursive;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --dock-h: 72px;
}

body.light {
  --bg: #f5f5f5;
  --bg-elev: #ffffff;
  --fg: #16161a;
  --fg-muted: #5d5d68;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.22);
  --accent: #2f6fe0;
  --accent-soft: rgba(47, 111, 224, 0.12);
  --dot: rgba(0, 0, 0, 0.05);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(0, 0, 0, 0.1);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* ---------------- Layered page background ---------------- */
/* Layer 1: fixed dot grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0);
  background-size: 28px 28px;
}

/* Layer 2: fixed ambient orbs */
.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb--1 {
  top: -180px;
  left: -160px;
  width: 600px;
  height: 600px;
  background: var(--accent);
  opacity: 0.12;
  filter: blur(120px);
}

.orb--2 {
  right: -140px;
  bottom: -160px;
  width: 500px;
  height: 500px;
  background: #7c6aff;
  opacity: 0.1;
  filter: blur(100px);
}

.orb--3 {
  top: 42%;
  right: 8%;
  width: 400px;
  height: 400px;
  background: #14b8a6;
  opacity: 0.07;
  filter: blur(110px);
}

body.light .orb--1,
body.light .orb--2,
body.light .orb--3 {
  opacity: 0.06;
}

.scroller {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------- Scroll progress ---------------- */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--matrix));
  opacity: 0.85;
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + 26px);
  z-index: 55;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- Scroll reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* `translate` (not `transform`) so magnetic offset composes with hover lifts */
[data-magnetic] {
  translate: var(--mag-x, 0px) var(--mag-y, 0px);
  transition: translate 0.18s ease;
}

[data-parallax] {
  translate: 0 var(--shift, 0px);
}

/* ---------------- Scroll shell (free scrolling) ---------------- */
html {
  scroll-behavior: smooth;
}

.scroller {
  display: block;
}

.section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 80px 24px;
}

.section--home {
  min-height: 100dvh;
  padding-top: 48px;
}

.section--work {
  padding-bottom: 24px;
}

.section--contact {
  padding-top: 56px;
  padding-bottom: calc(var(--dock-h) + 36px);
}

/* Ambient glow on Home that tracks the pointer */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora::after {
  content: "";
  position: absolute;
  left: var(--px, 50%);
  top: var(--py, 40%);
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  opacity: 0.9;
  transition: opacity 0.4s ease;
}


.scramble {
  white-space: pre;
}

.section__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

/* ---------------- Home ---------------- */
.home {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.home__text > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.home__text > *:nth-child(2) { animation-delay: 0.06s; }
.home__text > *:nth-child(3) { animation-delay: 0.12s; }
.home__text > *:nth-child(4) { animation-delay: 0.18s; }
.home__text > *:nth-child(5) { animation-delay: 0.24s; }
.home__text > *:nth-child(6) { animation-delay: 0.3s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.8vw, 5rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
  text-shadow: 0 2px 2px rgba(79, 142, 247, 0.35);
}

.home__role {
  margin: 0 0 10px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

.home__tagline {
  margin: 0 0 22px;
  max-width: 60ch;
  font-weight: 300;
  line-height: 1.6;
  color: var(--fg);
  opacity: 0.92;
}

.infoblock {
  list-style: none;
  margin: 0 0 26px;
  padding: 22px 26px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--accent-soft);
  width: fit-content;
  max-width: 100%;
  transition: border-color 0.6s ease, background-color 0.6s ease;
}

.infoblock.is-decoding {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.06);
}

.infoblock li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.infoblock .scramble {
  color: var(--accent);
}

.infoblock .scramble {
  transition: color 0.6s ease, text-shadow 0.6s ease;
}

.infoblock.is-decoding .scramble {
  color: var(--matrix);
  text-shadow: 0 0 16px rgba(0, 255, 136, 0.35);
}

.infoblock__key {
  min-width: 74px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.infoblock.is-decoding .infoblock__key {
  color: rgba(0, 255, 136, 0.55);
}

.home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--accent-soft);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--fg-muted);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.socials a:hover {
  color: var(--fg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.socials svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}

/* Portrait — stroke traces the subject silhouette (alpha-based drop shadows) */
.portrait {
  --stroke: rgba(255, 255, 255, 0.28);
  --glow: transparent;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 320 / 380;
  margin-inline: auto;
}

body.light .portrait {
  --stroke: rgba(0, 0, 0, 0.3);
}

.portrait:hover {
  --stroke: #ffffff;
  --glow: rgba(255, 255, 255, 0.55);
}

body.light .portrait:hover {
  --stroke: var(--accent);
  --glow: rgba(47, 111, 224, 0.5);
}

.portrait__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(1px 0 0 var(--stroke)) drop-shadow(-1px 0 0 var(--stroke))
    drop-shadow(0 1px 0 var(--stroke)) drop-shadow(0 -1px 0 var(--stroke))
    drop-shadow(0 0 12px var(--glow));
  transition: filter 0.3s ease;
}

/* ---------------- Work ---------------- */
.work {
  display: grid;
  gap: 22px;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.tab {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.tab:hover {
  color: var(--fg);
}

.tab.is-active {
  color: var(--fg);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.panels {
  position: relative;
}

.panel[hidden] {
  display: none;
}

.panel {
  animation: panelIn 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* About */
.bio {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.75;
  font-weight: 300;
  max-width: 72ch;
  margin: 0 0 26px;
}

.codeblock {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  overflow: hidden;
  max-width: 760px;
}

.codeblock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.codeblock__lang {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
}

.toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  gap: 2px;
}

.toggle__opt {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.78rem;
  color: var(--fg-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toggle__opt.is-active {
  background: var(--accent);
  color: #fff;
}

.codeblock__body {
  display: grid;
  grid-template-columns: auto 1fr;
  overflow-x: auto;
}

.codeblock__gutter,
.codeblock__code {
  margin: 0;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
}

.codeblock__gutter {
  padding-inline: 14px 10px;
  color: var(--fg-muted);
  opacity: 0.5;
  text-align: right;
  user-select: none;
  border-right: 1px solid var(--line);
}

.codeblock__code {
  padding-inline: 16px;
  overflow-x: auto;
}

.tok-kw { color: #c792ea; }
.tok-str { color: #7fd88f; }
.tok-fn { color: #82aaff; }
.tok-type { color: #ffcb6b; }
.tok-com { color: var(--fg-muted); font-style: italic; }

body.light .tok-kw { color: #8250df; }
body.light .tok-str { color: #1a7f37; }
body.light .tok-fn { color: #0550ae; }
body.light .tok-type { color: #953800; }

/* Skills */
.skills {
  display: grid;
  gap: 18px;
}

.skillrow {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.skillrow:last-child {
  border-bottom: 0;
}

.skillrow__label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 8px;
}

.skillrow__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
}

.skill {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.skill:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 26px var(--accent-soft);
}

.skill img,
.skill svg {
  width: 26px;
  height: 26px;
}

body:not(.light) .skill img[src*="flask"],
body:not(.light) .skill img[src*="nextjs"],
body:not(.light) .skill img[src*="vercel"],
body:not(.light) .skill img[src*="sqlalchemy"] {
  filter: invert(1) brightness(1.6);
}

.skill svg {
  stroke-width: 1.4;
  color: var(--fg-muted);
}

.skill span {
  font-size: 0.68rem;
  color: var(--fg-muted);
  text-align: center;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px var(--accent-soft);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.badge {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  white-space: nowrap;
}

.card__desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--fg-muted);
  font-weight: 300;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--fg);
}

.card__links {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.card__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.card__links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.card__links svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
}

/* Experience — dashboard panel */
.experience {
  display: grid;
  gap: 26px;
  padding-top: 4px;
}

.exp-block__title {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.exp-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: expIn 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.exp-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px var(--accent-soft);
}

@keyframes expIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.exp-card--learning {
  display: grid;
  gap: 8px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-color: var(--glass-border);
}

.exp-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
  font-weight: 500;
}

.exp-card__head svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.6;
  color: var(--accent);
}

.exp-card__note {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* thin animated shimmer line under each learning card */
.exp-card--learning::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 45%,
    rgba(255, 255, 255, 0.7) 55%,
    var(--accent) 65%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: shimmer 2.8s linear infinite;
  opacity: 0.75;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.exp-card--role {
  display: grid;
  gap: 8px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(150deg, var(--accent-soft), transparent 70%), var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-color: var(--line-strong);
}

.exp-card__role {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(79, 142, 247, 0.45);
  font-size: 0.78rem;
  color: var(--fg-muted);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.exp-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--fg);
}

.exp-chip img {
  width: 17px;
  height: 17px;
}

/* ---------------- Contact ---------------- */
.contact {
  display: grid;
  gap: 34px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 64px);
  align-items: start;
}

.contact__headline {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

.contact__sub {
  margin: 0 0 26px;
  color: var(--fg-muted);
  font-weight: 300;
  max-width: 42ch;
}

.contact__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact__links li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--fg-muted);
  opacity: 0;
  transition: opacity 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.copy svg {
  width: 14px;
  height: 14px;
}

.contact__links li:hover .copy,
.copy:focus-visible {
  opacity: 1;
}

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

.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--fg-muted);
  font-size: 0.92rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.contact__links a:hover {
  color: var(--fg);
  transform: translateX(3px);
}

.contact__links svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn--submit {
  justify-self: start;
  overflow: hidden;
}

.btn--submit svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn--submit:hover svg {
  transform: translateX(4px);
}

.btn--submit[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.form-status.is-error {
  color: #ff6b6b;
}

.form-status.is-ok {
  color: var(--matrix);
}

body.light .form-status.is-ok {
  color: #1a7f37;
}

.footer {
  text-align: center;
  font-size: 0.74rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
}

/* ---------------- Dock ---------------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dock__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.82rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.dock__item svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.6;
}

.dock__item:hover {
  color: var(--fg);
}

.dock__item.is-active {
  color: var(--fg);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.dock__toggle {
  margin-left: 2px;
  border-left: 1px solid var(--glass-border);
  border-radius: 0 999px 999px 0;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .home {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 26px;
  }

  .frame {
    max-width: 210px;
    margin-inline: 0;
  }

  .projects,
  .exp-grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .skillrow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skillrow__label {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --dock-h: 62px;
  }

  .section {
    padding: 56px 18px;
    align-items: flex-start;
  }

  .section--home {
    padding-top: 42px;
    align-items: center;
  }

  .section--contact {
    padding-bottom: calc(var(--dock-h) + 24px);
  }

  .dock {
    bottom: 12px;
    gap: 2px;
    width: calc(100% - 24px);
    justify-content: space-between;
  }

  .dock__item {
    padding: 9px 10px;
    font-size: 0.72rem;
    gap: 5px;
  }

  .dock__theme-label,
  .dock__item span {
    display: none;
  }

  .dock__item {
    justify-content: center;
    flex: 1;
  }
}

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