/* Team Section */
#team {
    background: var(--stats-background);
    padding: 100px 20px;
}

#team .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

#team .section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--white-color);
    position: relative;
    text-align: center;
}

#team .section-title span {
    color: var(--main-color);
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.team-member {
    position: relative;
    width: 300px;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--background-card);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.3);
}

.member-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    transition: filter 0.3s ease;
}

.team-member:hover .member-photo {
    filter: brightness(0.8);
}

.member-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    text-align: center;
}

.member-name {
    color: var(--white-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.member-role {
    color: var(--main-color);
    font-size: 16px;
    font-weight: 500;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .team-list {
        flex-direction: column;
        align-items: center;
    }
}


/* Модальное окно */
.member-modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
}

.member-modal.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

.modal-content {
    background: #111827;
    color: #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    animation: slideUp 0.4s ease;
}

.modal-content img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #4ade80;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #4ade80;
}

.social-links-modal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links-modal a {
    color: #a0aec0;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-links-modal a:hover {
    color: #4ade80;
    transform: scale(1.2);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

