@keyframes moveBubbles {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes show-with-fade {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes swing-in-top-fwd {
  0% {
    transform: rotateX(-100deg);
    transform-origin: top;
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    transform-origin: top;
    opacity: 1;
  }
}
@keyframes greenLinesAnimation {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 1;
    width: 100vw;
  }
}
body {
  background-image: url("../images/portfolio/background.png");
  background-position: top center;
  background-repeat: no-repeat;
}

section#portfolio {
  padding-top: 135px;
  position: relative;
}
section#portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0px;
  background: url("../images/app/icons/bubble-big.png");
  background-repeat: no-repeat;
  width: 175px;
  height: 151px;
  animation: moveBubbles 20s infinite;
}
section#portfolio::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 65%;
  background: url("../images/app/icons/bubble-sm.png");
  background-repeat: no-repeat;
  width: 52px;
  height: 52px;
  transform: translateX(-65%);
  animation: moveBubbles 10s infinite reverse;
}
section#portfolio .wrapper h1 {
  text-align: center;
  font-weight: 800;
  font-size: 64px;
  color: var(--darkColor);
}
section#portfolio .wrapper > p {
  text-align: center;
  color: #484344;
  font-size: 20px;
  line-height: 1.4;
  max-width: 840px;
  margin: 0 auto;
  margin-top: 35px;
}
section#portfolio .wrapper .menu-tabs {
  margin-top: 50px;
}
section#portfolio .wrapper .menu-tabs ul.project-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
}
section#portfolio .wrapper .menu-tabs ul.project-menu li {
  color: #0A0203;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  position: relative;
  max-width: 170px;
  margin-right: 60px;
  cursor: pointer;
}
section#portfolio .wrapper .menu-tabs ul.project-menu li:last-of-type {
  margin-right: 0;
}
section#portfolio .wrapper .menu-tabs ul.project-menu li::after {
  background-color: #E1E1E1;
  content: "";
  height: 1px;
  width: 100%;
  position: absolute;
  bottom: -3px;
  left: 0;
  transition: 0.3s;
}
section#portfolio .wrapper .menu-tabs ul.project-menu li.active {
  color: #00A659;
}
section#portfolio .wrapper .menu-tabs ul.project-menu li.active::after {
  background-color: #00A659;
}
section#portfolio .project-holder {
  position: relative;
  margin-top: 82px;
}
section#portfolio .project-holder::after {
  content: "";
  position: absolute;
  top: -38px;
  right: 194px;
  background: url("../images/app/icons/bubble-md.png");
  background-repeat: no-repeat;
  width: 86px;
  height: 86px;
  animation: moveBubbles 15s infinite;
  z-index: -1;
}
section#portfolio .project-holder > ul {
  display: none;
  flex-wrap: wrap;
  gap: 5px;
}
section#portfolio .project-holder > ul.show {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  transition: 0.3s;
  animation: fade-left 0.8s ease-in-out 0.2s both;
}
@keyframes fade-left {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
section#portfolio .project-holder > ul li {
  width: calc(25% - 5px);
  height: 270px;
  position: relative;
}
section#portfolio .project-holder > ul li:hover {
  cursor: pointer;
}
section#portfolio .project-holder > ul li:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.47);
  z-index: 1;
  left: 0;
  right: 0;
  z-index: 2;
}
section#portfolio .project-holder > ul li:hover .holder {
  opacity: 1;
  visibility: visible;
}
section#portfolio .project-holder > ul li:hover .holder .circle {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}
section#portfolio .project-holder > ul li > img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
section#portfolio .project-holder > ul li .holder {
  position: absolute;
  z-index: 3;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: 0.3s;
  visibility: hidden;
}
section#portfolio .project-holder > ul li .holder .circle {
  background-image: url("../images/portfolio/add-circle.png");
  width: 65px;
  height: 65px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: translate(-50%, -100%);
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transition: 0.4s;
}
section#portfolio .project-holder > ul li .holder h3 {
  color: #FFF;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  position: absolute;
  bottom: 20px;
  padding-left: 20px;
  left: 0;
}

@media screen and (max-width: 1024px) {
  section {
    overflow: hidden;
  }
  section#portfolio::before {
    display: none;
  }
  section#portfolio .wrapper > h1 {
    font-size: 28px;
    text-align: center;
    margin: 0 10px;
  }
  section#portfolio .wrapper > p {
    margin-top: 20px;
    font-size: 14px;
  }
  section#portfolio .wrapper .menu-tabs ul.project-menu {
    flex-direction: column;
  }
  section#portfolio .wrapper .menu-tabs ul.project-menu li {
    margin-bottom: 25px;
    margin-right: 0;
    width: 100%;
    max-width: unset;
  }
  section#portfolio .wrapper .menu-tabs ul.project-menu li:last-of-type {
    margin-bottom: 0;
  }
  section#portfolio .project-holder {
    margin-top: 50px;
  }
  section#portfolio .project-holder > ul li {
    width: calc(33.3333333333% - 5px);
  }
  section#portfolio .project-holder > ul li .holder .circle {
    width: 40px;
    height: 40px;
  }
  section#portfolio .project-holder > ul li .holder h3 {
    font-size: 11px;
    padding: 0 4px;
    left: 0;
    text-align: center;
    bottom: 10px;
  }
}
@media screen and (max-width: 768px) {
  section#portfolio .project-holder > ul li {
    width: calc(50% - 5px);
    height: 150px;
  }
}
