.team-section {
    width: 100%;
    padding: 60px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    mask: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.carousel-track {
    display: flex;
    width: calc(400px * 6); /* 3 membros x 2 para loop infinito */
    height: 100%;
    animation: scroll 60s linear infinite;
    gap: 40px;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-400px * 3 - 120px)); /* largura de 3 cards + gaps */
    }
}

.team-card {
    flex-shrink: 0;
    width: 360px;
    height: 450px;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Cores específicas para cada membro */
.team-card.amandio {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.team-card.pedro {
    background: linear-gradient(135deg, #b3d617 0%, #f0ec17 100%);
}
.team-card.celeu {
    background: linear-gradient(135deg, #ea66d4 0%, #764ba2 100%);
}

.team-card.amandio::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
}

.team-card.fernando {
    background: linear-gradient(135deg, #30c601 0%, #44a08d 100%);
}

.team-card.fernando::before {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.9), rgba(68, 160, 141, 0.9));
}

.team-card.aristides {
    background: linear-gradient(135deg, #2407f8 0%, #161616 100%);
}

.team-card.aristides::before {
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.9), rgba(252, 182, 159, 0.9));
}

.card-image {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.7) 50%,
        transparent 100%
    );
    z-index: 3;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.team-card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
}

.member-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.member-role {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.2s;
}

.team-card:hover .member-description {
    opacity: 1;
    transform: translateY(0);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 100%
    );
    z-index: 1;
}

/* Efeito de brilho no hover */
.team-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity 0.5s ease;
    z-index: 4;
    pointer-events: none;
}

.team-card:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.scroll-dot.active {
    background: #667eea;
    transform: scale(1.2);
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.scroll-hint {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Responsividade */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .team-card {
        width: 280px;
        height: 350px;
    }
    
    .carousel-track {
        width: calc(320px * 6);
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-320px * 3 - 120px));
        }
    }
    
    .card-content {
        padding: 20px;
    }
    
    .member-name {
        font-size: 1.5rem;
    }
    
    .scroll-hint {
        display: none;
    }
}

/* Efeitos de partículas de fundo */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 6s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}



