.team-section {
    padding: 20px 0 80px;
    position: relative;
    overflow: hidden;
}

.team-title {
    font-size: 2.5rem;
      margin-bottom: 2rem;
        font-family: 'Inter', sans-serif;
        font-weight: 800;
        background: linear-gradient(to bottom, #ffffff, #e5e7eb);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 
            2px 2px 2px rgba(0,0,0,0.2),
            -1px -1px 1px rgba(255,255,255,0.1),
            0 4px 8px rgba(255, 255, 255, 0.15);
        transform: translateZ(0);
        -webkit-font-smoothing: antialiased;
        position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.team-member {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg);
}

.team-member::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 23%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 167, 150, 1) 0%,
        rgba(77, 227, 212, 0.4) 40%,
        rgba(101, 219, 219, 0.15) 70%,
        rgba(247, 247, 247, 0) 100%
    );
}

.team-member::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.15) 70%,
        rgba(0, 0, 0, 0) 100%
    );
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}
.team-member:hover img {
    transform: scale(1.05);
}

.team-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    z-index: 2;
    text-align: left;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.1;
}

.team-role {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 2px 0 0;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}


@media (max-width: 768px) {
    .team-title {
    font-size: 1.8rem;
    margin-bottom: 1.9rem;
}
    .team-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
        padding: 0 15px;
    }

    .team-member {
        max-width: 400px;
        margin: 0 auto;
    }
}