.tech-section {
  width: 100%;
  padding: 50px 30px;
  background: #f8fafc;
}

.tech-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */

.tech-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 25px;
}

.tech-label {
  color: #1976c9;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tech-title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}


.tech-description {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  max-width: 580px;
}

/* Main layout */

.tech-content {
  display: grid;
  grid-template-columns: 212px 1fr;
  min-height: 285px;
  margin-top: 20px;
}

/* Sidebar */

.tech-sidebar {
  border-right: 1px solid #d8d8d8;
}

.tech-tab {
  width: 100%;
  padding: 17px 0;
  padding-right: 15px;
  border: none;
  border-bottom: 1px solid #d8d8d8;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: 0.25s ease;
}

.tech-tab:first-child {
  padding-top: 5px;
}

.tech-tab:hover,
.tech-tab.active {
  color: var(--color-primary);
}

/* Technologies */

.tech-display {
  padding-left: 30px;
}

.tech-category {
  display: none;
}

.tech-category.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  margin-bottom: 20px;
}

.category-title::before {
  content: "";
  width: 5px;
  height: 28px;
  background: var(--color-primary);
  display: block;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px 12px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #d7d7d7;
}

.technology {
  min-width: 70px;
  text-align: center;
}

.technology-icon {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
}

.technology-icon svg {
  width: 34px;
  height: 34px;
  fill: #242424;
}

.technology-name {
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}

/* Simple text based icons */

.icon-text {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #242424;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #242424;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* Responsive */

@media (max-width: 1000px) {
  .technology-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .tech-section {
    padding: 40px 20px;
  }

  .tech-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tech-title {
    font-size: 34px;
  }

  .tech-content {
    grid-template-columns: 1fr;
  }

  .tech-sidebar {
    border-right: none;
    display: flex;
    overflow-x: auto;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
  }

  .tech-tab {
    min-width: max-content;
    padding: 14px 18px;
    border-bottom: none;
  }

  .tech-tab:first-child {
    padding-top: 14px;
  }

  .tech-display {
    padding-left: 0;
  }

  .technology-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .tech-title {
    font-size: 30px;
  }

  .technology-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 8px;
  }

  .technology-name {
    font-size: 13px;
  }

  .tech-description {
    font-size: 14px;
  }
}
