.team {
  position: relative;
  padding: 7rem 0;
  background: #0a0a0f;
  overflow: hidden;
}

.team-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  filter: blur(120px);
}

.glow-indigo {
  top: 50%;
  left: 25%;
  background: rgba(99,102,241,0.1);
}

.glow-violet {
  top: 33%;
  right: 25%;
  background: rgba(139,92,246,0.1);
}

.team-container {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.team-header {
  margin-bottom: 5rem;
}

.team-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.team-header p {
  max-width: 520px;
  margin: 0 auto;
  color: #9ca3af;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  gap: 48px;
}

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

.team-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 1.75rem;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background .3s ease;
}

.team-card:hover {
  background: rgba(255,255,255,0.1);
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}

.team-card:hover img {
  transform: scale(1.08) rotate(2deg);
}

.team-card h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.team-card p {
  font-size: .9rem;
  color: #9ca3af;
}

.card-accent {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(129,140,248,0.4),
    transparent
  );
  opacity: 0;
  transition: opacity .3s ease;
}

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

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.float {
  animation: float 4s ease-in-out infinite;
}

.float.slow {
  animation-duration: 5s;
}

.float.slower {
  animation-duration: 6s;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.team-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(99,102,241,0.35),
    transparent
  );
}
