/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* ===== SECTION WRAPPER ===== */
.industry-section {
  margin-top:3rem;
  margin-bottom: 3rem;
}

/* ===== GRID LAYOUT ===== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== CARD ===== */
.industry-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);*/
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* ===== IMAGE ===== */
.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.industry-card:hover img {
  transform: scale(1.05);
}

/* ===== OVERLAY ===== */
.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
  transition: background 0.3s ease;
}

.industry-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 20%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* ===== LABEL BOX ===== */
.industry-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
}

.industry-label span {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.industry-card:hover .industry-label span {
  background-color: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
}

/* ===== RESPONSIVE: Tablet (2 columns) ===== */
@media (max-width: 900px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .industry-label span {
    font-size: 12px;
    padding: 7px 16px;
  }
}

/* ===== RESPONSIVE: Mobile (1 column) ===== */
@media (max-width: 540px) {
  .industry-section {
    padding: 24px 12px;
  }

  .industry-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .industry-card {
    aspect-ratio: 16 / 9;
  }

  .industry-label span {
    font-size: 13px;
    padding: 7px 18px;
  }
}