@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&family=Oxanium:wght@500;600;700;800&display=swap");

:root {
  --bg: #070808;
  --bg-2: #0b0d0d;
  --panel: rgba(17, 19, 19, 0.86);
  --panel-solid: #111313;
  --panel-2: #181b1b;
  --gold: #ffd323;
  --gold-soft: #c69b08;
  --gold-dim: #6d570b;
  --amber-line: rgba(255, 211, 35, 0.17);
  --amber-line-strong: rgba(255, 211, 35, 0.42);
  --cold: #8aa0a4;
  --cold-dim: #405357;
  --text: #dedede;
  --muted: #9fa4a2;
  --dim: #69706e;
  --black: #050606;
  --max: 1160px;
  --header: 78px;
  --radius: 18px;
  --font-main: "JetBrains Mono", "Courier New", monospace;
  --font-display: "Oxanium", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-weight: 650;
  letter-spacing: -0.02em;
  background:
    radial-gradient(
      circle at 50% -12%,
      rgba(255, 211, 35, 0.1),
      transparent 26rem
    ),
    radial-gradient(
      circle at 15% 90%,
      rgba(138, 160, 164, 0.06),
      transparent 32rem
    ),
    linear-gradient(180deg, #060707 0%, #0a0c0c 45%, #070808 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(
      120deg,
      transparent 0 48%,
      rgba(255, 211, 35, 0.045) 49%,
      transparent 50%
    ),
    linear-gradient(
      60deg,
      transparent 0 48%,
      rgba(138, 160, 164, 0.035) 49%,
      transparent 50%
    );
  background-size: 180px 180px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(
    circle at 50% 22%,
    rgba(0, 0, 0, 0.82),
    transparent 70%
  );
}

.grain,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 1;
  opacity: 0.045;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.5) 0 1px,
      transparent 1px 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.35) 0 1px,
      transparent 1px 3px
    );
  mix-blend-mode: screen;
}

.vignette {
  z-index: 2;
  background:
    radial-gradient(
      circle at center,
      transparent 0 42%,
      rgba(0, 0, 0, 0.36) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.34),
      transparent 15%,
      transparent 85%,
      rgba(0, 0, 0, 0.34)
    );
}

a {
  color: inherit;
}

button {
  font: inherit;
}

::selection {
  color: #060707;
  background: var(--gold);
}

.site {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header);
  background: rgba(13, 15, 15, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 211, 35, 0.48),
    transparent
  );
}

.nav {
  min-height: var(--header);
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}

.logo {
  width: 76px;
  height: auto;
  filter: none;
  display: block;
}

.identity-text {
  display: grid;
  line-height: 1.05;
}

.identity-text strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.03em;
}

.identity-text small {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
}

.nav-links a {
  position: relative;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  opacity: 0.72;
  padding: 10px 2px;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 50%;
  height: 24px;
  border: 1px solid rgba(255, 211, 35, 0);
  border-radius: 999px;
  transform: translateY(-50%);
  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  border-color: rgba(255, 211, 35, 0.2);
  background: rgba(255, 211, 35, 0.055);
}

.right-tools {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.build-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 211, 35, 0.18);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 211, 35, 0.045);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.lang {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 211, 35, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.lang button {
  min-width: 38px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  opacity: 0.58;
}

.lang button.active {
  opacity: 1;
  color: #070808;
  background: var(--gold);
}

/* Main */

.main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(32px, 5.5vw, 70px) 0 clamp(86px, 10vw, 128px);
}

.route-shell {
  animation: pageIn 260ms ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: clamp(430px, 62vh, 660px);
}

.hero.center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  min-height: 390px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-soft);
  box-shadow: 0 0 14px rgba(255, 211, 35, 0.24);
}

h1 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(44px, 7.3vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-wrap: balance;
  text-shadow: 0 0 16px rgba(255, 211, 35, 0.1);
}

.hero.center h1 {
  font-size: clamp(36px, 6vw, 70px);
}

h2 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 40px);
  letter-spacing: -0.055em;
}

h3 {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
}

p {
  margin: 0;
}

.lead {
  max-width: 780px;
  margin-top: 26px;
  color: var(--text);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.9;
  text-wrap: pretty;
}

.hero.center .lead {
  margin-inline: auto;
}

mark {
  color: var(--gold);
  background: transparent;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  color: var(--gold);
  border: 1px solid rgba(255, 211, 35, 0.32);
  background: rgba(255, 211, 35, 0.055);
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 211, 35, 0.56);
  background: rgba(255, 211, 35, 0.11);
}

.button.primary {
  color: #070808;
  border-color: var(--gold);
  background: var(--gold);
}

/* Corridor archive panel */

.archive-panel {
  position: relative;
  border: 1px solid var(--amber-line);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.01)
    ),
    rgba(10, 12, 12, 0.88);
  overflow: hidden;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.024);
}

.archive-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 211, 35, 0.07),
      transparent 11rem
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.35),
      transparent 25%,
      transparent 75%,
      rgba(0, 0, 0, 0.35)
    );
}

.panel-top {
  position: relative;
  z-index: 1;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.025);
}

.panel-badge {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #070808;
  border-radius: 12px;
  background: var(--gold);
  font-family: var(--font-display);
  font-weight: 900;
  box-shadow: 0 0 18px rgba(255, 211, 35, 0.2);
}

.panel-title {
  display: grid;
  line-height: 1.1;
}

.panel-title strong {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.panel-title span {
  color: var(--dim);
  font-size: 11px;
}

.panel-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cold);
  font-size: 11px;
}

.panel-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(255, 211, 35, 0.55);
}

.panel-body {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.corridor {
  position: relative;
  min-height: 245px;
  border: 1px solid rgba(138, 160, 164, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 211, 35, 0.05), transparent 38%),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.72),
      transparent 40%,
      transparent 60%,
      rgba(0, 0, 0, 0.72)
    ),
    #070909;
}

.corridor::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 78%;
  height: 86%;
  transform: translateX(-50%) perspective(420px) rotateX(62deg);
  transform-origin: bottom;
  background:
    linear-gradient(
      90deg,
      transparent 0 48%,
      rgba(255, 211, 35, 0.18) 49%,
      transparent 50%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 38px,
      rgba(255, 211, 35, 0.1) 39px,
      transparent 40px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 24px,
      rgba(138, 160, 164, 0.08) 25px,
      transparent 26px
    );
  opacity: 0.85;
}

.corridor::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 15%;
  width: 82px;
  height: 132px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 211, 35, 0.26);
  border-bottom: 0;
  border-radius: 42px 42px 0 0;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(255, 211, 35, 0.16),
      transparent 16px
    ),
    linear-gradient(180deg, rgba(255, 211, 35, 0.08), rgba(0, 0, 0, 0.88));
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.85);
}

.room-label {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 14px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.room-label.right {
  left: auto;
  right: 16px;
  color: var(--cold);
}

.corner {
  position: absolute;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-color: rgba(255, 211, 35, 0.38);
}

.corner.tl {
  left: 13px;
  top: 13px;
  border-left: 1px solid;
  border-top: 1px solid;
}

.corner.tr {
  right: 13px;
  top: 13px;
  border-right: 1px solid;
  border-top: 1px solid;
}

.corner.bl {
  left: 13px;
  bottom: 13px;
  border-left: 1px solid;
  border-bottom: 1px solid;
}

.corner.br {
  right: 13px;
  bottom: 13px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.panel-log {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.log-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.log-line strong {
  flex: 0 0 auto;
  color: var(--gold);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.metric {
  min-height: 64px;
  border: 1px solid rgba(255, 211, 35, 0.14);
  border-radius: 14px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.028);
}

.metric span {
  display: block;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 7px;
  color: var(--gold);
  font-size: 14px;
}

/* Sections */

.section {
  margin-top: clamp(52px, 8vw, 104px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

.card {
  position: relative;
  min-height: 180px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.038),
      rgba(255, 255, 255, 0.01)
    ),
    rgba(16, 18, 18, 0.82);
  overflow: hidden;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--amber-line-strong);
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(255, 211, 35, 0.08),
      transparent 12rem
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(16, 18, 18, 0.86);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 211, 35, 0.85), rgba(109, 87, 11, 0.86)),
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.1) 0 10px,
      transparent 10px 20px
    );
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 42px);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 60% 42%,
    transparent,
    rgba(0, 0, 0, 0.22)
  );
}

.card-body {
  padding: 22px;
}

.card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--gold);
  border: 1px solid rgba(255, 211, 35, 0.14);
  background: rgba(255, 211, 35, 0.065);
  font-size: 12px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.timeline-date {
  color: var(--gold);
}

.timeline-text {
  color: var(--muted);
  line-height: 1.8;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
}

.pill:hover {
  color: var(--gold);
  border-color: rgba(255, 211, 35, 0.24);
}

.resume-panel {
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.resume-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.resume-row:first-child {
  border-top: 0;
}

.resume-label {
  color: var(--gold);
}

.resume-text {
  color: var(--muted);
  line-height: 1.8;
}

/* Footer */

.footer {
  position: relative;
  z-index: 5;
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(16px, 4vw, 34px);
  color: #dedede;
  background: rgba(16, 18, 18, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.052);
  font-size: 12px;
}

.footer a {
  color: #6375ff;
}

.footer-random {
  justify-self: center;
  color: #fff;
}

.copyright {
  justify-self: end;
}

.mobile-dock {
  display: none;
}

/* Mobile */

@media (max-width: 820px) {
  :root {
    --header: 68px;
  }

  body {
    letter-spacing: -0.015em;
  }

  .nav {
    width: min(100% - 24px, var(--max));
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .identity-text small,
  .build-chip,
  .nav-links {
    display: none;
  }

  .identity-text strong {
    font-size: 14px;
  }

  .logo {
    width: 64px;
    height: auto;
  }

  .right-tools {
    justify-self: end;
  }

  .main {
    width: min(100% - 24px, var(--max));
    padding-top: 28px;
    padding-bottom: 124px;
  }

  .hero,
  .hero.center {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: left;
    justify-items: stretch;
    padding: 18px 0 40px;
  }

  .hero.center {
    text-align: center;
  }

  h1 {
    font-size: clamp(40px, 14vw, 62px);
    line-height: 0.92;
  }

  .hero.center h1 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .lead {
    font-size: 15px;
    line-height: 1.75;
    margin-top: 20px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .archive-panel {
    border-radius: 18px;
  }

  .panel-top {
    padding: 12px;
  }

  .panel-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .panel-state {
    display: none;
  }

  .panel-body {
    padding: 12px;
  }

  .corridor {
    min-height: 220px;
  }

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

  .section {
    margin-top: 58px;
  }

  .section-head {
    display: grid;
    gap: 10px;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .resume-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 98px;
    padding: 16px 16px 104px;
    text-align: center;
  }

  .footer-random,
  .copyright {
    justify-self: center;
  }

  .mobile-dock {
    position: fixed;
    z-index: 60;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(255, 211, 35, 0.2);
    border-radius: 20px;
    background: rgba(11, 13, 13, 0.91);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.45);
  }

  .mobile-dock button {
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 3px;
    border: 1px solid rgba(255, 211, 35, 0.08);
    border-radius: 15px;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    opacity: 0.68;
    font-size: 10px;
    line-height: 1.1;
  }

  .mobile-dock button .icon {
    font-size: 17px;
  }

  .mobile-dock button.active {
    opacity: 1;
    color: #070808;
    background: var(--gold);
    border-color: var(--gold);
  }
}

@media (max-width: 430px) {
  .identity-text strong {
    display: none;
  }

  .lang button {
    min-width: 34px;
    height: 28px;
    font-size: 12px;
  }

  .card-body {
    padding: 17px;
  }

  .mobile-dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 17px;
  }

  .mobile-dock button {
    min-height: 50px;
    border-radius: 13px;
  }
}

/* HTML-first page/language system */
.page {
  display: none;
}

html[data-page="projects"] #projects,
html[data-page="about"] #about,
html[data-page="showcase"] #showcase,
html[data-page="resume"] #resume {
  display: block;
  animation: pageIn 260ms ease both;
}

html[lang="en"] .lang-tr,
html[lang="tr"] .lang-en {
  display: none !important;
}

html[lang="en"] .lang-en,
html[lang="tr"] .lang-tr {
  display: inline;
}

p .lang-en,
p .lang-tr,
.lead .lang-en,
.lead .lang-tr,
.timeline-text .lang-en,
.timeline-text .lang-tr,
.resume-text .lang-en,
.resume-text .lang-tr {
  display: inline;
}

.card-media.has-image {
  background: #090b0b;
}

.card-media.has-image::after {
  display: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Keeps text placeholders readable when there is no image */
.card-media span {
  position: relative;
  z-index: 1;
}

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

.tool-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.010)),
    rgba(16, 18, 18, 0.82);
}

.tool-card h2 {
  margin-bottom: 22px;
}

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

  .tool-card {
    min-height: auto;
  }
}