.projects {
  width: 100%;
  background-image: url("./assets/bg.png");
  background-color: #dfdfdf;
  position: relative;
}
.about::before,
.projects::before {
  content: "";
  height: 50px;
  width: 50px;
  background-color: #dfdfdf;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50px);

  background-image: url("./assets/bg.png");
  background-size: 100vh;
  z-index: 1;
}
.about::after,
.projects::after {
  content: "";
  height: 50px;
  width: 50px;
  background-color: #dfdfdf;

  background-image: url("./assets/bg.png");
  background-size: 100vh;
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50px);
  z-index: 1;
}

.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 50px 50px;
}
.projects > h2 {
  font-size: 40px;
  font-family: "Otterco-Regular";
  line-height: 1.1;
  background: linear-gradient(to bottom right, #000000, #4b4b4b);
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  position: relative;
  z-index: 100;
}
.projects > p {
  text-align: center;
  color: rgba(0, 0, 0, 0.705);
  position: relative;
  z-index: 100;
}
.projectsGrid {
  width: 90vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 230px 230px;
  gap: 10px;
  max-width: 800px;
  margin-top: 10vh;
  position: relative;
  z-index: 100;
}
.projectsGrid > div {
  border-radius: 15px;
  cursor: pointer;
}

.projectone {
  grid-column: span 3;
  background-color: #ffffff;
  background-image: url("./arura\ catine.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.projecttwo {
  background-color: white;
  background-image: url("./arura\ catine.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  grid-column: span 2;
}
.projectthree {
  background-color: white;
  background-image: url("./arura\ catine.png");
  background-position: center;
  background-repeat: no-repeat;
  grid-column: span 2;
  background-size: cover;
}
.projectfour {
  grid-column: span 3;
  background-color: white;
  background-image: url("./arura\ catine.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.projectsGrid > div > a {
  opacity: 0;
  transition: all 0.4s ease;
  background-color: rgba(255, 255, 255, 0.911);
  height: 100%;
  width: 100%;
  border-radius: 15px;
  /* padding: 20px; */
  display: flex;
  justify-content: end;
  flex-direction: column;
}
.projectsGrid > div > a {
  text-decoration: none !important;
}

.projectsGrid > div:hover > a {
  opacity: 1;
}
.projectsGrid h3 {
  font-weight: 500;
  font-size: 23px;
  margin-bottom: 10px;
  color: black;
}
.projectsGrid p {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.767);
}
.projectsGrid h3 span {
  font-size: 13px;
  color: gray;
}
.projectinfo > span {
  font-size: 12px;
  margin-top: 5px;
  color: grey;
}
@media (max-width: 820px) {
  .projectsGrid {
    grid-template-rows: 270px 270px;
  }
}
@media (max-width: 720px) {
  .projectsGrid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    justify-items: stretch;
    gap: 10px;
    align-items: stretch;
  }
  .projectsGrid > div {
    grid-column: span 1;
  }
  .projectsGrid > div > a {
    padding: 20px;
  }
  .projectsGrid > div > a {
    opacity: 1;
  }
}
@media (max-width: 575px) {
  .contactheading1::after {
    content: " project.";
  }
  .contactheading2 {
    display: none;
  }
}
