/* ---------------------- FUNDO ---------------------- */
.portfolio-hero {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #F72585, #9D4EDD, #4361EE);
    padding-top: 140px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* FUNDO ANIMADO */
.tech-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.tech-lines::before,
.tech-lines::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 200%;
    background: rgba(255,255,255,0.12);
    animation: moveSide 8s linear infinite;
}

.tech-lines::after {
    top: 60%;
    animation-duration: 12s;
}

@keyframes moveSide {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

/* ---------------------- CONTAINER ---------------------- */
.portfolio-container {
    width: 90%;
    max-width: 1600px;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 10;
}

/* ---------------------- TÍTULO ---------------------- */
.portfolio-container h2 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 40px;
}

/* ---------------------- WRAPPER ---------------------- */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* ---------------------- TRACK ---------------------- */
.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    white-space: nowrap;
    width: max-content;
}

/* ---------------------- CARDS (AJUSTE QUE NÃO ESTOURA) ---------------------- */
.carousel-img {
    width: 380px;
    height: 300px;             /* ALTURA FIXA DO CARTÃO */

    object-fit: contain;       /* IMAGEM DENTRO DO CARD SEM ESTOURAR */
    object-position: center;

    background: rgba(0,0,0,0.25);

    padding: 10px;
    border-radius: 18px;

    box-shadow: 0 10px 20px rgba(0,0,0,0.35);

    flex-shrink: 0;
    display: block;
}

/* ---------------------- MOBILE ---------------------- */
@media (max-width: 900px) {
    .carousel-img {
        width: 80vw;
        height: 240px;
        object-fit: contain;
    }
}
.carousel-track {
    display: flex;
    gap: 25px;
    padding: 0 40px; /* 🔥 ADICIONA RESPIRO LATERAL */
    box-sizing: border-box;
}
