.games-section {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  margin: 0;
  padding-bottom: 2rem;
  padding-top: 3rem;
  box-sizing: border-box;
}

.games-container {
  margin-top: 3rem;
}

.games {
  display: grid;
  gap: 20px;
  justify-content: center;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.game-item {
  padding: 1rem 1rem;
  margin: 0.5rem 0.5rem;
  border: 1px solid #2b2a2a;
  border-radius: 10px;
  position: relative;
  background-color: #111;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.game-item:hover {
  transform: translateY(-16px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.game-item img {
  display: block;
  margin: 0 auto;
  width: 300px;
  height: 200px;
  object-fit: cover;
  justify-content: center;
  align-items: center;
}

.game-item h2 {
  color: #fff;
  font-size: 17px;
  letter-spacing: 1px;
  margin: 15px auto;
}

.game-item h2:hover {
  color: var(--color-dark-orange);
  transition: 0.8s;
  cursor: pointer;
}

.game-item p {
  color: #999;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 15px auto;
}

.game-item a {
  display: inline-flex;
  margin-top: 1rem;
  margin-right: 8px;
  padding: 4px 8px;
}

.game-item a h2 {
  margin: 0;
}

@media screen and (max-width:1080px) {
  .games {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width:768px) {
  .games {
    grid-template-columns: 1fr;
  }
}

.tech-stack-section {
  background-color: #111;
  color: #fff;
  text-align: center;
  width: 100%;
  height: auto;
  margin: 0;
  padding-bottom: 2rem;
  padding-top: 3rem;
  box-sizing: border-box;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: start;
  align-items: start;
}

.stack-group {
  margin-top: 3rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.stack-group h3 {
  color: var(--color-pastel-orange);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.25rem;
  border: 2px solid var(--color-pastel-orange);
  border-radius: 10px;
  user-select: none;
  transition: color 0.3s ease;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
}

.stack-item {
  background-color: #1c1c1c;
  padding: 1.1rem 1.3rem;
  border-radius: 10px;
  font-weight: 600;
  color: #bbb;
  border: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

@media (max-width: 768px) {
  .stack-group h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .stack-grid {
    grid-template-columns: 1fr;
    gap: 1rem 1rem;
  }

  .stack-item {
    padding: 1rem;
  }
}


.spa-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: var(--color-orange-red);
  color: white;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  /* makes it feel like a pill CTA */
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.spa-link::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  top: var(--y, 50%);
  left: var(--x, 50%);
  transition: top 0.1s, left 0.1s;
}

.spa-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-20deg);
  transition: left 0.6s ease-in-out;
}

.spa-link:hover::after {
  left: 120%;
}

.spa-link i {
  transition: transform 0.3s ease;
}

.spa-link:hover {
  background-color: var(--color-dark-orange);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.5);
}

.spa-link:hover i {
  transform: translateX(6px);
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: transparent;
  color: var(--color-dark-orange);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--color-dark-orange);
  border-radius: 20px;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.link-pill i {
  transition: transform 0.4s ease;
}

.link-pill:hover {
  background-color: var(--color-dark-orange);
  color: white;
  border-color: var(--color-dark-orange);
}

.link-pill:hover i {
  transform: translateX(4px);
}