:root {
  --line-main-color: rgba(255, 255, 255, 1);
  --background-gradient: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}


h3 {
    color: var(--secondary-text-color);
}

hr {
  display: block;
  margin: 0 auto !important;
  padding: 0;
  border: none;
  height: 5px;
  background-color: var(--line-main-color) !important;
  width: 50% !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  filter: none !important;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
    
    padding: 1rem;
    padding-top: 100px;

    border-radius: 1rem;

}

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

.team-group h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--main-text-color);
    font-size: 1.6rem;
    font-weight: 600;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 500px);
  justify-content: center; 
  gap: 2rem;   
  max-width: 100%; 
  padding: 1rem;
}


.team-member {
    background: rgba(255, 255, 255, 0.04);
    padding: 2rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 500px;
    height: 500px;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease;

    font-weight: 600;
    margin-bottom: 1rem;

    will-change: transform; /* hint to browser */
}

.team-member:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: scale(1.05); /* grow by 5% */
}

.team-member:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.team-member img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}
