/* Industries Section */

.industries-section {
  --cyan: #00dcca;
  --black: #080d0c;
  background: #ffffff;
  color: var(--black);
  padding: 100px 0;
  font-family: 'DM Sans', sans-serif;
}

.industries-container {
  width: min(1180px, 90%);
  margin: auto;
}

/* Heading */

.industries-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 45px;
}

.industries-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #009e91;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.industries-label i {
  width: 25px;
  height: 2px;
  background: var(--cyan);
}

.industries-heading h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.1;
  margin: 22px 0 0;
}

.industries-heading h2 span {
  color: #00bfae;
}

.industries-heading p {
  color: #68736f;
  font-size: 16px;
  line-height: 1.8;
  text-align: right;
  margin-bottom: 5px;
}

/* Grid */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #dfe7e4;
  border-left: 1px solid #dfe7e4;
}

.industry-item {
  position: relative;
  /* min-height: 20px; */
  padding: 10px 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--black);
  text-decoration: none;
  border-right: 1px solid #dfe7e4;
  border-bottom: 1px solid #dfe7e4;
  background: #fff;
  overflow: hidden;
  transition: background .35s ease;
}

.industry-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateY(101%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

.industry-item:hover::before {
  transform: translateY(0);
}

.industry-number {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: #89948f;
  font-weight: 700;
  letter-spacing: 1px;
}

.industry-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 50px;
}

.industry-icon {
  flex-shrink: 0;
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  border: 1px solid #dce7e3;
  background: #f3faf8;
  border-radius: 13px;
  color: #00a99a;
  font-size: 27px;
  transition: .35s;
}

.industry-content h3 {
  flex: 1;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

.industry-arrow {
  color: #00bfae;
  font-size: 21px;
  transition: .3s;
}

.industry-item:hover .industry-icon {
  background: #080d0c;
  color: var(--cyan);
  border-color: #080d0c;
  transform: rotate(-7deg);
}

.industry-item:hover .industry-arrow {
  transform: translate(4px, -4px);
  color: #080d0c;
}

.industry-item:hover .industry-number {
  color: #39736d;
}

/* Bottom CTA */

.industries-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.bottom-message {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #68736f;
  font-size: 15px;
}

.cyan-dot {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px #00dcca80;
}

.industries-bottom a {
  color: #009e91;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

.industries-bottom a span {
  display: inline-block;
  margin-left: 7px;
  transition: .3s;
}

.industries-bottom a:hover span {
  transform: translate(4px, -4px);
}

/* Entrance animation */

.industry-item {
  opacity: 0;
  transform: translateY(22px);
  animation: industryReveal .65s ease forwards;
}

.industry-item:nth-child(1) { animation-delay: .05s; }
.industry-item:nth-child(2) { animation-delay: .12s; }
.industry-item:nth-child(3) { animation-delay: .19s; }
.industry-item:nth-child(4) { animation-delay: .26s; }
.industry-item:nth-child(5) { animation-delay: .33s; }
.industry-item:nth-child(6) { animation-delay: .40s; }
.industry-item:nth-child(7) { animation-delay: .47s; }
.industry-item:nth-child(8) { animation-delay: .54s; }

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

/* Tablet */

@media(max-width: 900px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-item {
    min-height: 165px;
  }
}

/* Mobile */

@media(max-width: 575px) {
  .industries-section {
    padding: 70px 0;
  }

  .industries-heading {
    display: block;
  }

  .industries-heading h2 {
    font-size: 39px;
    letter-spacing: -2px;
  }

  .industries-heading p {
    text-align: left;
    margin-top: 17px;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-item {
    min-height: 145px;
    padding: 18px 12px;
  }

  .industry-content {
    gap: 9px;
    flex-wrap: wrap;
  }

  .industry-icon {
    width: 39px;
    height: 39px;
    font-size: 20px;
  }

  .industry-content h3 {
    font-size: 12px;
  }

  .industry-arrow {
    font-size: 16px;
  }

  .industries-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media(prefers-reduced-motion: reduce) {
  .industry-item {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
