.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
  /* width: 85%; */
}

.projects h1 {
  font-size: 2.7rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
  color: black;
}

.projects > h1 {
  margin-bottom: 4rem;
  font-size: 2.7rem;
}

.projects-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.project-card {
  display: grid;
  grid-template-areas:
    "title"
    "cover"
    "tech-stack"
    "description"
    "links";
  gap: 1rem;
  margin: 0 4rem 3rem 4rem;
  /* padding: 3rem 1rem; */
  border-radius: 1rem;
  background: var(--gradient-2);
  background-color: #abd1d0;
}

.project-card h1 {
  grid-area: title;
  font-size: 2.4rem;
  font-weight: 500;
  margin-top: 2rem;
  color: black;
  text-align: center;
}

.project-card .image-container {
  grid-area: cover;
  display: none;
  justify-content: center;
  margin: 0 2rem;
  height: 200px;
}

.project-card img {
  height: 15rem;
  width: auto;
  border-radius: 5px;
}

.project-card p {
  grid-area: description;
  font-size: 1.8rem;
  color: black;
  text-align: center;
  font-weight: 400;
  margin: 0 1rem 1rem 1rem;
}

.project-card iframe {
  width: 90%;
  aspect-ratio: 16 / 13;
  grid-area: cover;
  height: auto;
  border-radius: 5px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.project-card .project-tech-stack {
  grid-area: tech-stack;
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  justify-content: center;
  margin-bottom: 1rem;
}

.project-card .project-tech-stack span {
  display: flex;
  font-size: 1.4rem;
  background-color: #00000088;
  border-radius: 5px;
  padding: 0.1rem 1rem;
  margin: 0.2rem 0.5rem;
  height: fit-content;
}

.project-card .git-link {
  grid-area: links;
  display: flex;
  justify-content: center;
  background-color: #00000099;
  border-radius: 0.5rem;
  padding: 0.8rem 1.5rem;
  width: fit-content;
  justify-self: center;
  align-self: center;
  margin: 2rem auto;
}

.project-card .git-link a {
  font-size: 1.5rem;
  color: white;
  margin: 0 1rem;
}

.project-card .git-link a:hover {
  color: #f1f1f1;
}

.project-card .git-link img {
  height: 2rem;
  width: auto;
}

.mobile {
  display: flex !important;
}

.desktop {
  display: none !important;
}

@media screen and (min-width: 750px) {
  .projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 10px;
  }

  .project-card {
    margin: 0;
    width: auto;
    height: 100%;
  }

  .project-card .project-tech-stack {
    height: 50px;
  }
  .project-card p {
    height: 100px;
  }
}

@media screen and (min-width: 1200px) {
  .projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* @media screen and (min-width: 768px) {
  .projects {
    display: grid;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .project-card {
    flex: 1 1 50%;
    grid-template-areas:
      "title"
      "description"
      "tech-stack";
    padding: 2rem;
    gap: 0;
    margin-bottom: 3rem;
  }

  .project-card h1 {
    font-size: 2.5rem;
    margin: 0 1rem;
    justify-self: start;
  }

  .project-card p {
    font-size: 1.6rem;
    margin: 0 1rem 1rem 1rem;
    justify-self: start;
    text-align: left;
  }

  .project-card .project-tech-stack {
    grid-area: tech-stack;
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: start;
    align-items: center;
    margin-bottom: 1rem;
  }

  .project-card .project-tech-stack span {
    font-size: 1.4rem;
    background-color: #00000088;
    border-radius: 5px;
    padding: 0.1rem 1rem;
    margin: 0.2rem 0.5rem;
  }

  

  .project-card .git-link {
    align-self: start;
    margin: 1rem 1rem;
    padding: .3rem 1rem;
    background-color: #00000077;
  }

  .project-card .git-link a {
    font-size: 1.2rem;
    color: white;
  }

  .project-card .git-link img {
    height: 1.5rem;
    width: auto;
  }

  .mobile {
    display: none !important;
  }
  
  .desktop {
    display: flex !important;
  }

  .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
  }

} */

.project-card .project-tech-stack span:nth-child(1) {
  background-color: #f18f01cc;
}

.project-card .project-tech-stack span:nth-child(2) {
  background-color: #048ba8cc;
}

.project-card .project-tech-stack span:nth-child(3) {
  background-color: #3aad3acc;
}

.project-card .project-tech-stack span:nth-child(4) {
  background-color: #5448c8cc;
}

.project-card .project-tech-stack span:nth-child(5) {
  background-color: #c2c20fcc;
}

