/* =============================================
   tech-stack.css — matches home page tp-tile design
   (smaller icons: 24px vs home's 36px)
   ============================================= */

/* ---- SECTION WRAPPER ---- */
.tech-section {
  background: transparent;
  padding: 0;
  font-family: inherit;
}
.tech-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

/* ---- HEADING ---- */
.tech-heading-wrap {
  text-align: left;
  margin-bottom: 28px;
}
.tech-main-title {
  font-family: serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  color: #005EB8;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: 0.005em;
}
.tech-main-sub {
  font-size: 14.5px;
  color: #3a4a63;
  max-width: 660px;
  margin: 0;
  line-height: 1.65;
}

/* ---- CATEGORY BLOCK ---- */
.tech-block {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 22px;
  border: none;
}
.tech-block:last-child { margin-bottom: 0; }

.tech-block-title {
  font-size: 11px;
  font-weight: 700;
  color: #005EB8;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #dde7f3;
}

/* ---- SUB-GROUP LABEL (inside a block) ---- */
.tech-sub-group {
  margin-bottom: 10px;
}
.tech-sub-group:last-child { margin-bottom: 0; }
.tech-sub-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8ea8;
  margin-bottom: 6px;
}

/* ---- GRID ---- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 6px;
}

/* ---- TILE ---- */
.tech-item {
  background: #ffffff;
  border: 1px solid #e0eaf6;
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  cursor: default;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  border-radius: 0;
}
.tech-item:hover {
  border-color: #c8dcef;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfe 100%);
  box-shadow: 0 3px 10px rgba(0, 94, 184, 0.07);
}
.tech-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.tech-item span {
  font-size: 10.5px;
  font-weight: 600;
  color: #2d3a4d;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ============================================= */
/*   DARK MODE  (body:not(.light))               */
/* ============================================= */
body:not(.light) .tech-section { background: transparent; }
body:not(.light) .tech-main-title { color: #6cb1ff; }
body:not(.light) .tech-main-sub { color: #b8c0d9; }
body:not(.light) .tech-block-title {
  color: #6cb1ff;
  border-bottom-color: rgba(255,255,255,0.08);
}
body:not(.light) .tech-sub-label { color: #6b7a8d; }
body:not(.light) .tech-item {
  background: #161b29;
  border-color: rgba(255,255,255,0.08);
}
body:not(.light) .tech-item:hover {
  background: linear-gradient(180deg, #161b29 0%, #1c2236 100%);
  border-color: rgba(108,177,255,0.28);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
body:not(.light) .tech-item span { color: #d6dcec; }
body:not(.light) .tech-item img { filter: brightness(0.95) contrast(1.05); }

/* ---- LIGHT MODE explicit ---- */
body.light .tech-section { background: transparent; }
body.light .tech-block-title { color: #005EB8; border-bottom-color: #dde7f3; }
body.light .tech-item { background: #ffffff; border-color: #e0eaf6; }
body.light .tech-item span { color: #2d3a4d; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .tech-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 5px; }
  .tech-item { min-height: 64px; padding: 8px 4px 6px; }
  .tech-item img { width: 20px; height: 20px; }
  .tech-item span { font-size: 10px; }
}
@media (max-width: 480px) {
  .tech-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; }
  .tech-item span { white-space: normal; }
}
