*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* overflow-x: hidden; */
}
.wrapper{
  width: 98vw;
  height: 100vh;
  margin: auto;

}
.container {
  max-width: 1380px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  /* overflow-x: auto; */
}

.projects-heading{
  font-size: 3rem;
  font-weight: 800;
  color: #7e15ce;
  margin: 1rem auto;
}
.cards{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 3rem;
  place-items: center;
}
.card{
  /* border: 2px solid red; */
  position: relative;
  transition: opacity 1s ease linear;
}
.card-bg{
  box-shadow: 0 0 10px #7e15ce;
  width: 400px;
  height: 250px;
  border-radius: 10px;
  /* box-shadow: 0 0 100px black; */
  /* filter: grayscale(1); */
  background-clip: content-box;
}
.card-bg:hover{
  filter: grayscale(0);
}

.project-content{
  width: 100%;
  height: 0;
  padding: 0 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: white;
  background: #7e15ce;
  display: none;
  justify-content: center;
  /* align-items: center; */
  gap: 1rem;
  flex-direction: column;
  border-radius: 10px;
  opacity: 0; 
  transition: all 10s linear;
  z-index: 1;
  box-shadow: 0 0 20px #7e15ce;
}
.card:hover .project-content{
  display: flex;
  opacity: 1;
  height: 100%;
  animation: coming-up 0.3s ease; 
  scroll-behavior: smooth;
}

@keyframes coming-up {
  0%{
    height: 20%;
  }
  25%{
    height: 40%;
  }
  50%{
    height: 60%;
  }
  75%{
    height: 80%;
  }
  100%{
    height: 100%;
  }
}
.project-content h1{
  font-size: 2.2rem;
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
}

.project-content p{
  font-size: 1.2rem;
  text-align: justify;
}

.project-content button{
  border: none;
  background: none;
  background: white;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px white;
  transition: all 0.2s ease;
}

.project-content button a{
  color: black;
  text-decoration: none;
  font-family: 'Times New Roman', Times, serif;
}

.project-content button:hover{
  cursor: pointer;
  box-shadow: none;
  background: transparent;
  border: 2px solid white;
}


.project-content button:hover a{
  color: white;
  font-weight: 600;
}


/* responsive start */
@media only screen and (max-width : 1180px) {
  .cards{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem;
    place-items: center;
  }
  .card-bg{
   
    width: 350px;
    height: 230px;
  }
}

@media only screen and (max-width : 1024px) {
  .wrapper{
    width: 100vw;
  }
  .cards{
    display: grid;
    grid-template-columns: repeat(2 ,1fr);
    gap: 1rem;
    place-items: center;
  }
  .card-bg{
    width: 350px;
    height: 230px;
  }
}
@media only screen and (max-width : 767px) {
  .cards{
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 1rem;
    place-items: center;
  }
  .card-bg{
    width: 350px;
    height: 230px;
  }
}
/* responsive end */