/* ===== Team Card ===== */
.team-card-modern {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(11, 25, 51, 0.12);
}

/* ===== Team Modal ===== */
#team-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex; /* Ensure it can be flexed when active */
  align-items: center;
  justify-content: center;
}

#team-modal.active {
  opacity: 1;
  pointer-events: all;
}

#team-modal .modal-content {
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
}

#team-modal.active .modal-content {
  transform: translateY(0) scale(1);
}

/* Modal tag */
.modal-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(11, 26, 51, 0.06);
  color: #0B1A33;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Modal publication item */
.modal-publication {
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 26, 51, 0.06);
  font-size: 0.85rem;
  color: rgba(30, 30, 30, 0.7);
  line-height: 1.5;
}

.modal-publication:last-child {
  border-bottom: none;
}

/* ===== Methodology Step Hover ===== */
.method-step {
  transition: transform 0.3s ease;
}

.method-step:hover {
  transform: translateX(4px);
}
