/* Team portrait styles for round images */
.team-portraits {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.portrait-container {
    width: 50px;
    height: 50px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(79, 70, 229, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.portrait-container:hover {
    transform: scale(1.1);
    border-color: rgba(79, 70, 229, 0.6);
}

.portrait-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portrait-container.gabriel img {
    object-position: center top;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: inherit;
}

.team-link:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
    text-decoration: none;
    transform: translateY(-1px);
}

.team-link-text {
    font-weight: 500;
    color: #4F46E5;
}

.dark .team-link-text {
    color: #818CF8;
}

@media (max-width: 768px) {
    .team-portraits {
        gap: 0.5rem;
    }
    
    .portrait-container {
        width: 45px;
        height: 45px;
    }
    
    .team-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 640px) {
    .team-portraits {
        gap: 0.4rem;
    }
    
    .portrait-container {
        width: 35px;
        height: 35px;
        border-width: 1px;
    }
    
    .team-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}

/* Large team portraits for above CTA button */
.team-portraits-large {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.portrait-container-large {
    width: 80px;
    height: 80px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid rgba(79, 70, 229, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.portrait-container-large:hover {
    transform: scale(1.1);
    border-color: rgba(79, 70, 229, 0.7);
}

.portrait-container-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portrait-container-large.gabriel img {
    object-position: center top;
}

.team-link-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
    color: inherit;
}

.team-link-large:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.5);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

.team-link-text-large {
    font-weight: 600;
    color: #4F46E5;
    font-size: 1.1rem;
}

.dark .team-link-text-large {
    color: #818CF8;
}

@media (max-width: 768px) {
    .portrait-container-large {
        width: 70px;
        height: 70px;
    }
    
    .team-link-large {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
    
    .team-link-text-large {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .team-portraits-large {
        gap: 0.75rem;
    }
    
    .portrait-container-large {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .team-link-large {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .team-link-text-large {
        font-size: 0.95rem;
    }
}
