.projectsContent {
  width: 100%;

  max-width: 1920px;
  flex: 1;
  box-sizing: border-box;
  padding: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.closeBtn {
  position: absolute;
  top: 56px;
  right: 56px;
  width: 40px !important;
  height: 40px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: var(--main-color);
  border: solid;
  border-color: var(--secondary-color);
  border-radius: 100px;
}

.projectsHeadlineContainer {
  width: 100%;
  position: relative;
}

.projectsHeadline {
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  padding: 10px;
}

.projectsHeadline p,
h1 {
  margin: 0;
}

.projectsHeadline h1 {
  font-size: 72px;
  font-weight: 600;
}

.dividerContainer {
  width: 100%;
  height: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 20px;
}

.divider {
  width: 25%;
  height: 2px;
  background-color: var(--main-color);
  border-radius: 30px;
  transition: background-color 0.8s ease-in-out, height 0.8s ease-in-out,
    width 0.8s ease-in-out;
  animation: divide 0.8s ease-in-out forwards;
}

@keyframes divide {
  0% {
    height: 2px;
    width: 25x;
    background-color: var(--main-color);
  }

  100% {
    height: 6px;
    width: 100%;
    background-color: var(--secondary-color);
  }
}

.projects {
  width: 100%;
  display: flex;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.projectListContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projectListContainer h2 {
  font-size: 32px;
}

.projectList {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 25px;
  flex-wrap: wrap;
}

.projectCard {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.projectCard img {
  width: 400px;
  height: 300px;
  box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.2);
  /* border: solid;
border-width: 0.5px;
border-color: var(--main-color); */
  border-radius: 12px;
}

.projectCard:hover {
  transform: scale(1.05);
}

/* .projectCard:active {
    transform: scale(0.95);
} */

.projectsOverlay {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.811);

  z-index: 11;
}

.dnone {
  display: none;
}

.viewContainer {
  width: 1200px;
  height: 750px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: white;
  border-radius: 30px;
  padding: 56px;
  gap: 56px;
}

.viewContent {
  width: 100%;
  height: 700px;
  display: flex;
  justify-content: space-between;

  gap: 20px;

  border-radius: 30px;
  box-sizing: border-box;
}

.projectImage {
  min-width: 700px;
  max-width: 700px;
  max-height: 500px;
  min-height: 500px;

  border-radius: 30px;
  box-shadow: 0px 2px 10px 0 rgba(0, 0, 0, 0.2);
}

.projectDetails {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 25px 56px;
  border-radius: 30px;
  box-shadow: 0px 2px 10px 0 rgba(0, 0, 0, 0.2);
  gap: 10px;
}

.detailsBtn {
  position: absolute;
  width: 100% !important;
  max-width: 200px;
  font-size: 18px;
  top: 48px !important;
  left: unset !important;
  right: 48px !important;
  background-color: transparent;
  border: solid;
  border-color: var(--secondary-color) !important;
  color: var(--main-color);
  /* animation: puls 2s ease-in-out infinite; */
}

@keyframes puls {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.detailsHeadline {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.detailsHeadline h2 {
  margin: 0;
}

.underline {
  width: 10%;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 30px;
  transition: width 0.5s ease-in-out;
}

.stack {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  box-sizing: border-box;
  padding: 10px 25px;
  border-radius: 15px;
  border-color: var(--main-color);
  border-width: 1px;

  box-shadow: 0px 2px 10px 0 rgba(0, 0, 0, 0.2);
}

.stack img {
  width: 40px !important;
}

.btnContainer {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;

  /* box-shadow: 0px 2px 10px 0 rgba(0, 0, 0, 0.2); */
  box-sizing: border-box;
  padding: 25px 56px;
  border-radius: 30px;
  transition: width 0.5s ease-in-out;
  margin-bottom: 70px;
}

/* .viewContainer:hover .btnContainer {
    width: 460px;
} */
.viewContainer:hover .underline {
  width: 100% !important;
}

.btnContainer button {
  position: static;
  background-color: transparent;
  border: solid;
  border-color: var(--secondary-color) !important;
  color: var(--main-color);
  width: 100px;
  height: 50px;
}


@media (max-width: 1550px) {
  .viewContainer {
    width: 1000px;
    height: 700px;
  }

  .viewContent {
    height: 400px;
  }

  .viewContent img:not(.stacks) {
    min-width: 550px;
    max-width: 550px;
    min-height: 400px;
    max-height: 400px;
  }
}

@media (max-width: 1160px) {
  .viewContainer {
    width: 100%;
    height: 100vh;
    border-radius: unset;
    box-sizing: border-box;
  }

  .viewContent {
    height: 400px;
  }

  .viewContent img:not(.stacks) {
    min-width: 450px;
    max-width: 450px;
    min-height: 400px;
    max-height: 400px;
  }

  .stacks {
    width: 30px;
    height: 30px;
  }

  .projectList {
    justify-content: center;
  }
}

@media (max-width: 950px) {
  .viewContainer {
    overflow-y: scroll;
    padding: 56px 10px;
  }

  /* 
    .viewContent {
        height: 400px;
    }



    .stacks{
        width: 30px;
        height: 30px;
    } */

  .projectsContent {
    padding: 56px 10px;
  }

  .viewContent {
    flex-direction: column;
    align-items: center;
    height: fit-content;
  }

  .projectDetails {
    width: 450px;
    gap: 20px;
  }

  .viewContent img:not(.stacks) {
    min-width: 562px;
    max-width: 562px;
    min-height: 400px;
    max-height: 400px;
  }

  .detailsBtn {
    max-width: 150px;
    font-size: 16px;
  }
}

@media (max-width: 650px) {
  .projectDetails {
    width: 350px;
  }

  .viewContent img:not(.stacks) {
    min-width: 462px;
    max-width: 462px;
    min-height: 300px;
    max-height: 300px;
  }

  .detailsBtn {
    max-width: 150px;
    font-size: 16px;
  }

  .btnContainer {
    gap: 25px;
  }

  .closeBtn {
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 1390px) {
  .projectsHeadline h1 {
    font-size: 56px;
  }

  .projectCard img {
    width: 350px;
    height: 250px;
  }
}

@media (max-width: 1050px) {
  .projectsHeadline h1 {
    font-size: 48px;
  }

  .projectCard img {
    width: 250px;
    height: 180px;
  }
}

@media(max-width:850px) {
  .projectsHeadlineContainer {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .projectsHeadline {
    align-items: center;
  }
}

@media (max-width: 500px) {



  .projectsHeadline h1 {
    font-size: 32px;
  }

  .projectsHeadline p {
    font-size: 12px;
  }

  .projectCard img {
    width: 250px;
    height: 180px;
  }

  .projectList {
    justify-content: center;
  }

  .projectDetails {
    width: 320px;
    padding: 20px;
  }

  .viewContent img:not(.stacks) {
    min-width: 320px;
    max-width: 320px;
    min-height: 220px;
    max-height: 220px;
  }

  .btnContainer {
    width: 100%;
    padding: 0;
    gap: 20px;
  }

  .detailsBtn {
    font-size: 14px;
  }
}

@media (pointer: coarse) {
  .underline {
    width: 100%;
  }
}