/* Container Styling */
.technologies .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Heading */
.technologies .container .tech-head {
  color: #333333;
  font-size: 36px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* Flex Grid */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  box-sizing: border-box;
}

/* Default: 6 per row (100 / 6 = ~16.66%) */
.tech-icon {
  background-color: #f7f7f7;
  border-radius: 12px;
  padding: 20px;
  width: calc(20% - 16px);
  min-width: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  text-align: left;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.04);
}

/* Image */
.tech-icon img {
  max-height: 50px;
  max-width: 70px;
  margin-right: 10px;
}

/* Text */
.tech-icon p {
  margin: 0;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  word-break: break-word;
  font-weight: bold;
}

/* Hover effect */
.tech-icon:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

/* ✅ Medium screens: 4 per row */
@media (max-width: 1024px) {
  .tech-icon {
    width: calc(25% - 16px); /* 4 per row */
  }
}

/* ✅ Tablet: 3 per row */
@media (max-width: 768px) {
  .tech-icon {
    width: calc(33.33% - 16px); /* 3 per row */
    flex-direction: column;
    text-align: center;
  }

  .tech-icon img {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .tech-icon p {
    font-size: 14px;
  }

  .tech-head {
    font-size: 24px;
  }
}

/* ✅ Small phones: 2 per row */
@media (max-width: 500px) {
  .tech-icon {
    width: calc(50% - 16px); /* 2 per row */
  }

  .tech-icon p {
    font-size: 13px;
  }

  .tech-head {
    font-size: 20px;
  }
}
