.home-technologies {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  color: var(--theme-text, #0D1A34);
  background: transparent;
}

/* A transição de Projetos para Ferramentas e práticas é contínua, sem divisor horizontal. */
.home-page-v2 .home-projects-section + .home-technologies {
  border-top: 0 !important;
  background-image: none !important;
}

.home-technologies .container {
  max-width: 1220px;
}

.home-technologies__heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.home-technologies .home-technologies__heading .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--theme-border, rgba(52, 64, 85, .16)) 88%, #BFD0F8 12%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 90%, #DDE8FF 10%);
  color: #274B8F;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-technologies .home-technologies__heading .section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #68B8AD;
  box-shadow: 0 0 0 5px color-mix(in srgb, #68B8AD 14%, transparent);
}

.home-technologies__heading p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--theme-text-soft, #0D1A34);
  font-size: 1rem;
  line-height: 1.65;
}

.home-technologies__layout {
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr);
  gap: 1.25rem;
  align-items: stretch;
}

.home-technologies__detail {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--theme-border, rgba(13, 26, 52, .14));
  border-radius: 22px;
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 88%, transparent);
  box-shadow: var(--theme-shadow-soft, 0 14px 38px rgba(13, 26, 52, .08));
}

.home-technologies__detail > span:first-child {
  color: var(--theme-muted, #3D485C);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .76rem;
  font-weight: 800;
}

.home-technologies__detail-symbol {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 2rem 0 1.3rem;
  border: 1px solid var(--theme-border-strong, rgba(13, 26, 52, .24));
  border-radius: 18px;
  background: color-mix(in srgb, var(--theme-surface-muted, #E7EBF0) 72%, transparent);
  color: var(--theme-text, #0D1A34);
  font: 800 1.3rem 'IBM Plex Mono', monospace;
}

.home-technologies__detail h3 {
  margin: 0 0 .5rem;
  color: var(--theme-text, #0D1A34);
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  letter-spacing: -.04em;
}

.home-technologies__detail p {
  max-width: 34ch;
  margin: 0;
  color: var(--theme-text-soft, #0D1A34);
  line-height: 1.65;
}

.home-technologies__detail-footer {
  display: grid;
  gap: .25rem;
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--theme-border, rgba(13, 26, 52, .14));
}

.home-technologies__detail-footer strong {
  color: var(--theme-muted, #3D485C);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-technologies__detail-footer span {
  color: var(--theme-text, #0D1A34);
}

.home-technologies__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
}

.home-technologies__tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .48rem;
  min-width: 0;
  min-height: 176px;
  padding: .8rem .35rem;
  cursor: pointer;
  border: 1px solid var(--theme-border, rgba(13, 26, 52, .14));
  border-radius: 18px;
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 84%, transparent);
  color: var(--theme-text, #0D1A34);
  box-shadow: none;
  font: inherit;
  text-align: center;
  transition:
    transform 240ms var(--ls-motion-enter, cubic-bezier(0.05, .7, .1, 1)),
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 240ms ease;
}

.home-technologies__tile:hover {
  border-color: var(--theme-border-strong, rgba(13, 26, 52, .24));
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 96%, transparent);
  box-shadow: 0 14px 34px rgba(13, 26, 52, .08);
  transform: translateY(-4px) scale(1.01);
}

.home-technologies__tile.is-active {
  border-color: var(--theme-border-strong, rgba(13, 26, 52, .24));
  background: color-mix(in srgb, var(--theme-surface-strong, #F8FAFC) 96%, var(--theme-surface-muted, #E7EBF0) 4%);
  box-shadow: 0 12px 30px rgba(13, 26, 52, .075);
}

.home-technologies__tile.is-active .home-technologies__tile-icon {
  transform: translateY(-2px) scale(1.04);
}

.home-technologies__tile:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-text, #0D1A34) 34%, transparent);
  outline-offset: 3px;
}

.home-technologies__tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--theme-surface-muted, #E7EBF0) 76%, transparent);
  color: var(--theme-text, #0D1A34);
  font: 800 .94rem 'IBM Plex Mono', monospace;
  transition: transform 240ms var(--ls-motion-enter, cubic-bezier(0.05, .7, .1, 1));
}

.home-technologies__tile-icon img {
  display: block;
  transform: scale(1.6);
  transform-origin: center;
}

.home-technologies__detail-symbol img {
  display: block;
  transform: scale(2);
  transform-origin: center;
}

.home-technologies__tile strong {
  overflow-wrap: anywhere;
  color: var(--theme-text, #0D1A34);
  font-size: .88rem;
  line-height: 1.2;
}

.home-technologies__tile small {
  padding: .25rem .5rem;
  border: 1px solid var(--theme-border, rgba(13, 26, 52, .14));
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface-muted, #E7EBF0) 68%, transparent);
  color: var(--theme-muted, #3D485C);
  font-size: .67rem;
}

html[data-theme="dark"] .home-technologies .home-technologies__heading .section-kicker {
  border-color: color-mix(in srgb, var(--theme-border, rgba(248, 250, 252, .14)) 82%, #B0A9F1 18%);
  background: color-mix(in srgb, var(--theme-surface-strong, #263142) 88%, #B0A9F1 12%);
  color: #F8FAFC;
}

html[data-theme="dark"] .home-technologies__tile.is-active {
  border-color: var(--theme-border-strong, rgba(248, 250, 252, .22));
  background: color-mix(in srgb, var(--theme-surface-strong, #263142) 95%, var(--theme-surface-muted, #313D4E) 5%);
}

@media (max-width: 1000px) {
  .home-technologies__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-technologies__layout {
    grid-template-columns: 1fr;
  }

  .home-technologies__detail {
    min-height: 290px;
  }

  .home-technologies__detail-symbol {
    margin: 1rem 0;
  }

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

  .home-technologies__tile {
    min-height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-technologies__tile,
  .home-technologies__tile-icon {
    transition: none;
  }

  .home-technologies__tile:hover,
  .home-technologies__tile.is-active .home-technologies__tile-icon {
    transform: none;
  }
}

/* Em Competências, o componente faz parte do fluxo da página e não precisa do espaçamento de seção da Home. */
.competencies-technologies {
  margin-top: clamp(42px, 5vw, 64px);
  padding: clamp(34px, 4vw, 52px) 0 0;
}

.competencies-technologies .home-technologies__heading {
  margin-bottom: 1.75rem;
}

@media (max-width: 720px) {
  .competencies-technologies {
    margin-top: 36px;
    padding-top: 32px;
  }
}

/* Ícones de marca em suas cores originais, sem escala herdada de assets 16px. */
.home-technologies__tile-icon img[src*="/devicon/"] {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: none;
}
.home-technologies__detail-symbol img[src*="/devicon/"] {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transform: none;
}
