.team-section {
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.team-title {
    text-align: center;
    margin-bottom: 50px;
}

.team-title h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.team-title p {
    font-size: 1.2em;
    color: #7f8c8d;
}

.scrolling-wrapper {
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.scroller {
    justify-content: center;
    display: flex;
    width: max-content;
    animation: scrollContinuo 30s linear infinite;
}

.scrolling-wrapper:hover .scroller {
    animation-play-state: paused;
}

.team-member {
    flex: 0 0 280px;
    margin: 0 40px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.avatar-container {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    border: 4px solid #c1c1c1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.avatar-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    margin: 15px 0;
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
}

.member-info p {
    color: #7f8c8d;
    font-size: 1em;
    line-height: 1.4;
}

@keyframes scrollContinuo {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.social-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 350px;
    height: 350px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-container:hover .social-icons {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.social-icons a {
    color: #2c3e50;
    margin: 8px;
    font-size: 50px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #3498db;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.avatar-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.avatar-container:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .scroller {
        animation-duration: 40s;
    }

    .team-member {
        flex: 0 0 220px;
        margin: 0 20px;
    }

    .avatar-container {
        width: 160px;
        height: 160px;
    }

    .social-icons {
        width: 140px;
        height: 140px;
    }

    .social-icons a {
        font-size: 20px;
        margin: 6px;
    }
}