/* Team Section */
.team {
    background-color: var(--secondary-bg);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    padding: 0 1rem;
}

.team-card {
    background: transparent;
    text-align: center;
    transition: transform 0.3s ease;
    flex: 0 1 300px;
    /* Allow shrinking but limit growth, set basis */
    margin: 10px;
    /* Add some margin for safety */
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.team-card .role {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}