/* Team Lineup Carousel - Simplified CSS-based marquee */

.team-lineup-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.team-lineup-track {
    display: flex;
    width: fit-content;
    animation: scroll-left 30s linear infinite;
}

.team-lineup-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.team-member-item {
    position: relative;
    flex-shrink: 0;
    margin-right: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-member-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.team-member-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Hover Overlay */
.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 8px;
    overflow: hidden;
}

.team-member-item:hover .team-member-overlay {
    opacity: 1;
}

.team-member-overlay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Button CTA */
.team-member-cta {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 20;
}

.team-member-item:hover .team-member-cta {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.team-member-button {
    display: inline-block;
    padding: 12px 28px;
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.team-member-button:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 230, 0.5);
}

/* Popup Modal */
.team-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-popup-modal.active {
    display: flex;
}

.team-popup-content {
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.team-popup-close:hover {
    background: #000;
    transform: rotate(90deg);
}

.team-popup-body {
    padding: 50px 40px;
}

.team-popup-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #333;
}

.team-popup-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.team-popup-description p {
    margin-bottom: 15px;
}

.team-popup-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.team-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.team-social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.team-social-icon.linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.team-social-icon.twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.team-social-icon.facebook:hover {
    background: #1877f2;
    color: #fff;
}

.team-social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.team-social-icon.website:hover {
    background: #333;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .team-popup-body {
        padding: 40px 25px;
    }
    
    .team-popup-name {
        font-size: 26px;
    }
    
    .team-member-button {
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .team-popup-body {
        padding: 30px 20px;
    }
    
    .team-popup-name {
        font-size: 22px;
    }
    
    .team-member-button {
        padding: 8px 18px;
        font-size: 12px;
    }
}

/* Scrollbar */
.team-popup-content::-webkit-scrollbar {
    width: 8px;
}

.team-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.team-popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.team-popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}