.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 60px 70px 70px 90px;
}
@media (max-width: 900px) {
  .board {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    max-width: 1100px;
    /* margin-top: 150px; */
  }
  .card-Profile-inner {
    width: 100%;
    height: 270px;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
}
.card-Profile {
  perspective: 1000px;
}

.card-Profile-inner {
  width: 100%;
  height: 390px;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-Profile:hover .card-Profile-inner {
  transform: rotateY(180deg);
}

.card-Profile-front,
.card-Profile-back {
  position: absolute;
  height: 100%;
  width: 90%;
  border-radius: 15px;
  overflow: hidden;
  backface-visibility: hidden;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.card-Profile-back img {
  width: 100px;
  background: #fff;
  height: 100px;
  border-radius: 50px;
}
.card-Profile-front {
  text-align: center;
  font-size: 12px;
}
.card-Profile-front img {
  width: 100%;
  object-fit: contain;
  margin-bottom: 30px;
  height: 100%;
}

.card-Profile-back {
  background: #0f5132;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 25px;
  text-align: center;
}

.card-Profile-back h3 {
  text-align: center;
  margin-bottom: 10px;
}

.card-Profile-back p {
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  text-align: center;
}

.card-Profile-back button {
  padding: 10px 25px;
  border: none;
  border-radius: 30px;
  background: #20c997;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.card-Profile-back button:hover {
  background: white;
  color: #0f5132;
}

/* MODAL */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  width: 100%;
  font-size: 12px;
  max-width: 650px;
  padding: 35px;
  border-radius: 15px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  font-weight: bold;
  color: #0f5132;
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #0f5132;
}

.modal-content p {
  line-height: 1.6;
}
