body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    align-items: center;
    line-height: 1.6;
    padding-top: 4rem;
    width: 100vw;
    margin: auto;
    background-color: #333333;
}

.main {
    background-color: #fff; 
    width: 100%;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 2%;
    margin-left: 1%;
}

.portfolio {
    width: 100%;
    height: 100%;
    background: #CCC;
    float: left;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    flex-direction: column; /* Organiza os elementos em uma coluna */
    align-items: center; /* Centraliza os elementos */
}

.portfolio img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.portfolio .portfolio_hover {
    z-index: 2;
    width: 100%;
    height: 100%;
    position: absolute;
    top: -100%;
    left: 0;
    background: #333333;
    border-radius: 6px;
    transition: all 500ms;
    -moz-transition: all 500ms;
    -ms-transition: all 500ms;
    -o-transition: all 500ms;
    -webkit-transition: all 500ms;
}

.portfolio:hover .portfolio_hover {
    top: 0;
}

.portfolio:hover .title {
    left: 0;
}

.portfolio:hover .link {
    left: 0;
}

.portfolio:hover .desc {
    left: 0;
}

.portfolio:hover .logos {
    left: 0;
}

.portfolio img {
    top: 0;
    left: 0;
    z-index: 1;
}

.portfolio:hover .git {
    margin-top: 12%;
    margin-bottom: 10%;
}

.portfolio:hover .teste {
    margin-top: 22%;
}

.title {
    font-family: Helvetica, sans-serif;
    position: absolute;
    top: 35%;
    left: 100%;
    z-index: 3;
    color: #fff;
    text-align: center;
    width: 100%;
    font-size: 1.1rem;
    margin-top: -25%;
    line-height: 1;
}

.desc {
    font-family: Helvetica, sans-serif;
    position: absolute;
    top: 60%;
    left: -100%;
    z-index: 3;
    max-height: 1rem;
    color: #ca9cbe;
    text-align: center;
    justify-content: center;
    width: 100%;
    font-size: 16px;
    text-decoration: none;
    margin-top: -30%;
    margin-bottom: -20%;
    line-height: 1;
}

.desc img {
    height: 8%;
    width: 10%;
    margin-top: 25%;
    margin-bottom: -20%;
}

.link {
    font-family: Helvetica, sans-serif;
    position: absolute;
    top: 55%;
    left: -100%;
    z-index: 3;
    color: #0adbdf;
    text-align: center;
    width: 100%;
    font-size: 16px;
    text-decoration: none;
    margin-top: -20px;
}

.title,
.link,
.desc,
.logos,
.portfolio_hover {
    transition: all 500ms;
    -moz-transition: all 500ms;
    -ms-transition: all 500ms;
    -o-transition: all 500ms;
    -webkit-transition: all 500ms;
}

@media (min-width:48em) {

    .portfolio {
        width: 90%;
        height: 70%;
        margin-right: 2%;
    }

    .portfolio:nth-of-type(3n+0) {
        margin-right: 0;
    }
}

section a {
    text-decoration: none;
}

section {
    padding: 2rem;
    margin: 1rem;
    display: block;  /* Garante que cada seção ocupe a largura total disponível */
    clear: both;     /* Garante que a seção não fique ao lado de elementos flutuantes */
}

section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.section_anim_foto {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 3s ease-out, transform 2s ease-out;
    width: 200px;
}

.hidden_anim {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 3s ease-out, transform 2s ease-out;
}

.visible_anim {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 480px) {
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        line-height: 1.6;
        padding-top: 4rem;
        max-width: 80vw;
        background-color: #333333;
    }
    .main {
        background-color: #fff; 
        max-width: 100%;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 2%;
        margin-left: 5%;
    }
    .portfolio {
        margin-right: 40%;
        align-items: center;
    }
    .title {
        font-size: 1rem;
    }
}
