/* Team Section Styles */
.team-section {
    background: linear-gradient(120deg, var(--color-mint) 0%, var(--color-lavender) 100%);
    padding: 70px 0 60px 0;
    position: relative;
    border-radius: var(--border-radius);
    margin: 60px 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.team-section .section-header {
    text-align: center;
    margin-bottom: 44px;
}

.team-section h2 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    color: var(--color-primary);
    margin-bottom: 0.3em;
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .team-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .team-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .team-cards {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .team-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.team-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    padding: 32px 22px 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    position: relative;
    min-height: 320px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: team-fade-in 0.8s forwards;
}

.team-contact-btn {
    margin-top: auto;
    display: block;
    width: 100%;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.05rem;
    padding: 11px 0;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.22s; }
.team-card:nth-child(3) { animation-delay: 0.34s; }
.team-card:nth-child(4) { animation-delay: 0.46s; }
.team-card:nth-child(5) { animation-delay: 0.58s; }
.team-card:nth-child(6) { animation-delay: 0.7s; }

@keyframes team-fade-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-medium);
    z-index: 2;
}

.team-avatar {
    font-size: 3.2rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-mint), var(--color-peach));
    border-radius: 50%;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(126, 201, 170, 0.08);
    overflow: hidden;
    position: relative;
}

.about-photo-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-right: 36px;
    margin-bottom: 0;
}

.about-avatar {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .about-photo-column {
        margin-right: 20px;
    }
    .about-avatar {
        width: 72px;
        height: 72px;
        min-width: 72px;
        min-height: 72px;
    }
}

@media (max-width: 700px) {
    .about-columns.with-photo {
        flex-direction: column;
        align-items: center;
    }
    .about-photo-column {
        margin-right: 0;
        margin-bottom: 18px;
        justify-content: center;
    }
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: 0 2px 8px rgba(110, 87, 178, 0.08);
    background: #fff;
    max-width: 100%;
    max-height: 100%;
}

.about-columns.with-photo {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}


.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.2em;
}

.team-role {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 0.7em;
    font-weight: 600;
}

.team-desc {
    font-size: 1.05rem;
    color: var(--color-dark);
    margin-bottom: 1.1em;
}

.team-caption {
    font-size: 0.98rem;
    color: var(--color-secondary);
    font-style: italic;
    margin-top: auto;
    letter-spacing: 0.02em;
}
