@keyframes translate-right-alt {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        -o-transform: translate3d(0, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(150%, 0, 0);
        -webkit-transform: translate3d(150%, 0, 0);
        -moz-transform: translate3d(150%, 0, 0);
        -o-transform: translate3d(150%, 0, 0);
    }
}

/* ==========================================
    PAGINA 1
=============================================*/


section#about {
    position: relative;
    overflow-x: hidden;

    min-height: 715px;
    box-shadow: 0px 30px 30px 2px rgba(0,0,0,0.3);
    z-index: 1;
}

section#about .slide-section {
    height: 100%;
}

section#about #about-page-1 {
    position: relative;
    overflow-x: hidden;

    height: 100%;
}

section#about #about-page-1 .container {
    width: 85%;
    max-width: none;
    height: 100%;

    flex-wrap: wrap;

    margin: 0 0 0 auto;
}

section#about #about-page-1  .about-texts {
    width: -moz-fit-content;
    width: fit-content;
    height: -moz-fit-content;
    height: fit-content;

    position: relative;

}

section#about #about-page-1  .about-texts h1 {
    position: relative;
    top: -100px;

    width: -moz-fit-content;
    width: fit-content;
    
    font-family: 'Champgne & Limousines', sans-serif;
    font-size: 5em;

    font-weight: 500;
}

section#about #about-page-1  .about-texts h1 .saulo-mira-text::first-letter {
    font-size: inherit;
}

section#about #about-page-1  .about-texts .main-text {
    margin: auto 0;
 
    font-size: 4.7em;
    color: #646464;
}

section#about #about-page-1 .about-texts .main-text li {
    opacity: 0;

    -webkit-transform: translate3d(-150%, 0, 0);
    -moz-transform: translate3d(-150%, 0, 0);
    -o-transform: translate3d(-150%, 0, 0);
    transform: translate3d(-150%, 0, 0);
}


section#about #about-page-1  .images-container {
    grid-template-columns: repeat(3, 233px);
    margin-left: -20%;
    align-items: center;
    justify-items: center;
    flex-shrink: 0;

    -webkit-filter: drop-shadow(-8px 12px 8px rgba(0, 0, 0, 0.4));
    filter: drop-shadow(-8px 12px 8px rgba(0, 0, 0, 0.4));

    min-width: 360px;
}

section#about #about-page-1  .images-container .front-image {
    position: relative;

    max-width: 310px;
    height: -moz-fit-content;
    height: fit-content;
    
    grid-column: 1/3;
    grid-row: 1/2;

    overflow: hidden;

    z-index: 2;

    opacity: 0;

    border-radius: 50%; /* Isso em vez de clip-path, porque tava causando glitch visual pra deixar redondo */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);

    -webkit-transition: ease-out 0.25s all;
    -moz-transition: ease-out 0.25s all;
    -o-transition: ease-out 0.25s all;
    transition: ease-out 0.25s all;
}


/* O efeito 3d se da apenas na rotação do texto do foreground misturado com a mudança de form do container da imagem */
section#about #about-page-1 .images-container .front-image:hover,
section#about #about-page-1 .images-container .front-image.hover {
    border-radius: 0;
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
}

section#about #about-page-1 .images-container .front-image .foreground span {
    -webkit-transition: 0.25s ease-out;
    -moz-transition: 0.25s ease-out;
    -o-transition: 0.25s ease-out;
    transition: 0.25s ease-out;
}

section#about #about-page-1 .images-container .front-image:hover .foreground span,
section#about #about-page-1 .images-container .front-image.hover .foreground span {
    -webkit-transform: rotateY(20deg);
    -moz-transform: rotateY(20deg);
    -o-transform: rotateY(20deg);
    transform: rotateY(20deg);
}


section#about #about-page-1.active  .images-container .front-image { 
    -webkit-animation: appear-left 2s var(--ease-out) 1.5s forwards;
    -moz-animation: appear-left 2s var(--ease-out) 1.5s forwards;
    -o-animation: appear-left 2s var(--ease-out) 1.5s forwards;
    animation: appear-left 2s var(--ease-out) 1.5s forwards;
}


section#about #about-page-1 .images-container .front-image img {
    width: 100%;
    height: auto;

    /* box-shadow: -8.80899px 13.2135px 37.4382px rgba(0, 0, 0, 0.5); */

    -webkit-transition: ease-out 0.25s;
    -moz-transition: ease-out 0.25s;
    -o-transition: ease-out 0.25s;
    transition: ease-out 0.25s;
}

section#about #about-page-1 .images-container .front-image:hover img,
section#about #about-page-1 .images-container .front-image.hover img {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}


section#about #about-page-1 .images-container .back-image {
    width: 466px;
    height: -moz-fit-content;
    height: fit-content;

    grid-column: 2/4;
    grid-row: 1/2;
}

section#about #about-page-1 .images-container .back-image img {
    width: 100%;
    height: auto;

    /* box-shadow: -29px 52px 27px -40px rgba(0, 0, 0, 0.5); */
   
    opacity: 0;

    -webkit-transform: translate3d(50%, 0, 0);
    -moz-transform: translate3d(50%, 0, 0);
    -o-transform: translate3d(50%, 0, 0);
    transform: translate3d(50%, 0, 0);
}

section#about #about-page-1.active .about-texts .main-text li:nth-child(1) { 
    -webkit-animation: translate-right 2s var(--ease-out) 0.25s both;
    -moz-animation: translate-right 2s var(--ease-out) 0.25s both;
    -o-animation: translate-right 2s var(--ease-out) 0.25s both;
    animation: translate-right 2s var(--ease-out) 0.25s both; 
}

section#about #about-page-1.active .about-texts .main-text li:nth-child(2) { 
    -webkit-animation: translate-right 2s var(--ease-out) 0.50s both;
    -moz-animation: translate-right 2s var(--ease-out) 0.50s both;
    -o-animation: translate-right 2s var(--ease-out) 0.50s both;
    animation: translate-right 2s var(--ease-out) 0.50s both; 
}

section#about #about-page-1.active .about-texts .main-text li:nth-child(3) { 
    -webkit-animation: translate-right 2s var(--ease-out) 0.75s both;
    -moz-animation: translate-right 2s var(--ease-out) 0.75s both;
    -o-animation: translate-right 2s var(--ease-out) 0.75s both;
    animation: translate-right 2s var(--ease-out) 0.75s both; 
}

section#about #about-page-1.active .about-texts .main-text li:nth-child(4) { 
    -webkit-animation: translate-right 2s var(--ease-out) 1.00s both;
    -moz-animation: translate-right 2s var(--ease-out) 1.00s both;
    -o-animation: translate-right 2s var(--ease-out) 1.00s both;
    animation: translate-right 2s var(--ease-out) 1.00s both; 
}


section#about #about-page-1.active .images-container .back-image img { 
    -webkit-animation: appear-left 2s var(--ease-out) 1s both;
    -moz-animation: appear-left 2s var(--ease-out) 1s both;
    -o-animation: appear-left 2s var(--ease-out) 1s both;
    animation: appear-left 2s var(--ease-out) 1s both;
}



/* =========================================
    PAGINA 2
============================================*/


section#about #about-page-2 {
    position: relative;

    overflow-x: hidden;
}

#about-page-2 .container {
    height: 100%;
}

#about-page-2 .images-container {
    width: 50%;

    height: -moz-fit-content;
    height: fit-content;

    display: grid;
    grid-template-rows: repeat(3, 1fr);

    align-items: center;
    justify-items: center;
    align-self: flex-end;

    -webkit-filter: drop-shadow(-8px 12px 12px rgba(0, 0, 0, 0.5));
    filter: drop-shadow(-8px 12px 12px rgba(0, 0, 0, 0.5));

    flex-shrink: 1;
}

#about-page-2 .images-container .front-image {
    max-width: 360px;
    height: -moz-fit-content;
    height: fit-content;

    border-radius: 50%;
    overflow: hidden;

    grid-row: 1/3;
    grid-column: 1/2;

    -webkit-transform: translate3d(-150%, 0, 0);
    -moz-transform: translate3d(-150%, 0, 0);
    -o-transform: translate3d(-150%, 0, 0);
    transform: translate3d(-150%, 0, 0);

    opacity: 0;

    z-index: 1;
}

#about-page-2 .images-container .front-image img {
    width: 100%;
    height: auto;
}

#about-page-2 .images-container .back-image {
    max-width: 580px;
    height: -moz-fit-content;
    height: fit-content;

    grid-row: 2/4;
    grid-column: 1/2;

    -webkit-transform: translate3d(-150%, 0, 0);
    -moz-transform: translate3d(-150%, 0, 0);
    -o-transform: translate3d(-150%, 0, 0);
    transform: translate3d(-150%, 0, 0);

    opacity: 0;
}

#about-page-2 .images-container .back-image img {
    width: 100%;
    height: auto;
}


#about-page-2 .text-container {
    padding-top: 80px;
    margin-left: 120px;

    max-width: 50%;
    min-width: 560px;

    height: 100%;

    opacity: 0;
}

#about-page-2 .title {
    font-size: 5.6em;
    font-weight: 400;

    margin-bottom: 20px;
    height: auto;

    flex: 0 0 auto;
}

#about-page-2 .main-text {
    position: relative;

    width: 100%;

    margin: 0 auto;

    font-size: 2.1em;
    line-height: 130%;
    color: var(--secondary-transparent);

    overflow: hidden;
    flex: 1 1 auto;

    display: flex;
}

#about-page-2 .main-text .gradient {
    position: absolute;
    width: 100%;
    height: 15%;

    background: -webkit-linear-gradient(180deg, var(--primary) -35.76%, rgba(235, 235, 235, 0) 111.11%);
    background: -moz-linear-gradient(180deg, var(--primary) -35.76%, rgba(235, 235, 235, 0) 111.11%);
    background: -o-linear-gradient(180deg, var(--primary) -35.76%, rgba(235, 235, 235, 0) 111.11%);
    background: linear-gradient(180deg, var(--primary) -35.76%, rgba(235, 235, 235, 0) 111.11%);

    pointer-events: none;
}

#about-page-2 .main-text .gradient.bottom {
    background: -webkit-linear-gradient(0deg, var(--primary) -35.76%, rgba(235, 235, 235, 0) 111.11%);
    background: -moz-linear-gradient(0deg, var(--primary) -35.76%, rgba(235, 235, 235, 0) 111.11%);
    background: -o-linear-gradient(0deg, var(--primary) -35.76%, rgba(235, 235, 235, 0) 111.11%);
    background: linear-gradient(0deg, var(--primary) -35.76%, rgba(235, 235, 235, 0) 111.11%);
    bottom: 0;
}


body.night #about-page-2 .main-text .gradient {
    background: -webkit-linear-gradient(180deg, var(--primary) -35.76%, rgba(43, 43, 43, 0) 111.11%);
    background: -moz-linear-gradient(180deg, var(--primary) -35.76%, rgba(43, 43, 43, 0) 111.11%);
    background: -o-linear-gradient(180deg, var(--primary) -35.76%, rgba(43, 43, 43, 0) 111.11%);
    background: linear-gradient(180deg, var(--primary) -35.76%, rgba(43, 43, 43, 0) 111.11%);
}

body.night #about-page-2 .main-text .gradient.bottom {
    background: -webkit-linear-gradient(0deg, var(--primary) -35.76%, rgba(43, 43, 43, 0) 111.11%);
    background: -moz-linear-gradient(0deg, var(--primary) -35.76%, rgba(43, 43, 43, 0) 111.11%);
    background: -o-linear-gradient(0deg, var(--primary) -35.76%, rgba(43, 43, 43, 0) 111.11%);
    background: linear-gradient(0deg, var(--primary) -35.76%, rgba(43, 43, 43, 0) 111.11%);
}


#about-page-2 .main-text .scrollable-text {
    padding: 15% 20px 40px 20px; /* Padding top tem que ser >= o tamanho do gradient */

    overflow-y: scroll;
}

#about-page-2 .main-text .scrollable-text p:not(:first-child) {
    margin-bottom: 2em;
}

#about-page-2 .main-text .scrollable-text hr {
    width: 60%;

    margin: 1em auto 2em auto;

    border-top: 0;
    border-color: var(--secondary-transparent);
}

#about-page-2 .main-text .scrollable-text::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}

#about-page-2 .main-text .scrollable-text::-webkit-scrollbar-thumb {
    background: var(--secondary-transparent);
    border-radius: 10px;
}

#about-page-2.active .images-container .front-image {
    -webkit-animation: translate-right 1s var(--ease-out) 0.2s forwards;
    -moz-animation: translate-right 1s var(--ease-out) 0.2s forwards;
    -o-animation: translate-right 1s var(--ease-out) 0.2s forwards;
    animation: translate-right 1s var(--ease-out) 0.2s forwards;
}

#about-page-2.active .images-container .back-image {
    -webkit-animation: translate-right 1s var(--ease-out) 0.0s forwards;
    -moz-animation: translate-right 1s var(--ease-out) 0.0s forwards;
    -o-animation: translate-right 1s var(--ease-out) 0.0s forwards;
    animation: translate-right 1s var(--ease-out) 0.0s forwards;
}

#about-page-2.active .text-container {
    -webkit-animation: appear 1s var(--ease-out) 1s forwards;
    -moz-animation: appear 1s var(--ease-out) 1s forwards;
    -o-animation: appear 1s var(--ease-out) 1s forwards;
    animation: appear 1s var(--ease-out) 1s forwards;
}


@media only screen and (max-width: 1440px){
    #about-page-2 .title {
        font-size: 5.2em;
    }

    section#about #about-page-1 .container {
        width: 95%;
    }
}

@media only screen and (max-width: 1366px){
    #about-page-2 .title {
        font-size: 5em;
    }
}

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

    section#about #about-page-1  .about-texts .main-text {
        font-size: 4.8em;
    }

    section#about #about-page-1 .images-container {
        grid-template-columns: repeat(3, 190px);
    }
}

@media only screen and (max-width: 1220px){
    section#about {
        height: 120vh;
        min-height: 1000px;
    }

    section#about #about-page-1 .container {
        justify-content: center;
        padding: 0 20px;
        
        height: unset;
    }
    
    section#about #about-page-1 .about-texts {
        min-width: 100%;
        margin-bottom: 150px;

        text-align: center;
        margin-left: 0;
    }

    section#about #about-page-1 .about-texts h1 {
        position: static;
        -webkit-transform: none;
        -moz-transform: none;
        -o-transform: none;
        transform: none;
        margin: 60px auto 45px auto;
    }

    section#about #about-page-1 .images-container {
        min-width: -moz-fit-content;
        min-width: fit-content;

        -webkit-transform: translateX(15%);
        -moz-transform: translateX(15%);
        -o-transform: translateX(15%);
        transform: translateX(15%);
        margin-right: 0;

        grid-template-columns: repeat(3, 210px);

    }

    section#about #about-page-1 .images-container .back-image{
        width: unset;
    }

    #about-page-2 .container {
        justify-content: center;

        padding: 0 50px 100px 50px;
    }

    #about-page-2 .images-container {
        position: absolute;
        top: 0;
        left: 0;

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

        grid-template-rows: 1fr;
        align-self: auto;

        -webkit-filter: blur(4px) brightness(0.4) grayscale(0.7) opacity(0.12);
        filter: blur(4px) brightness(0.4) grayscale(0.7) opacity(0.12);
    }

    #about-page-2 .images-container .front-image {
        display: none;
    }

    #about-page-2 .images-container .back-image {
        width: 100%;
        height: 100%;
        max-width: none;

        grid-row: 1/2;
    }

    #about-page-2 .images-container .back-image img {
        max-width: none;
        width: 100%;
        height: 100%;

        -o-object-fit: cover;
        object-fit: cover;
    }


    #about-page-2 .text-container {
        margin-left: 0;
        min-width: 0;
        max-width: 550px;
    }

    #about-page-2 .main-text {
        background: var(--primary-transparent);
        border-radius: 20px;

        box-shadow: 0px 4px 18px 8px rgba(0, 0, 0, 0.2);
    }

    #about-page-2 .text-container .title {
        margin: 0 auto 50px auto;
        max-width: 80%;
    }

    #about-page-2 .main-text .gradient {
        border-radius: 20px 20px 0 0;
    }

    #about-page-2 .main-text .gradient.bottom {
        border-radius: 0 0 20px 20px;
    }
}

@media only screen and (max-width: 750px){
    #about-page-2 .title {
        font-size: 4.4em;
    }
}

@media only screen and (max-width: 660px){
    section#about #about-page-1 .about-texts {
        margin-bottom: 80px;
    }

    section#about #about-page-1 .about-texts .main-text {
        font-size: 4.2em;
    }

}

@media only screen and (max-width: 640px){
    #about-page-2 .title {
        font-size: 3.8em;
        max-width: 90%;
    }
}

@media only screen and (max-width: 560px){
    section#about #about-page-1 .about-texts .main-text {
        font-size: 3.6em;
    }
}

@media only screen and (max-width: 550px) {
    section#about #about-page-1 .container {
       padding-top: 50px;
    }

    section#about #about-page-1 .images-container {
        grid-template-columns: repeat(3, 150px);
    }
    
    section#about #about-page-1 .images-container .front-image {
        max-width: 230px;
    }
}

@media only screen and (max-width: 490px){
    section#about #about-page-1 .about-texts h1 {
        font-size: 2.8em;
        margin: 0 auto 50px auto;
    }

    section#about #about-page-1 .about-texts .main-text {
        font-size: 3em;
    }
}

@media only screen and (max-width: 450px){
    section#about {
        min-height: 750px;
    }

    #about-page-2 .container {
        padding-left: 25px;
        padding-right: 25px;
    }

    #about-page-2 .title {
        font-size: 3.2em;
        margin-bottom: 25px;
    }
}

@media only screen and (max-width: 380px){
    section#about #about-page-1 .about-texts .main-text {
        font-size: 2.4em;
    }

    section#about #about-page-1 .images-container {
        grid-template-columns: repeat(3, 125px);
    }

}


@media only screen and (min-width: 1220px) and (max-height: 800px){
    #about-page-2 .images-container {
        max-width: 480px;
    } 
 }

