.overlay-project-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
  overflow-y: auto;
}

.overlay-project-card.hidden {
  display: none;
  animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* .overlay-project-card__content {
  animation: slideUp 0.4s ease-in-out;
  
} */

@keyframes slideUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.overlay-project-card__close {
  position: fixed;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  font-size: 40px;
  color: red;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  
}

.overlay-project-card__close:hover {
  color: var(--color-primary);
  transform: scale(1.2);
}

/* Responsivo para telas menores */
@media (max-width: 768px) {
  .overlay-project-card {
    width: fit-content;
   
  }

  .overlay-project-card__close {
    top: 15px;
    right: 15px;
    font-size: 30px;
  }

  /* .overlay-project-card__content {
    width: 100%;
  } */
}
