section.slider-projects {
  /* background: linear-gradient(45deg, rgb(46, 45, 50) 0%, rgba(79, 75, 71, 1) 35%, rgb(91, 106, 109) 100%); */
  box-shadow: #fbfbfb32 0px 0px 0px 1px;
  padding: 80px 0;
  margin-top: 150px;
  padding-block: clamp(80px, 10vh, 140px);
}
section.slider-projects.active {
  margin-top: 0;
}
section.slider-projects .container {
  flex-direction: column;
}

/* .slider-projects .projects-title {
  padding: 40px 0;
} */
.slider-projects .projects-title h2,
.contact .contact-title,
.section-about .container .sections-flex .title-about h2,
.section-soft-skills .container .title-soft-skills h2 {
  text-align: center;
  position: relative;
  display: inline-block;
  font-size: var(--font-size-primary);
  font-weight: bold;
  color: var(--text);
  margin-bottom: var(--margin-separation);
}

.slides-content {
  display: grid;
  width: 100%;
  gap: 2rem;
  padding: 40px 0;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  height: auto;
  flex-wrap: wrap;
  justify-items: center;
  /* align-items: center; */
}

.slides-content:hover .boxOn::before {
  display: none;
}

.slide-box {
  height: auto;
  border: 2px solid #ca4c03;
  position: relative;
  display: flex;
  transition: 1s;
  flex-direction: column-reverse;
}
.slide-box:hover {
  transform: scale(1.1);
  z-index: 1;
  border: transparent;
}

.slide-box img {
  width: 100%;
}

.slide-box .description-Projects {
  max-height: 30px;
  display: none;
}
.slide-box .description-Projects .contro-container-description {
  background-color: #00000048;
  padding: 8px;
  position: absolute;
  color: var(--main-font-color);
  width: 100%;
  bottom: 0;
  opacity: 0.1;
  z-index: 999;
  transition: all 1s ease-in-out;
}
.slide-box .description-Projects .contro-container-description:hover {
  background-color: #000000d0;
  opacity: 1;
}
.slide-box .description-Projects .contro-container-description a {
  cursor: pointer;
  color: #ffffff;
}
.slide-box .description-Projects .contro-container-description a h3 {
  margin-bottom: 1rem;
  font-size: smaller;
}
.slide-box .description-Projects .contro-container-description a p {
  font-size: 0.8rem;
}

.slide-box::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #000000c4;
  opacity: 1;
  transition: all 1s;
}

.slide-box:hover:before {
  opacity: 0;
}

.slide-box .details {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -10%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.slide-box .details p {
  color: var(--main-font-color);
  font-size: 1rem;
  font-weight: bold;
}
.slide-box .details .usedLanguage img {
  width: 20px;
}

.slide-box:hover .details {
  opacity: 0;
}

.card-project {
  display: flex;
  flex-direction: column;
  width: 320px;
  background: #0d1b37;
  border-radius: 14px;
  overflow: hidden;
  color: #ffffff;
  padding: 20px;
  /* font-family: Arial, Helvetica, sans-serif; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] {
  .card-project {
    background: #ecf6fe;
    color: #142552;
  }

  .card-content p {
    color: #0f2450;
  }

  .tech {
    background: #142552;
    color: #ffffff;
  }
  .tech svg path {
    fill: #ffffff;
  }
  .tech svg .path {
    fill: #142552;
  }
}
.card-image img {
  width: 100%;
  display: block;
}

.card-content {
  padding: 20px 0;
}

.card-content h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: bold;
}

.card-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #d9e2f1;
  margin-bottom: 20px;
}

.card-techs {
  display: flex;
  gap: 10px;
  /* margin-bottom: 20px; */
}

.tech {
  background: #ffffff;
  color: #0f2450;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 8px;
  border-radius: 6px;
}

.card-techs .tech svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  fill: #0f2450;
}

[data-theme="dark"] .card-techs .tech svg {
  fill: #ffffff;
}

.card-actions {
  display: flex;
  margin-top: auto;
  gap: 12px;
  /* padding: 0 x; */
}

.btn.primary {
  background-color: var(--btn-primary);
  color: #142552;
}

.btn.primary.btn-custom:hover {
  color: #142552;
}

.btn.secondary {
  background-color: rgb(42, 67, 132);
  color: #ffffff;
}

.modal-dialog.custom-widht {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.modal-dialog .modal-content,
.modal-dialog .modal-content .btn-close {
  color: #0f2450;
  background: #ecf6fe;
}
.modal-dialog .modal-content .btn-close {
  background: none;
  -webkit-mask: var(--bs-btn-close-bg) center / 1em no-repeat;
  mask: var(--bs-btn-close-bg) center / 1em no-repeat;
  background-color: #0f2450;
  opacity: 1;
}
[data-theme="dark"] .modal-dialog .modal-content .btn-close {
  background-color: #fff;
}
[data-theme="dark"] .modal-dialog .modal-content {
  background: #0f2450;
  color: #fff;
}
[data-theme="dark"] .modal-dialog .modal-content .btn-custom {
  color: #0f2450;
}

#projectThumbnails img.active {
  border: 2px solid var(--text);
  opacity: 0.9;
}
