#projects {
  background-color: #000;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:hover {
  text-decoration: none;
}




.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 25px;
  padding: 20px;
  margin: 10px;
  min-height: 100vh;
  box-sizing: border-box;
   position: relative;
  z-index: 2;
}

.containerCard {
  width: 450px; 
  min-width: 250px;
  box-sizing: border-box;
   aspect-ratio: 16 / 9;
   background-color: #201f1f;
   padding: 10px;
   margin: 10px;
   border-radius: 12px;
}

.container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(7, 0, 0, 0.2);
}
.image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   
  object-fit: cover;
  display: block;
}


h4 {
  text-align: center;
  margin-top: 10px;
  font-size: 17px;
  color: #f8f1f1;
  font-weight: 400; 
}

h4 .span {
  font-weight: 600; 
}


.color {
    color: #2fc7ff;
}



.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 20, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: 0.3s ease-in-out;
}

.container:hover .overlay {
  transform: scale(1);
}

.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}


.textCart {
  font-size: 25px;
  font-weight: bold;
  color: #fdf6f6;
 text-shadow:
  1px 1px 2px rgba(0, 0, 0, 0.8), 
  0 0 5px #2fc7ff, 
  0 0 10px #2fc7ff;
}

.textCart h2 {
  font-family: 'Merienda', cursive;
  font-style: italic;
}









#projects .linesBack {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
}


#projects .image-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 100px;
}


#projects .line {
  position: absolute;
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  background: rgba(158, 137, 243, 0.01);
}

#projects .line::after {
  content: '';
  position: absolute;
  height: 15vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(to bottom, rgba(214, 192, 192, 0) 0%, #2fc7ff 75%, #fff 100%);
  animation: drop 5s infinite;
  animation-timing-function: ease-in-out;
}

#projects .line:nth-child(1) { margin-left: -35%; }
#projects .line:nth-child(2) { margin-left: -17.5%; }
#projects .line:nth-child(3) { margin-left: 0%; }
#projects .line:nth-child(4) { margin-left: 17.5%; }
#projects .line:nth-child(5) { margin-left: 35%; }

#projects .line:nth-child(1)::after { animation-delay: 0.5s; }
#projects .line:nth-child(2)::after { animation-delay: 1.5s; }
#projects .line:nth-child(3)::after { animation-delay: 1s; }
#projects .line:nth-child(4)::after { animation-delay: 2.5s; }
#projects .line:nth-child(5)::after { animation-delay: 2s; }


@keyframes drop {
  0% { top: -50%; }
  100% { top: 110%; }
}

@media all  and (max-width: 1250px) {
  h4 {

  font-size: 14px;

}
}


@media all  and (max-width: 990px)  {


  .cards-wrapper {
      gap: 20px;
  padding: 10px;

  }
   .containerCard {
  width: 380px; 

}


.textCart {
  font-size: 13px;

  
}
ul {
  margin-bottom: 5px;
 
}


}


@media all  and (max-width: 820px) {
     .containerCard {
  width: 350px; 
}
}
@media all  and (max-width: 770px) {
     .containerCard {
  width: 320px; 
}


.textCart {
  font-size: 12px;
}

}
@media all  and (max-width: 710px) {
     .containerCard {
  width: 290px; 
}

.textCart {
  font-size: 10px;
}

}

@media all  and (max-width: 645px) {
     .containerCard {
  width: 250px; 
}

.textCart {
  font-size: 10px;
   margin: 3px;
}

}

@media all  and (max-width: 560px) {
     .containerCard {
  width: 95%; 
  }


.textCart {
  font-size: 15px;

}


}

@media all  and (max-width: 430px) {
  


.textCart {
  font-size: 12px;
}

}

@media all  and (max-width: 380px) {
    h4 {

  font-size: 12px;

}


.textCart {
  font-size: 10px;
   margin: 3px;
}

}