* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #ff1a1a #0b0b0d;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  background: #000;
  overflow-x: hidden;
}

#team-section {
  padding: clamp(140px, 12vw, 180px) 20px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.team-group {
  margin-bottom: 4rem;
}

.team-group h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 2rem;
  color: #fff;
  position: relative;
  display: inline-block;
}

.team-group h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #e10600, transparent);
  border-radius: 5px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  position: relative;
  background: linear-gradient(145deg, #111115, #0c0c11);
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #e10600, transparent);
  opacity: .8;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(225,6,0,.15);
  border-color: rgba(225,6,0,.4);
}

.team-avatar img {
  width: 85px;
  height: 85px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(225,6,0,.4);
  transition: border-color .3s ease;
  flex-shrink: 0;
}

.team-card:hover .team-avatar img {
  border-color: #e10600;
}

.team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color .3s ease;
}

.team-name:hover {
  color: #e10600;
}

.team-role {
  font-size: .75rem;
  background: rgba(225,6,0,.15);
  color: #ff4d4d;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
  width: fit-content;
}

.team-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: nowrap;
}

.team-stats div {
  background: #0f0f14;
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  min-width: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .3s ease;
}

.team-stats span {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.team-stats small {
  display: block;
  font-size: .65rem;
  color: #777;
  margin-top: 2px;
}

.team-stats div:hover {
  background: rgba(225,6,0,.2);
}

@media (max-width: 480px) {
  .team-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-avatar img {
    width: 70px;
    height: 70px;
  }

  .team-stats {
    flex-wrap: wrap;
  }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0b0d;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff1a1a, #ff4d4d);
  border-radius: 999px;
  border: 2px solid #0b0b0d;
  transition: background .3s ease, box-shadow .3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff0000, #ff3333);
  box-shadow: 0 0 15px rgba(255,0,0,.7);
}