.stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 10px;
  box-sizing: border-box;
}

.technology {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: transform 0.5s ease;
}

/* Only apply hover effects on devices that support hover */
@media (hover: hover) {
  .technology:hover {
    transform: scale(1.02);
  }
}

.technology .name {
  font-size: 20px;
  align-self: flex-start;
  margin: 15px;
  text-decoration: underline;
  font-weight: bold;
}

.bar {
  background-color: rgba(15, 32, 39, 0.6);
  width: 100%;
  height: 30px;
  border-radius: 30px;
  border: 1px solid rgba(70, 252, 241, 0.3);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.progress {
  position: relative;
  top: -30px;
  width: 0%;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(15, 32, 39, 0.9);
  font-size: 18px;
  font-weight: 700;
  border-radius: 30px;
  transition: 1s ease;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(70, 252, 241, 0.4);
}

/* Green for high values */
.progress[style*="width: 8"],
.progress[style*="width: 9"],
.progress[style*="width: 100"] {
  background: linear-gradient(
    to right,
    rgba(12, 206, 107, 0.7),
    rgba(0, 255, 128, 0.9)
  );
  border: 1px solid rgba(0, 255, 128, 0.4);
}

/* Orange for medium values */
.progress[style*="width: 4"],
.progress[style*="width: 5"],
.progress[style*="width: 6"],
.progress[style*="width: 7"] {
  background: linear-gradient(
    to right,
    rgba(255, 153, 0, 0.7),
    rgba(255, 173, 51, 0.9)
  );
  border: 1px solid rgba(255, 173, 51, 0.4);
}

/* Red for low values */
.progress[style*="width: 1"],
.progress[style*="width: 2"],
.progress[style*="width: 3"] {
  background: linear-gradient(
    to right,
    rgba(255, 61, 61, 0.7),
    rgba(255, 102, 102, 0.9)
  );
  border: 1px solid rgba(255, 102, 102, 0.4);
}

/* Add a subtle shine effect */
.progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  border-radius: 30px 30px 0 0;
}

/* Media query adjustments */
@media screen and (min-width: 768px) {
  .bar,
  .progress {
    height: 35px;
  }

  .progress {
    top: -35px;
    font-size: 22px;
  }
}

.technology hr {
  width: 100%;
  height: 2px;
  border: none;
  margin: 15px 0;
}

/* Media queries for larger screens */
@media screen and (min-width: 480px) {
  .progress {
    font-size: 20px;
  }
}

@media screen and (min-width: 768px) {
  .stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .technology {
    width: 90%;
  }

  .technology .name {
    font-size: 22px;
    margin: 20px;
  }

  .bar,
  .progress {
    height: 35px;
  }

  .progress {
    top: -35px;
    font-size: 22px;
  }
}

@media screen and (min-width: 992px) {
  .technology {
    width: 80%;
  }

  .technology .name {
    font-size: 24px;
    margin: 25px;
  }

  .progress {
    font-size: 25px;
  }
}

@media screen and (min-width: 1200px) {
  .technology {
    width: 45%;
    margin: 0 2.5% 30px;
  }
}
