/* Section wrapper */
.technologies {
  background: var(--bg-section);
  color: var(--text-main);
}

.technologies__container {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .technologies__container {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }
}

/* Header */

.technologies__header {
  max-width: 560px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.technologies.is-ready .technologies__header {
  opacity: 1;
  transform: translateY(0);
}

.technologies__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.technologies__title {
  font-size: 2.2rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text-heading);
}

@media (min-width: 768px) {
  .technologies__title {
    font-size: 2.5rem;
  }
}

.technologies__title span {
  display: block;
}

/* Marquee rows */

.technologies__marquee {
  position: relative;
  overflow: hidden;
}

.technologies__marquee + .technologies__marquee {
  margin-top: 1.75rem;
}

/* Edge fade */
.technologies__marquee::before,
.technologies__marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.technologies__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-section), transparent);
}

.technologies__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-section), transparent);
}

/* Tracks */

.technologies__track {
  display: inline-flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  will-change: transform;
}

.technologies__track--left {
  animation: marquee-left 30s linear infinite;
}

.technologies__track--right {
  animation: marquee-right 30s linear infinite;
}

/* Pause on hover (JS toggles .is-paused on parent) */
.technologies__marquee.is-paused .technologies__track {
  animation-play-state: paused;
}

/* Cards */

.tech-card {
  display: inline-flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 260px;
  max-width: 320px;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-main);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.tech-card:hover {
  border-color: var(--accent);
  background-color: #20211f;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.tech-card__icon {

  width: 40px;
  height: 40px;

}

.tech-card__icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.tech-card__content {
  flex: 1 1 auto;
}

.tech-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.tech-card__desc {
  margin: 0;
  font-size: 0.75rem;

  color: var(--text-muted);
}

/* Animations */

@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Responsive tweaks */

@media (max-width: 767.98px) {
  .technologies__container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .tech-card {
    min-width: 220px;
    padding: 1.4rem 1.3rem 1.25rem;
  }

  .technologies__title {
    font-size: 1.9rem;
  }

  .tech-card__title {
    font-size: 1rem;
  }

  .tech-card__desc {
    font-size: 0.9rem;
  }
}
