/* --- Tech stack orbit (two-level) --- */

.skills-tech-stack { padding: 24px 0; }
.skills-tech-stack--compact { padding: 0; }

.skills-tech-stack__wrap { max-width: 960px; margin: 0 auto; }

.skills-tech-stack__kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 12px;
}

.skills-tech-stack__title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 700;
  color: inherit;
}

.skills-tech-stack__orbit {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: visible;
}

/* layers */
.skills-tech-stack__layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 350ms ease, transform 350ms ease, filter 350ms ease;
}

.skills-tech-stack__layer--sub {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.skills-tech-stack.is-selected .skills-tech-stack__layer--main {
  filter: blur(4px);
  opacity: 0.45;
  transform: scale(0.92);
  pointer-events: none;
}

.skills-tech-stack.is-selected .skills-tech-stack__layer--sub {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* core */
.skills-tech-stack__core {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.22), rgba(99,102,241,0.06));
  border: 1px solid rgba(99,102,241,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-align: center;
}

.skills-tech-stack__coreIcon { font-size: 26px; }

.skills-tech-stack__core--back {
  cursor: pointer;
  gap: 2px;
  flex-direction: column;
  padding-top: 6px;
}

.skills-tech-stack__coreText {
  font-size: 11px;
  opacity: 0.75;
}

.skills-tech-stack__coreText{
  display:block;
  margin-top:4px;
  font-size:12px;
  font-weight:600;
  line-height:1.1;
  color: #f5f5f5;
}

.skills-tech-stack__coreSubtext{
  display:block;
  margin-top:2px;
  font-size:10px;
  opacity:.75;
  line-height:1.1;
  color: #f5f5f5;
}

.skills-tech-stack__hint{
  margin-top:18px;
  text-align:center;
  font-size:14px;
  opacity:.75;
  color: #f5f5f5;
}

/* lines */
.skills-tech-stack__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.skills-tech-stack__lines line {
  stroke: rgba(0,0,0,0.18);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  transition: stroke 200ms ease, opacity 200ms ease;
}

.skills-tech-stack__lines line.is-hovered {
  stroke: rgba(99,102,241,0.45);
  opacity: 1;
}

/* items */
.skills-tech-stack__item {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.14);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);

  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease, opacity 250ms ease;

  z-index: 5;
  outline: none;
}

.skills-tech-stack__item:focus-visible {
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25), 0 8px 20px rgba(0,0,0,0.08);
}

.skills-tech-stack__icon { font-size: 20px; font-weight: 700; }

.skills-tech-stack__label {
  position: absolute;
  bottom: -34px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 10px;
  padding: 2px 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
  pointer-events: none;
}

.skills-tech-stack__item.is-hovered {
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1.18);
  z-index: 20;
}

.skills-tech-stack__item.is-hovered .skills-tech-stack__label {
  opacity: 1;
  transform: translateY(0px);
}

.skills-tech-stack__item--category { width: 68px; height: 68px; }
.skills-tech-stack__item--tech { width: 60px; height: 60px; }

.is-hidden { display: none; }

@media (prefers-color-scheme: dark) {
  .skills-tech-stack__lines line { stroke: rgba(255,255,255,0.20); }

  .skills-tech-stack__item {
    background: rgba(20,20,20,0.82);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
  }

  .skills-tech-stack__label {
    background: rgba(20,20,20,0.92);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
  }
}
