/* ═══════════════════════════════════════════
   team.css — Team Section
   RainByte Studios
═══════════════════════════════════════════ */

#team {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

#team::before {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(74, 144, 217, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  position: relative;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: all 0.4s var(--ease-smooth);
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(7, 7, 9, 0.5);
}

.team-card:hover::before {
  opacity: 1;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-core), var(--blue-deep));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.team-card h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ice);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.team-role {
  font-size: 0.65rem;
  color: var(--blue-core);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.team-bio {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--silver-dim);
  transition: all 0.3s;
}

.team-social a:hover {
  border-color: var(--blue-core);
  color: var(--blue-glow);
  background: rgba(74, 144, 217, 0.1);
}

/* Join the team CTA */
.team-cta-card {
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  cursor: pointer;
  transition: all 0.3s;
}

.team-cta-card:hover {
  border-color: var(--blue-core);
  background: rgba(74, 144, 217, 0.03);
}

.team-cta-card .plus-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--blue-core);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue-core);
  margin-bottom: 16px;
  transition: all 0.3s;
}

.team-cta-card:hover .plus-icon {
  background: var(--blue-core);
  color: var(--black);
}

.team-cta-card p {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--silver);
}
