/* ==========================================================================
   Industries section
   ========================================================================== */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.industry-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base) var(--ease-out);
  /* A slow, gentle bob — each tile is offset with a negative delay so
     they're already mid-cycle at different points on load, rather than
     all bobbing in lockstep. Pauses on hover so it feels like the card
     settles when you reach for it. */
  animation: industry-float 4.6s ease-in-out infinite;
}

.industry-tile:nth-child(1) { animation-delay: 0s; }
.industry-tile:nth-child(2) { animation-delay: -0.9s; }
.industry-tile:nth-child(3) { animation-delay: -1.8s; }
.industry-tile:nth-child(4) { animation-delay: -2.7s; }
.industry-tile:nth-child(5) { animation-delay: -3.6s; }

@keyframes industry-float {
  0%, 100% {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
  }
}

.industry-tile:hover {
  animation-play-state: paused;
  background: rgba(90, 55, 195, 0.08);
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  .industry-tile {
    animation: none;
  }
}

.industry-tile h3 {
  font-size: 0.98rem;
  color: var(--color-indigo-deep);
}

.industry-icon {
  background: var(--color-bg);
  color: var(--color-purple-mid);
  box-shadow: var(--shadow-sm);
}

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

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