/* SaraS Team Showcase Styles */
.team-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.team-member {
  text-align: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member h3 { margin: 10px 0 4px; }
.team-member p {
  font-size: 0.9rem;
  color: #555;
  padding: 0 10px;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.know-more-btn {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}
.know-more-btn:hover { background: #005d85; }

/* Modal */
.team-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
.team-modal.show { display: flex; }

.team-modal-content {
  background: #fff;
  max-width: 900px;
  width: 95%;
  border-radius: 12px;
  position: relative;
  animation: popIn 0.25s ease-out;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  color: #666;
  cursor: pointer;
}
.close-btn:hover { color: #000; }

.team-modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px;
}

.modal-image { flex: 1 1 250px; text-align: center; }
.modal-image img { width: 100%; max-width: 250px; border-radius: 10px; }

.modal-info {
  flex: 2 1 450px;
  max-height: 400px;
  overflow-y: auto;
}
.modal-info::-webkit-scrollbar { width: 6px; }
.modal-info::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.modal-info h2 { margin: 0 0 4px; }
.modal-info h4 { margin: 0 0 10px; color: #666; }
.modal-info p, .modal-info ul, .modal-info ol { font-size: 0.95rem; color: #333; line-height: 1.6; }

.contact-info { margin-top: 10px; font-size: 0.9rem; }
.contact-info a { color: #0073aa; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.social-links {
  margin-top: 15px;
  display: flex;
  gap: 8px;
}
.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0073aa;
  color: #fff;
  font-size: 18px;
}
.social-links a:hover { background: #005d85; }

@media (max-width: 992px) {
  .team-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .team-container { grid-template-columns: 1fr; }
  .team-modal-body { flex-direction: column; align-items: center; text-align: center; }
  .modal-image img { max-width: 200px; }
}
