.projetos{
    display: flex;
    flex-direction: column;
    padding-top: 11dvh;
    align-items: center;
    justify-content: center;
    gap: 50px;

    & .container{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 50px;
        padding: 20px;
        width: 100vw;
        row-gap: 20px;

        & .card-projeto{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            width: 400px;
            padding: 20px;
            box-shadow: var(--shadow-lg);
            background-color: var(--bg-secondary);
            transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
            border-radius: 10px;
            
            &:hover {
                transform: translateY(-8px);
                box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            }

            & h3 {
                font-size: var(--font-size-subtitle);
                margin-bottom: 0;
            }

            & .img-container{
                position: relative;
                height: 180px; /* Altura ajustada para conter as imagens */
                width: 100%;
                border-radius: 10px;
                background-color: var(--bg-primary);
                background-size: cover;
                border: 1px solid var(--border-color);
                & .mobile{
                    position: absolute;
                    height: 95%;
                    right: -15px; /* Posiciona à direita com um pequeno deslocamento */
                    bottom: -10px; /* Posiciona na base com um pequeno deslocamento */
                    border: 1px solid var(--border-color);
                    border-radius: 10px;
                }
            }

            & .list-tec{
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                flex-direction: row;
                align-items: center;
                justify-content: space-around;
                gap: 10px;
                border-radius: 10px;

                    & svg{
                        height: 30px;
                        width: 30px;
                        fill: var(--accent-primary);

                        &.cssvg{
                            height: 36px;
                            width: 36px;
                        }
                    }
            }

            & .desc{
                width: 100%;
                border-radius: 10px;
                text-align: center;
            }

            & .buttons-projeto{
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                gap: 20px;
                width: 100%;

                & .btn-projeto{
                    /* Estilos para garantir que a tag <a> se pareça com um botão */
                    display: inline-block;
                    text-align: center;
                    padding: 10px 20px;
                    border-radius: var(--radius-md);
                    font-size: var(--font-size-text-small);
                    font-weight: 600;
                    user-select: none;
                    width: 150px;
                    background-color: transparent;
                    border: 1px solid var(--border-color);
                    color: var(--accent-primary);
                    box-shadow: var(--shadow-sm);
                    transition: 0.3s;

                    &:hover{
                       background-color: var(--bg-primary);
                       box-shadow: var(--shadow-lg);
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 1000px){

    .projetos{
        & .container{
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            gap: 50px;

            & .card-projeto{
                width: 350px;

                & .img-container{
                    & .mobile{
                        /* O posicionamento absoluto já se ajusta, mas podemos refinar se necessário */
                        right: -10px;
                    }
                }
            }
        }
    }
}