/* ==========================================
   PREDITA
   ECOSSISTEMA DE TECNOLOGIAS
   ========================================== */

.predita-tech-section {
    background: linear-gradient(
        135deg,
        #0d1b2a 0%,
        #142b45 55%,
        #173b59 100%
    );

    padding: 85px 0 70px;

    color: #ffffff;

    overflow: hidden;

    position: relative;
}

/* Cabeçalho */

.predita-tech-heading {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 55px;
}

.predita-tech-label {
    display: inline-block;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;

    color: #49c5f6;

    margin-bottom: 15px;
}

.predita-tech-heading h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;

    color: #ffffff;

    margin-bottom: 20px;
}

.predita-tech-heading p {
    font-size: 17px;
    line-height: 1.8;

    color: #c9d7e5;

    padding: 0 20px;
}

/* Janela da animação */

.predita-tech-viewport {
    width: 100%;

    overflow: hidden;

    position: relative;

    padding: 20px 0 30px;
}

/* Efeito de desaparecimento nas laterais */

.predita-tech-viewport::before,
.predita-tech-viewport::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    width: 75px;

    z-index: 2;

    pointer-events: none;
}

.predita-tech-viewport::before {
    left: 0;

    background: linear-gradient(
        to right,
        #102137,
        transparent
    );
}

.predita-tech-viewport::after {
    right: 0;

    background: linear-gradient(
        to left,
        #173b59,
        transparent
    );
}

/* Faixa principal */

.predita-tech-track {
    display: flex;

    width: max-content;

    align-items: stretch;

    animation: preditaTechScroll 85s linear infinite;

    will-change: transform;
}

/* Grupos duplicados */

.predita-tech-group {
    display: flex;

    flex-shrink: 0;

    align-items: stretch;

    gap: 18px;

    padding-right: 18px;
}

/* Cartões */

.predita-tech-card {
    width: 105px;
    min-width: 135px;

    height: 125px;

    padding: 18px 12px;

    background: #ffffff;

    border-radius: 16px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Ícones */

.predita-tech-icon {
    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #edf4fa;

    border-radius: 12px;

    color: #17365d;

    font-size: 19px;

    font-weight: 800;
}

.predita-tech-icon img {
    display: block;

    width: 50px;
    height: 50px;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

/* Nome da tecnologia */

.predita-tech-card span {
    display: block;

    font-size: 13px;

    font-weight: 700;

    color: #17365d;

    text-align: center;

    line-height: 1.3;
}

/* Interatividade */

.predita-tech-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* Pausa com mouse */

.predita-tech-viewport:hover .predita-tech-track {
    animation-play-state: paused;
}

/* Movimento da direita para esquerda */

@keyframes preditaTechScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}

/* Rodapé da seção */

.predita-tech-footer {
    color: #a8c2d8;

    font-size: 14px;

    letter-spacing: 0.5px;
}

/* Responsividade */

@media (max-width: 768px) {

    .predita-tech-section {
        padding: 65px 0 50px;
    }

    .predita-tech-heading {
        margin-bottom: 35px;
    }

    .predita-tech-heading p {
        font-size: 15px;
    }

    .predita-tech-card {
        width: 110px;
        min-width: 110px;

        height: 125px;

        padding: 12px 8px;
    }

    .predita-tech-icon {
        width: 55px;
        height: 55px;
    }

    .predita-tech-icon img {
        width: 42px;
        height: 42px;
    }

    .predita-tech-card span {
        font-size: 12px;
    }

    .predita-tech-track {
        animation-duration: 65s;
    }

    .predita-tech-viewport::before,
    .predita-tech-viewport::after {
        width: 30px;
    }

}

/* Acessibilidade */

@media (prefers-reduced-motion: reduce) {

    .predita-tech-track {
        animation: none;
    }

    .predita-tech-viewport {
        overflow-x: auto;
    }

}