.tech-marquee {
  position: relative;
  width: 100vw;
  margin: 8px 0 64px;
  margin-left: calc(50% - 50vw);
  padding: 25px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tech-track {
  display: flex;
  width: max-content;
  animation: tech-scroll 42s linear infinite;
}

.tech-marquee:hover .tech-track {
  animation-play-state: paused;
}

.tech-set {
  display: flex;
  align-items: center;
  gap: 52px;
  padding-right: 52px;
}

.tech-set > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #a5afbd;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.tech-set i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #111d29;
  border: 1px solid #28394a;
  color: var(--blue);
  font: 500 10px var(--mono);
  font-style: normal;
}

.tech-set .php { color: #a9b8ff; }
.tech-set .mysql { color: #56c6e8; }
.tech-set .js { color: #071018; background: #f5d547; border-color: #f5d547; }
.tech-set .html { color: #ff795e; }
.tech-set .git { color: #f07155; }
.tech-set .docker { color: #64b8ff; }
.tech-set .test { color: #65e3a9; }
.tech-set .actions { color: #7aa7ff; }
.tech-set .kotlin { color: #c68cff; }
.tech-set .sqlite { color: #74c7e9; }
.tech-set .offline { color: #53e2b1; }
.tech-set .python { color: #ffd667; }

.learning-map {
  width: min(100%, 440px);
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #0c1824, #08111a);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.map-head,
.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: #708094;
  font: 500 9px var(--mono);
  letter-spacing: 1.2px;
}

.map-head span { color: var(--green); }
.map-head span i,
.map-footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.map-body { padding: 24px 22px; }
.map-node { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding-bottom: 29px; }
.map-node:last-child { padding-bottom: 0; }
.map-node::after { content: ""; position: absolute; left: 18px; top: 34px; bottom: 3px; width: 1px; background: #263849; }
.map-node:last-child::after { display: none; }
.map-node > i { z-index: 1; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #2b4052; border-radius: 10px; background: #0e1c29; color: #738398; font: 500 9px var(--mono); font-style: normal; }
.map-node.done > i { color: var(--green); border-color: rgba(66, 228, 174, .35); }
.map-node.active > i { color: #06121b; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 25px rgba(57, 189, 246, .25); }
.map-node small { display: block; color: #607084; font: 500 8px var(--mono); letter-spacing: 1px; }
.map-node.active small { color: var(--blue); }
.map-node strong { display: block; margin: 2px 0; font-size: 14px; }
.map-node span { color: #7e8b9b; font: 400 10px var(--mono); }
.map-footer { border-top: 1px solid var(--line); border-bottom: 0; }
.map-footer i { margin: 0; animation: map-pulse 2s ease-in-out infinite; }

@keyframes tech-scroll { to { transform: translateX(-50%); } }
@keyframes map-pulse { 50% { opacity: .35; } }

@media (max-width: 700px) {
  .tech-marquee { margin-bottom: 42px; }
  .tech-set { gap: 35px; padding-right: 35px; }
  .tech-track { animation-duration: 32s; }
  .learning-map { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .tech-track { animation: none; }
  .tech-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .map-footer i { animation: none; }
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 22, 33, 0.82);
  color: #667487;
  font: 600 12px var(--sans);
  transition: border-color .25s ease, background .25s ease;
}

.language-toggle:hover {
  border-color: rgba(57, 189, 246, .42);
  background: #0d1a27;
}

.language-toggle > span { color: var(--blue); font-size: 17px; line-height: 1; }
.language-toggle b { color: var(--text); }
.language-toggle i { color: #485668; font-style: normal; }
.language-toggle em { color: #798698; font-style: normal; }
.language-toggle.is-english b { color: #798698; }
.language-toggle.is-english em { color: var(--text); }

@media (max-width: 700px) {
  .language-toggle { margin-left: auto; }
  header .nav { gap: 12px; }
}
