/* =========================================================
   TECHNOLOGY STACK
   ========================================================= */

.technology-stack {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 118px 0 108px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(211, 242, 0, 0.055),
      transparent 34%
    ),
    #050505;

  border-block: 1px solid rgba(255, 255, 255, 0.055);
}

.technology-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    );

  background-size: 42px 42px;

  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85),
    transparent 76%
  );

  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85),
    transparent 76%
  );
}

/* =========================================================
   CONTAINER
   ========================================================= */

.technology-stack__container {
  position: relative;
  z-index: 2;

  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.technology-stack__header {
  width: min(100%, 820px);
  margin: 0 auto 66px;

  text-align: center;
}

.technology-stack__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 20px;

  color: #d3f200;

  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.technology-stack__eyebrow::before {
  content: "";

  width: 7px;
  height: 7px;
  flex: 0 0 auto;

  border-radius: 50%;

  background: #d3f200;

  box-shadow:
    0 0 16px rgba(211, 242, 0, 0.42);
}

.technology-stack__title {
  max-width: 850px;
  margin: 0 auto;

  color: #f7f7f5;

  font-family: "Inter", sans-serif;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.052em;

  text-wrap: balance;
}

.technology-stack__title span {
  color: #d3f200;
}

.technology-stack__description {
  max-width: 670px;
  margin: 26px auto 0;

  color: #a8a8a8;

  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;

  text-wrap: balance;
}

/* =========================================================
   MARQUEE
   ========================================================= */

.technology-stack__marquee {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 18px;

  width: 100%;
}

.technology-stack__row {
  position: relative;

  width: 100%;

  overflow: hidden;
}

.technology-stack__track {
  display: flex;
  align-items: center;
  gap: 18px;

  width: max-content;

  will-change: transform;
}

.technology-stack__track--left {
  animation: technologyStackLeft 36s linear infinite;
}

.technology-stack__track--right {
  animation: technologyStackRight 40s linear infinite;
}

.technology-stack__marquee:hover .technology-stack__track {
  animation-play-state: paused;
}

/* =========================================================
   TOOL CARDS
   ========================================================= */

.technology-stack__tool {
  position: relative;
  flex: 0 0 auto;

  width: 235px;
  height: 84px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.026),
      rgba(255, 255, 255, 0.008)
    ),
    #0d0d0d;

  border: 1px solid #242424;
  border-radius: 14px;

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.technology-stack__tool::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0;

  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(211, 242, 0, 0.11),
      transparent 58%
    );

  transition:
    opacity 220ms ease;
}

.technology-stack__tool:hover {
  transform: translateY(-3px);

  border-color: rgba(211, 242, 0, 0.34);

  background-color: #111111;

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(211, 242, 0, 0.045);
}

.technology-stack__tool:hover::before {
  opacity: 1;
}

/* =========================================================
   ALL LOGOS — SAME SIZE
   ========================================================= */

.technology-stack__logo-frame {
  position: relative;
  z-index: 2;

  width: 170px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

.technology-stack__logo-frame img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: none;
  max-height: none;

  object-fit: contain;
  object-position: center;

  opacity: 0.95;

  filter:
    grayscale(1)
    brightness(0)
    invert(1);

  transform: scale(3);
  transform-origin: center;

  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.technology-stack__tool:hover .technology-stack__logo-frame img {
  opacity: 1;

  transform: scale(2.35);
}


.technology-stack__tool--wordpress
.technology-stack__logo-frame img {
  filter:
    grayscale(1)
    brightness(0)
    invert(1);
}

/* =========================================================
   EDGE FADES
   ========================================================= */

.technology-stack__fade {
  position: absolute;

  inset-block: 0;

  z-index: 4;

  width: 130px;

  pointer-events: none;
}

.technology-stack__fade--left {
  left: -1px;

  background:
    linear-gradient(
      to right,
      #050505 8%,
      rgba(5, 5, 5, 0.82) 38%,
      transparent 100%
    );
}

.technology-stack__fade--right {
  right: -1px;

  background:
    linear-gradient(
      to left,
      #050505 8%,
      rgba(5, 5, 5, 0.82) 38%,
      transparent 100%
    );
}

/* =========================================================
   DISCLAIMER
   ========================================================= */

.technology-stack__disclaimer {
  margin: 30px auto 0;

  color: #5f5f5f;

  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;

  text-align: center;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes technologyStackLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes technologyStackRight {
  from {
    transform: translateX(calc(-50% - 9px));
  }

  to {
    transform: translateX(0);
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {
  .technology-stack {
    padding: 94px 0 88px;
  }

  .technology-stack__container {
    width: min(100% - 36px, 900px);
  }

  .technology-stack__header {
    margin-bottom: 52px;
  }

  .technology-stack__title {
    font-size: clamp(38px, 7vw, 60px);
  }

  .technology-stack__tool {
    width: 210px;
    height: 76px;

    padding: 10px 16px;
  }

  .technology-stack__logo-frame {
    width: 150px;
    height: 46px;
  }

  .technology-stack__logo-frame img {
    transform: scale(1.65);
  }

  .technology-stack__tool:hover .technology-stack__logo-frame img {
    transform: scale(1.72);
  }

  .technology-stack__fade {
    width: 80px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .technology-stack {
    padding: 78px 0 72px;
  }

  .technology-stack__container {
    width: min(100% - 24px, 560px);
  }

  .technology-stack__header {
    margin-bottom: 42px;

    text-align: left;
  }

  .technology-stack__eyebrow {
    margin-bottom: 16px;

    font-size: 10px;
  }

  .technology-stack__title {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.045em;

    text-wrap: initial;
  }

  .technology-stack__description {
    margin-top: 20px;

    font-size: 15px;
    line-height: 1.68;

    text-wrap: initial;
  }

  .technology-stack__marquee {
    width: calc(100% + 24px);
    margin-left: -12px;

    gap: 14px;
  }

  .technology-stack__track {
    gap: 12px;
  }

  .technology-stack__track--left {
    animation-duration: 31s;
  }

  .technology-stack__track--right {
    animation-duration: 35s;
  }

  .technology-stack__tool {
    width: 184px;
    height: 66px;

    padding: 8px 14px;

    border-radius: 12px;
  }

  .technology-stack__logo-frame {
    width: 132px;
    height: 40px;
  }

  .technology-stack__logo-frame img {
    transform: scale(1.5);
  }

  .technology-stack__tool:hover .technology-stack__logo-frame img {
    transform: scale(1.56);
  }

  .technology-stack__fade {
    width: 48px;
  }

  .technology-stack__disclaimer {
    max-width: 280px;
    margin-top: 24px;

    font-size: 10px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .technology-stack__track {
    animation: none !important;
    transform: none !important;
  }

  .technology-stack__row {
    overflow-x: auto;

    scrollbar-width: none;
  }

  .technology-stack__row::-webkit-scrollbar {
    display: none;
  }
}