/* Карточки */
.project-card {
  perspective: 1000px;
}

.project-media {
  transform-style: preserve-3d;
}

.project-card:hover .project-media {
  transform: rotateY(5deg) rotateX(5deg);
  box-shadow: 0 30px 50px rgba(0,0,0,0.5);
}

.team-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: teamFadeIn 0.6s ease forwards;
  opacity: 0;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(250, 215, 104, 0.15);
}

.team-image {
  width: 100%;
  height: 350px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #25262a 0%, #1d1e22 100%);
}

.team-content {
  padding: 25px;
  background-color: var(--dark-slate);
  border-top: 1px solid rgba(250, 215, 104, 0.1);
}

.team-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: var(--gold-accent);
  margin-bottom: 10px;
}

.team-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-description {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.9;
  line-height: 1.7;
}

/* Анимации для карточек команды */
.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }
.team-card:nth-child(6) { animation-delay: 0.6s; }

/* Модальные окна */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 1200px;
  background: var(--dark-slate);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.project-modal.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.modal-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-info {
  padding: 30px;
}

.modal-info h3 {
  color: var(--bee-yellow);
  margin-bottom: 15px;
}

.modal-meta {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  color: var(--silver-fox);
  font-size: 0.9rem;
}