/* Team Section - Modern Clean Style */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    text-align: center;
}

.team-grid .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 200px;
    transition: all 0.3s ease;
}

/* Hidden cards initially (show first 3 only) */
.team-grid .card:nth-child(n+4) {
    display: none;
}

.team-grid.show-all .card {
    display: block !important;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-grid .card:hover {
    transform: translateY(-5px);
}

.team-grid .member-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Subtle gradient border ring effect using pseudo-element */
.team-grid .member-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(0, 101, 189, 0.1);
    pointer-events: none;
    transition: all 0.3s;
}

.team-grid .card:hover .member-img {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 101, 189, 0.2);
    border-color: #f0f7ff;
}

.team-grid .card:hover .member-img::after {
    border-color: var(--primary-color);
}

.team-grid .member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-grid .card:hover .member-img img {
    transform: scale(1.1);
}

.team-grid h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
    transition: color 0.3s;
}

.team-grid .card:hover h4 {
    color: var(--primary-color);
}

.team-grid p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* See More Button */
.see-more-btn {
    display: inline-block;
    margin-top: 50px;
    padding: 12px 40px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 101, 189, 0.2);
    background: var(--primary-color);
    color: white;
}

.see-more-btn.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .team-grid {
        gap: 30px;
        margin-top: 40px;
    }

    .team-grid .card {
        width: 160px;
    }

    .team-grid .member-img {
        width: 150px;
        height: 150px;
    }

    .team-grid h4 {
        font-size: 1.1rem;
    }

    .see-more-btn {
        margin-top: 30px;
    }
}