.featured-projects-section{
  position: relative;
}

.featured-projects {
  position: relative;

  display: flex;
  max-width: 1280px;

  margin: auto;

  border-radius: 24px 8px 24px 8px;
  overflow: hidden;

  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.cyan-stripes{
  position: absolute;
  top: 0;
  left: 0; 
}
.project-categories {
  flex-grow: 1;
  width: 50%;
}

.project-previews {
  background: #0C0C0C;
  background:
    linear-gradient(54deg,
      rgba(12, 12, 12, 1) 77%,
      rgba(36, 36, 36, 1) 77%,
      rgba(36, 36, 36, 1) 82%,
      rgba(12, 12, 12, 1) 82%,
      rgba(12, 12, 12, 1) 84%,
      rgba(36, 36, 36, 1) 84%,
      rgba(36, 36, 36, 1) 86%,
      rgba(12, 12, 12, 1) 86%);
  flex-grow: 1;
  width: 50%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: relative;
}

.noise-cover{
  background: url(../img/noise.webp);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
}

.project-cat {
  background-color: rgba(0, 0, 0, 0.815);
  border-top: 8px solid #40b5ec00;
  padding: 1.3rem;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;

  cursor: pointer;

  transition: transform 0.4s ease-in-out;
}

.project-cat:hover{
  background-color: #0C0C0C;
  /* Rotate so trigger OCD : Prank easter egg*/
  transform: scale(102%) translateY(-10px) rotate(-0.3deg);
  border-top: 8px solid #40b5ecd3;
}

.cat-selected {
  border-top: 8px solid #ec4079d3;
  backdrop-filter: blur(5px);
}

.p-cat-title {
  margin: 0;
  pointer-events: none;
}

.project-description {
  max-width: 644px;

  font-size: 14px;
  line-height: 19px;
  letter-spacing: 0.05em;

  color: rgba(255, 255, 255, 0.8);
  margin: 0;

  pointer-events: none;
}

.project-preview-title {
  display: flex;
  flex-direction: column;
  align-items: end;
  padding: 1rem;
}

#preview-image {
  width: 90%;
  height: 90%;

  flex-grow: 1;
  margin: auto;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

.p1-image{
  background: url(../img/projects/Adiyogi\ Ayurveda.webp);
}

.p2-image{
  background: url(../img/projects/Tecxick\ POS.webp);
}

.p3-image{
  background: url(../img/projects/Tecxick\ POS.webp);
}

.p4-image{
  background: url(../img/projects/Tecxick\ POS.webp);
}

.p5-image{
  background: url(../img/projects/Enigma\ Prototype.webp);
}

.p6-image{
  background: url(../img/projects/Tecxick\ POS.webp);
}


.project-details {
  background: #000000;
  background: linear-gradient(0deg, 
                            rgba(0, 0, 0, 1) 60%, 
                            rgba(0, 0, 0, 0) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% - 8rem);

  padding: 4rem;
}

@media only screen and (max-width:768px) {
  .featured-projects{
    flex-direction: column-reverse;
  }
  .project-categories{
    width: 100%;
  }
  .project-previews{
    width: 100%;
    height: 500px;
  }
  .project-description{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    pointer-events: all;
  }
  .project-cat .project-description{
    -webkit-line-clamp: 1;
    pointer-events: all;
  }
}

.text-expand{
  display: inline;
}