﻿.team-section {
    padding: 80px 20px;
    background: transparent;
    overflow: hidden;
}

.section-label {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.team-scroller {
    width: 100%;
}

.team-scroller__inner {
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.team-scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

    .team-scroller[data-animated="true"] .team-scroller__inner {
        width: max-content;
        flex-wrap: nowrap;
        animation: team-scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
    }

.team-scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.team-scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.team-scroller[data-speed="fast"] {
    --_animation-duration: 30s;
}

.team-scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

@keyframes team-scroll {
    to {
        transform: translateX(calc(-1 * var(--team-scroll-distance)));
    }
}

.team-scroller[data-animated="true"] .team-scroller__inner {
    --team-scroll-distance: 0px;
}

.team-scroller:hover .team-scroller__inner {
    animation-play-state: paused;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team-scroller[data-animated="true"] .team-scroller__inner {
        animation: none;
    }
}

.team-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
}

    .team-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.12);
        transform: translateY(-8px);
    }

.team-headshot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.team-card:hover .team-headshot {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin-top: 8px;
}

.team-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.team-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

    .team-linkedin:hover {
        background: #0077b5;
        color: white;
        transform: scale(1.15);
    }

    .team-linkedin svg {
        width: 20px;
        height: 20px;
    }

@media (max-width: 768px) {
    .team-section {
        padding: 60px 16px;
    }

    .team-card {
        flex: 0 0 240px;
        padding: 24px 20px;
    }

    .team-headshot {
        width: 100px;
        height: 100px;
    }

    .team-scroller__inner {
        gap: 16px;
    }
}
