#portfolio {
  scroll-margin-top: 125px;
  margin: 0 auto;
  padding-bottom: 220px;
  margin-bottom: -220px;
  background-image: url("../assets/imgs/portfolio-green-shadow1.png"), url("../assets/imgs/portfolio-blue-shadow1.png");
  background-repeat: no-repeat;
  background-position: left -530px bottom -20px, right -450px top -20px;
}

#portfolio {
  position: relative;
  z-index: 200;
  overflow: visible;
}

#portfolio-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
}

#portfolio-header-content {
  color: white;
  margin-bottom: 32px;
}

#portfolio-headline {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

#portfolio-seperator-div {
  width: 68px;
  height: 0;
  border: none;
  border-top: 4px solid #9747ff;
}

#portfolio-headline span {
  font-size: 90px;
  font-weight: 700;
  line-height: 120%;
}

#portfolio-description span {
  font-size: 18px;
  line-height: 120%;
  max-width: 473px;
  display: block;
  justify-content: end;
}

#portfolio-description {
  margin-left: calc(68px + 32px);
}

#portfolio-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 0px 93px 0px 93px;
  position: relative;
  z-index: 2;
}

.box {
  border: 1px solid #70e61c;
  border-radius: 15px;
  position: relative;
  background-color: rgb(20, 29, 47);
  overflow: hidden;
}

.box img {
  display: block;
  width: 100%;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 29, 47, 0.6);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.2s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  pointer-events: none;
}

.box:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.portfolio-overlay-content {
  padding: 24px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-overlay-content h3 {
  margin: 0;
  font-size: 28px;
  line-height: 120%;
}

.portfolio-overlay-content p {
  margin: 0;
  font-size: 16px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.9);
}

.portfolio-tech {
  color: #70e61c;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.portfolio-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.portfolio-btn {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 120%;
  border: 1px solid transparent;
}

.portfolio-btn.primary {
  background: #8a4dff;
  color: white;
  border: 1px solid #8a4dff;
}

.portfolio-btn.ghost {
  border-color: #1ce6df;
  color: #1ce6df;
  background: transparent;
}

@media (max-width: 1285px) {
  #portfolio-content {
    z-index: 2;
  }

  #portfolio-headline span {
    font-size:48px;
    padding-right: 16px;
  }

  #portfolio-description span {
    font-size: 16px;
    margin-left: 69px;
  }

  #portfolio-headline {
    gap: 8px;
  }

  #portfolio-description {
   margin: 0;
   padding: 0px 8px;
  }

  #portfolio-showcase {
    padding: 0px 16px 0px 16px;
    gap: 16px;
  }
}

@media (max-width: 450px) {
 .portfolio-overlay-content {
  padding: 0 !important;
}
}