/* Tech stack tiles on custom software page. Self-hosted. Halo-compatible. */
.cc-tech-group {
  margin: 2rem 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1a2e;
}
.cc-tech-group:first-child {
  margin-top: 0;
}
.cc-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .cc-tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cc-tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cc-tech-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 8.25rem;
  padding: 1.15rem 0.75rem 1rem;
  text-align: center;
  will-change: transform;
}
.cc-tech-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.7rem;
}
.cc-tech-logos img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.cc-tech-logos.cc-tech-logos--multi {
  width: 48px;
}
.cc-tech-logos.cc-tech-logos--multi img {
  width: 28px;
  height: 28px;
}
.cc-tech-name {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1a1a2e;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cc-tech-tile {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
  .cc-tech-tile:hover,
  .cc-tech-tile.is-tilting {
    /* Halo data-tilt sets transform inline; this adds a gentle float when tilt is not applied */
  }
  .cc-tech-grid:not([data-tilt]) .cc-tech-tile:hover {
    transform: perspective(900px) rotateX(4deg) translateY(-4px);
  }
  .cc-tech-logos img {
    transition: transform 0.4s ease;
  }
  .cc-tech-tile:hover .cc-tech-logos img {
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc-tech-tile,
  .cc-tech-logos img {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}
