.portfolio {
    position: relative;
}

/* =========================================================
   CASCA / CONTAINER
========================================================= */

.portfolio__casca {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    overflow: hidden;
    padding-inline: 10px;
}

/* =========================================================
   TRILHA / SLIDER
========================================================= */

.portfolio__trilha {
    display: flex;
    gap: 24px;

    width: 100%;

    overflow-x: auto;

    padding: 10px 4px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
}

.portfolio__trilha::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   CARD
========================================================= */

.projeto__card {
    min-width: 420px;
    max-width: 420px;

    flex-shrink: 0;

    scroll-snap-align: start;

    display: flex;
    flex-direction: column;

    background: rgba(15, 23, 42, 0.75);

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

    border-radius: 24px;

    overflow: hidden;

    backdrop-filter: blur(14px);

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

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.projeto__card:hover {
    transform: translateY(-8px);

    border-color: rgba(17, 150, 243, 0.45);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(17, 150, 243, 0.15);
}

/* =========================================================
   PREVIEW
========================================================= */

.projeto__preview {
    position: relative;

    width: 100%;
    height: 230px;

    overflow: hidden;

    border-radius: 18px 18px 0 0;

    background: #0b1120;
}

.projeto__preview img,
.projeto__preview video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    border-radius: inherit;

    transition:
        transform .5s ease,
        filter .5s ease;
}

.projeto__card:hover .projeto__preview img,
.projeto__card:hover .projeto__preview video {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* =========================================================
   CONTEÚDO
========================================================= */

.projeto__card h3 {
    padding: 22px 22px 12px;

    font-size: 1.1rem;
    font-weight: 600;

    color: #ffffff;
}

.projeto__card p {
    padding: 0 22px;

    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.75);

    line-height: 1.6;
}

/* =========================================================
   LINKS
========================================================= */

.projeto__link {
    display: inline-flex;

    margin: auto 22px 22px;

    color: #1196F3;

    font-weight: 600;

    text-decoration: none;

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.projeto__link:hover {
    opacity: .7;
    transform: translateX(4px);
}

.projeto__privado {
    cursor: default;
}

/* =========================================================
   BOTÕES
========================================================= */

.portfolio__botao {
    width: 56px;
    height: 56px;

    flex-shrink: 0;

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

    border-radius: 50%;

    background: rgba(17, 150, 243, 0.12);

    color: #ffffff;

    font-size: 2rem;

    cursor: pointer;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.portfolio__botao:hover {
    background: #1196F3;

    border-color: #1196F3;

    transform: scale(1.08);

    box-shadow:
        0 0 20px rgba(17, 150, 243, 0.45);
}

/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 1200px) {

    .projeto__card {
        min-width: 380px;
        max-width: 380px;
    }

}

@media (max-width: 992px) {

    .projeto__card {
        min-width: 340px;
        max-width: 340px;
    }

}

@media (max-width: 768px) {

    .portfolio__casca {
        flex-direction: column;
    }

    .portfolio__trilha {
        width: 100%;
        gap: 18px;
    }

    .portfolio__botao {
        display: none;
    }

    .projeto__card {
        min-width: 90%;
        max-width: 90%;
    }

    .projeto__preview {
        height: 220px;
    }

}

@media (max-width: 480px) {

    .portfolio__casca {
        padding-inline: 0;
    }

    .portfolio__trilha {
        gap: 16px;
    }

    .projeto__card {
        min-width: 100%;
        max-width: 100%;

        border-radius: 20px;
    }

    .projeto__preview {
        height: 200px;
    }

    .projeto__card h3 {
        font-size: 1rem;
    }

    .projeto__card p {
        font-size: .95rem;
    }

}