/* ===== TEAM SECTION ===== */
#team {
  position: relative;
  padding: clamp(4rem, 8vw, 8rem) 30px clamp(4rem, 8vw, 8rem);
  text-align: center;
  overflow: hidden;
  padding-top: 50px;
  isolation: isolate;
}

.team-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.3);
  color: #fff;
}


/* === TEAM GRID === */
.team-container {
  display: grid;
  /* Impunem 4 coloane pe desktop */
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* La ecrane medii (max-width: 1023px): 3 coloane */
@media (max-width: 1023px) {
  .team-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* La ecrane mici (max-width: 768px): 2 coloane */
@media (max-width: 768px) {
  .team-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === TEAM CARD === */
.team-card {
  background: rgba(13, 13, 13, 0.85);
  border-radius: 16px;
  padding: 1.5rem 0.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease forwards;
}

.team-card:hover {
  transform: translateY(-6px);
}

/* === ROUND IMAGE === */
.team-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1db954;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* === TEXT INFO === */
.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}

.team-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  text-align: center;
  position: relative;
}

.team-info h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #1db954;
  transition: width 0.3s ease;
}

.team-card:hover .team-info h3::after {
  width: 50%;
}

/* === ROLES === */
.roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.roles span {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: #d0d0d0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.roles span:hover {
  background: rgba(29, 185, 84, 0.1);
  color: #1db954;
  transform: translateY(-2px);
}

/* === SOCIAL ICONS (Instagram + LinkedIn) === */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a {
  color: #e0e0e0;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  position: relative;
}

.social-icons a::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle at center, rgba(29, 185, 84, 0.2), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icons a:hover {
  color: #1db954;
  transform: translateY(-3px);
}

.social-icons a:hover::before {
  opacity: 1;
}

/* === ANIMATION === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card:hover,
  .team-card img,
  .roles span,
  .social-icons a {
    transition: none;
    animation: none;
    transform: none;
  }
}