/* ACHIEVEMENTS */
.about__achievements {
  margin-top: 3rem;
  padding-top: 0 !important;
}
.about__achievements-container {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 5rem;
}
.about__achievements-right > p {
  margin: 1.6rem 0 2.5rem;
}
.achievements__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.achievements__card {
  width: 220px;
  padding: 1rem 3rem;
  border-radius: 1rem;
  text-align: center;
  transition: 0.3s;
}
.card-1 {
  background: #fbd138;
}
.card-1:hover {
  background: #fcc419;
  box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
}
.card-2 {
  background: #5ec576;
}
.card-2:hover {
  background: #39d15d;
  box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
}
.card-3 {
  /*background: #ff585f;*/
  background: cadetblue;
}
.card-3:hover {
  background: rgb(71, 170, 173);
  box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
}
.acheivements__icon {
  background: var(--color-danger);
  padding: 0.6rem;
  font-size: 2rem;
  display: inline-block;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.achievements__card:nth-child(2) .acheivements__icon {
  background: var(--color-success);
}
.achievements__card:nth-child(3) .acheivements__icon {
  background: blueviolet;
}
.achievements__card p {
  margin-top: 1rem;
  color: #333;
}
.achievements__card h3 {
  color: #333;
}
.about__achievements-headline {
  margin-top: 150px;
  margin-bottom: 1rem;
}

/* Technical skills*/
.technical-skills-bg {
  background-color: #5555;
  margin-bottom: 6rem;
}
.technical-skills-container {
  width: var(--container-width-lg);
  margin: 0 auto;
}
.technical-skills-title {
  margin-bottom: 1.5rem;
}
.get-to-know-tools {
  color: rgba(244, 217, 86, 0.5);
}

.technical-skills {
  display: grid;
  gap: 2rem;
  grid-template-columns: 25% 75%;
  margin-top: 2rem;
}
.left-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: #212529;
  border-radius: 1rem;
  padding-left: 4rem;
}
.left-side ul li {
  margin-bottom: 1rem;
  transition: color 0.3s ease !important;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.left-side ul li.active {
  color: rgba(244, 217, 86, 0.5);
}
.left-side ul li:hover {
  cursor: pointer;
  color: rgba(244, 217, 86, 0.5);
}
.left-side ul li {
  text-indent: -1.3em;
}
.left-side ul li strong {
  position: relative;
}

.left-side ul li strong::after {
  content: "";
  position: absolute;
  top: 2px; /* Ensure to specify "px" for the value */
  bottom: 0;
  left: 100%;
  width: 2px;
  background-color: rgba(244, 217, 86, 0.5);
  margin-left: 7px;
  height: 14px;
  transition: background-color 0.3s ease; /* Transition for the background-color property */
}

.left-side ul li:hover strong::after {
  background-color: #f4d956;
}

.left-side ul li {
  transition: background-color 0.3s ease; /* Transition for the background-color property */
}

.left-side ul li.active strong::after,
.left-side ul li.active:hover strong::after {
  /* Add :hover to ensure transition for active items */
  background-color: #f4d956;
}
.left-side {
  border: 0.5px solid rgba(244, 217, 86, 0.5); /* Add border with the specified color */
  border-radius: 10px; /* Add border radius for rounded corners */
  padding: 10px; /* Add padding to create space between the content and the border */
  box-shadow: 0 0 10px rgba(244, 217, 86, 0.2); /* Add box-shadow with the specified color and blur */
  transition: box-shadow 0.3s ease; /* Add transition for smoother effect */
}
.left-side:hover {
  box-shadow: 0 0 10px rgba(244, 217, 86, 0.4); /* Increase box-shadow on hover */
}

.right-side {
  border: 0.5px solid #212529; /* Add border with the specified color */
  border-radius: 10px; /* Add border radius for rounded corners */
  padding: 10px; /* Add padding to create space between the content and the border */
  transition: box-shadow 0.3s ease; /* Add transition for smoother effect */
}

.right-side:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); /* Increase box-shadow on hover */
}
.right-side {
  background: linear-gradient(
    to top,
    rgba(33, 37, 41, 0.2),
    rgba(244, 217, 86, 0.5)
  );
  color: #212529;
  padding: 1.5rem 2rem;
  max-height: 400px;
  overflow-y: scroll;
  border-radius: 1rem;
}
.right-side h4 {
  margin-bottom: 26px;
}
.right-side div {
  margin-top: 21px;
  min-height: 420px;
  overflow-y: auto;
}
.right-side ul li {
  margin-bottom: 0.7rem;
}

.right-side {
  border: 0.5px solid #212529;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  scrollbar-width: none; /* Hide scrollbar by default */
  overflow-y: scroll; /* Add scroll behavior */
}

.right-side:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  scrollbar-width: thin; /* Show scrollbar on hover */
}

.right-side::-webkit-scrollbar {
  width: 6px;
}

.right-side::-webkit-scrollbar-track {
  background-color: #212529;
  border-radius: 40px;
}

.right-side::-webkit-scrollbar-thumb {
  background-color: #f4d956;
  border-radius: 1rem;
}

#web-development h5 {
  font-size: 1rem;
}

.frontend-tools li {
  text-indent: -19px;
  margin-left: 43px;
}
.frontend-tools li {
  text-indent: -1.2em;
  margin-left: 2rem;
}

.right-side li {
  text-indent: -19px;
  margin-left: 43px;
}

@media screen and (max-width: 967px) {
  .right-side li {
    text-indent: -17px;
    margin-left: 36px;
  }
  .left-side {
    padding: 28px;
  }
  .left-side ul {
    margin-top: 10px;
  }
}
@media screen and (min-width: 976px) {
  .right-side ul {
    list-style: none; /* Remove default list styles */
    padding: 0; /* Remove default padding */
  }

  .right-side ul li i {
    width: 5px; /* Adjust width to ensure consistent spacing */
    margin-right: 10px; /* Add margin between icon and text */
  }
}

@media screen and (min-width: 1024px) {
  #web-development {
    position: relative;
    display: flex;
    gap: 4rem;
  }
  .web-development-heading {
    position: absolute;
    top: 0.5rem;
    left: 0;
  }
  .frontend-tools,
  .backend-tools {
    margin-top: 6rem;
  }
  .frontend-tools-heading {
    position: absolute;
    top: 4rem;
    left: 5.5%;
    transform: translateX(-50%);
  }
  .backend-tools-heading {
    position: absolute;
    top: 4rem;
    left: 54%;
    transform: translateX(-50%);
  }
} /* Adjust positions and other styles as needed */

/* MEDIA QUERY FOR TABLETS  */
@media screen and (max-width: 1024px) {
  .frontend-tools-heading {
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .backend-tools-heading {
    margin-top: 40px;
    margin-bottom: 15px;
  }

  /* ACHIEVEMENTS  */
  .about__achievements-container {
    grid-template-columns: 1fr;
  }
  .about__achievements-left {
    width: 80%;
    margin: 0 auto;
  }
  .technical-skills {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
  }
  .right-side {
    padding: 2rem 1rem;
    max-height: 700px;
  }
  .right-side li {
    margin-bottom: 1rem;
  }
}

/* ACHIEVEMENTS */
.achievements {
  max-width: 100rem;
  margin: 7rem auto 0 auto;
  background: #5555;
}

.achievements__tab-container {
  display: flex;
  justify-content: center;
}

.achievements__tab-container button {
  border-radius: 10rem;
  font-size: 18px;
  letter-spacing: 2px;
  width: 200px;
}

.achievements__tab {
  margin-right: 2.5rem;
  transform: translateY(-50%);
}

.achievements__tab span {
  margin-right: 1rem;
  font-weight: 600;
  display: inline-block;
}

.achievements__tab--1 {
  background: #f4d956;
  color: #555;
}

.achievements__tab--1:hover {
  cursor: pointer;
}
.achievements__tab--2 {
  background: #5ec576;
  color: #555;
}
.achievements__tab--2:hover {
  cursor: pointer;
}
.achievements__tab--3 {
  /*background: #ff585f;*/
  background: cadetblue;
  margin: 0;
  cursor: pointer;
}
.achievements__tab--3:hover {
  cursor: pointer;
}

.achievements__tab--active {
  transform: translateY(-70%);
}

.achievements__content {
  display: none;
  font-size: 1.7rem;
  padding: 2.5rem 7rem 6.5rem 12rem;
}

.achievements__content--active {
  display: grid;
}
.achievements__descriptions {
  padding-left: 14rem;
  padding-right: 3rem;
  margin-top: 15px;
}
.achievements__header {
  font-size: 1.7rem;
  font-weight: 500;
  align-self: center;
  margin-top: -8.5rem;
  margin-bottom: 2rem;
}
.achievements__description {
  font-size: 22px;
}
.achievements__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7rem;
  width: 10rem;
  border-radius: 50%;
  margin-top: 1rem;
  margin-right: 1rem;
}

.achievements__icon svg {
  height: 2.75rem;
  width: 2.75rem;
}

.achievements__content p {
  grid-column: 2;
  font-size: 16px;
}

.achievements__icon--1 {
  background-color: var(--color-secondary-opacity);
}

.achievements__icon--2 {
  background-color: var(--color-primary-opacity);
}

.achievements__icon--3 img {
  width: 75%;
}

.achievements__icon--1 svg {
  fill: var(--color-secondary-darker);
}

.achievements__icon--2 svg {
  fill: var(--color-primary);
}

.achievements__icon--3 svg {
  fill: var(--color-tertiary);
}

/* Adjust styles for mobile screens */
@media (max-width: 768px) {
  .achievements__tab {
    font-size: 16px;
    padding: 8px 12px;
  }
  .achievements__content {
    padding: 1rem;
  }
  .achievements__tab-container button {
    font-size: 14px;
    width: 120px;
    margin-right: 7px;
  }

  .achievements__cards {
    margin-top: 7rem;
    padding-left: 13rem;
  }
  .achievements__card {
    width: 260px;
  }

  .achievements__icon {
    font-size: 20px;
  }

  .achievements__header {
    font-size: 16px;
  }

  .achievements__descriptions p {
    font-size: 14px;
  }
  .achievements__descriptions {
    padding: 0;
    margin-top: 16rem;
    text-align: center;
    margin-bottom: 1rem;
  }
}

.background-achievements {
  position: relative;
  background-image: url("../assets/images/achievements-image.webp"); /* Replace 'your-image-url.webp' with the URL of your background image */
  background-size: 100% 100%;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 650px;
  margin-top: -3rem;
  margin-bottom: 2rem;
}
@media only screen and (max-width: 600px) {
  /* Adjustments for smaller screens */
  .background-achievements {
    background-size: cover;
  }
}

.background-achievements::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.background-achievements::after {
  content: "";
  position: absolute;
  top: 65%;
  left: 0;
  right: 0;
  padding: 8rem; /* Add padding as needed */
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Adjust the alpha (last) value to control the overlay's transparency */
  transform: translateY(-50%); /* Center vertically */
}

.achievements-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 16px;
}
.about__achievements-headline,
.about__achievements-description {
  color: #fff;
}

.see-more-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}

/* MEDIA QUERY FOR MOBILE  */
@media screen and (max-width: 600px) {
  /* ACHIEVEMENTS  */
  .achievements__cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
  .background-achievements::after {
    padding: 12rem; /* Add padding as needed */
  }
  .about__achievements-headline {
    margin-top: 190px;
  }
}
