/* Team-specific styles */
.team-section {
  padding: 1rem 0; /* reduced padding from 2rem to 1rem to bring content higher */
  background: rgba(255, 255, 255, 0.02);
}

.team-grid {
  display: grid;
  /* reduced minimum card width from 300px to 250px for more compact layout */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  /* reduced gap from 2rem to 1.5rem for tighter spacing */
  gap: 1.5rem;
  margin-top: 0; /* removed margin-top to bring cards directly under hero */
}

.team-card {
  text-align: center;
  /* reduced padding from 2rem to 1.5rem for smaller cards */
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.team-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 53, 0.3);
}

.team-avatar {
  /* reduced avatar size from 120px to 100px for more compact cards */
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
  border-color: rgba(255, 107, 53, 0.6);
  transform: scale(1.05);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-badge {
  display: inline-block;
  /* reduced badge padding for smaller size */
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  /* reduced font size from 0.8rem to 0.75rem */
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.ceo-badge {
  background: linear-gradient(135deg, #ff0000, #ff3535);
  color: #ffffff;
}

.manager-badge {
  background: linear-gradient(135deg, #d60909, #ff0000);
  color: #ffffff;
}

.moderator-badge {
  background: linear-gradient(135deg, #620a79, #620a79);
  color: #ffffff;
}

.team-name {
  /* reduced font size from 1.5rem to 1.3rem */
  font-size: 1.3rem;
  font-weight: 600;
  /* reduced margin from 1rem to 0.8rem */
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-bio {
  color: #cbd5e0;
  line-height: 1.6;
  /* reduced margin from 1.5rem to 1.2rem */
  margin-bottom: 1.2rem;
  /* reduced font size from 0.95rem to 0.9rem */
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  /* reduced gap from 1rem to 0.8rem for tighter social links */
  gap: 0.8rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  /* reduced social link size from 40px to 36px */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 107, 53, 0.2);
  color: #f7931e;
}

.social-link.twitter:hover {
  background: rgba(29, 161, 242, 0.2);
  color: #1da1f2;
}

.social-link.linkedin:hover {
  background: rgba(0, 119, 181, 0.2);
  color: #0077b5;
}

.social-link.github:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.social-link.discord:hover {
  background: rgba(114, 137, 218, 0.2);
  color: #7289da;
}

.social-link.email:hover {
  background: rgba(234, 67, 53, 0.2);
  color: #ea4335;
}

.social-link.youtube:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #ff0000;
}

/* Added specific hero section styles to reduce height and bring team cards up */
.hero {
  padding: 2rem 0 !important;
  min-height: auto !important;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    /* reduced mobile gap from 1.5rem to 1.2rem */
    gap: 1.2rem;
  }

  .team-card {
    /* reduced mobile padding from 1.5rem to 1.2rem */
    padding: 1.2rem;
  }

  .team-avatar {
    /* reduced mobile avatar size from 100px to 80px */
    width: 80px;
    height: 80px;
  }

  .team-name {
    /* reduced mobile font size from 1.3rem to 1.2rem */
    font-size: 1.2rem;
  }

  .team-bio {
    /* reduced mobile font size from 0.9rem to 0.85rem */
    font-size: 0.85rem;
  }
}
