.technologies-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  border-bottom: 1px solid rgba(97, 213, 232, 0.14);
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(116, 151, 181, 0.18), transparent 25rem),
    radial-gradient(circle at 90% 80%, rgba(0, 153, 255, 0.11), transparent 28rem),
    linear-gradient(160deg, #0d1d2b 0%, #06111b 45%, #020910 72%, #061a2b 100%);
}

.technologies-heading {
  max-width: 42rem;
  margin: 0 auto 2.8rem;
}

.technologies-eyebrow {
  margin-bottom: 0.7rem;
  color: #2aaeff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.technologies-heading h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
}

.technologies-heading > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.technologies-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.tech-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 12rem;
  padding: 1.35rem 0.75rem 1.15rem;
  border: 1px solid rgba(42, 174, 255, 0.3);
  border-radius: 0.75rem;
  background: rgba(7, 21, 34, 0.75);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.18);
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tech-card::after {
  position: absolute;
  top: -70%;
  left: -130%;
  width: 70%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(97, 213, 232, 0.12), transparent);
  content: "";
  transform: rotate(18deg);
  transition: left 0.7s ease;
}

.tech-card:hover::after {
  left: 150%;
}

.tech-card:hover {
  border-color: rgba(42, 174, 255, 0.9);
  box-shadow: 0 0.8rem 2rem rgba(0, 139, 255, 0.16);
  transform: translateY(-0.3rem);
}

.tech-card img {
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1rem;
  object-fit: contain;
}

.tech-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.tech-card p {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.motion-reveal {
  opacity: 0;
  transform: translateY(1.8rem);
  transition:
    opacity 0.75s var(--motion-delay, 0ms) ease,
    transform 0.75s var(--motion-delay, 0ms) cubic-bezier(0.2, 0.75, 0.25, 1);
}

.motion-reveal.motion-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .technologies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .technologies-section {
    padding: 5rem 0;
  }

  .technologies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .tech-card {
    min-height: 10.5rem;
    padding: 1.1rem 0.5rem;
  }

  .tech-card img {
    width: 3.5rem;
    height: 3.5rem;
  }
}
