@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-image: url(./assets/wallpaper\ image.jpeg);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    width: 100%;
    user-select: none;
    overflow-x: hidden;
}

/* TELA DE INTRODUÇÃO A PÁGINA ------------------------------------------------------------------------------------- */

#intro-container {
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 2;
    display: flex;
    position: fixed;
    top: 0;
}

#intro-box {
    width: 80%;
    height: 20vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-intro {
    color: #FFF;
    font-size: 6vw;
    font-weight: 400;
    white-space: nowrap;
    display: none;
}

/* HEADER  --------------------------------------------------------------------------------------------------------- */

#header-container {
    width: 100%;
    height: 10vh;
    background-color: #000;
    border: none;
    display: flex;
    justify-content: space-between;
    position: fixed;
    z-index: 1;
    overflow: hidden;
}

#logo-box {
    width: 30%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

#logo-image {
    width: auto;
    height: 100%;
}

#link-box {
    width: 60%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.button-link-header {
    width: 18%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5vw;
    line-height: 1.5vw;
    font-weight: 200;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.button-link-header span {
    letter-spacing: 1px;
    transition: top 0.4s;
}

.button-text-one {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: color 5s;
}

.button-text-two {
    position: absolute;
    width: 100%;
    top: 150%;
    left: 0;
    transform: translateY(-50%);
    transition: color 5s;
}

.button-link-header:hover .button-text-one {
    top: -100%;
}

.button-link-header:hover .button-text-two {
    top: 50%;
}

#select-box {
    height: 100%;
    position: relative;
}

#select-icon {
    height: 1.8vw;
    width: auto;
    position: absolute;
    top: 50%;
    left: 4%;
    transform: translateY(-50%);
}

#button-link-header-language {
    width: 100%;
    height: 100%;
    color: #FFF;
    background-color: #000;
    border: none;
    cursor: pointer;
    outline: none;
    appearance: none;
    font-size: 1.5vw;
    line-height: 2vw;
    font-weight: 200;
    padding-left: 2.5vw;
}

#link-box-mobile {
    display: none;
}

#button-link-header-menu-box {
    width: 4vh;
    height: 4vh;
    border: none;
    background-color: transparent;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    cursor: pointer;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.button-link-header-menu {
    width: 90%;
    height: 0.3vh;
    background-color: #FFF;
    position: absolute;
}

#button-link-header-menu-box div:nth-child(1) {
    top: 25%;
}

#button-link-header-menu-box div:nth-child(2) {
    top: 50%;
}

#button-link-header-menu-box div:nth-child(3) {
    top: 75%;
}


/* PÁGINA PRINCIPAL ----------------------------------------------------------------------------------------------- */

#homepage-container {
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

#homepage-box {
    width: 80%;
    height: 60vh;
    position: absolute;
    top: 53%;
    left: 30%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    text-align: start;
    justify-content: center;
    color: #FFF;
}

.homepage-text-box {
    overflow: hidden;
}

#homepage-text-1 {
    font-size: 2vw;
    line-height: 2vw;
    font-weight: 400;
    display: flex;
    margin-left: 0.3vw;
}

.homepage-text-principal {
    font-size: 7vw;
    line-height: 6.5vw;
    font-weight: 800;
    animation: backgroundAnimation 6s infinite;
    background: linear-gradient(45deg, rgb(111, 111, 228),rgb(90, 204, 80));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes backgroundAnimation {
    0% {
        background-position: 0% 50%; /* Definimos a posição inicial do gradiente */
    }
    50% {
        background-position: 100% 50%; /* Movemos o gradiente para a direita no meio da animação */
    }
    100% {
        background-position: 0% 50%; /* Voltamos à posição inicial do gradiente no final da animação */
    }
}

#homepage-buttons-box {
    width: 40vw;
    height: 3vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-left: 0.3vw;
}

.homepage-buttons {
    height: 2.5vw;
    border: none;
    font-size: 1vw;
    line-height: 1vw;
    font-weight: 200;
    letter-spacing: 0.8px;
    border-radius: 0.4vw;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 0 0.6vw;
    gap: 0.6vw;
    color: #FFF;
    background: linear-gradient(rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.3) 100%);
    cursor: pointer;
    margin-bottom: 100%;
    transition: margin-bottom 0.5s ease;
}

.homepage-buttons:hover {
    background: linear-gradient(rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.homepage-buttons:active {
    background: rgba(0, 0, 0, 0.3)
}

.homepage-icon {
    width: 1.25vw;
    height: 1.25vw;
}

a {
    text-decoration: none;
}

/* PÁGINA "SOBRE MIM"  --------------------------------------------------------------------------------------------- */

#about-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

#about-box {
    width: 65%;
    height: 70%;
    position: relative;
    margin-top: 10vh;
    background: linear-gradient(rgba(255, 255, 255, 0.7)0%, rgba(255, 255, 255, 0.5)100%);
    box-shadow: 0px 0px 40px 20px rgba(0, 0, 0, 1);
    margin-left: 10%;
}

#about-image-box {
    width: 40%;
    height: 100%;
    position: relative;
}

#about-image {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    background-color: transparent;
    filter: grayscale(20%);
}

#about-text-box {
    width: 80%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    color: #000;
}

#about-text-1 {
    width: 95%;
    text-align: center;
    font-size: 3.5vw;
    line-height: 3.5vw;
    font-weight: 400;
    margin-bottom: 2vh;
    position: relative;
}

#about-text-2 {
    width: 95%;
    font-size: 1.2vw;
    line-height: 1.2vw;
    font-weight: 400;
    text-align: justify;
    position: relative;
}

#technologies-box {
    width: 95%;
    margin-top: 2vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.technologies-label-box {
    width: 5vw;
    height: 5vw;
    position: relative;
    transition: 0.3s linear;
    background-color: #000;
    box-shadow: -5px 5px 15px 0px rgba(1, 1, 1, 1);
}

.technology {
    height: 80%;
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: 0.3s linear;
}

.technologies-label {
    font-size: 0.8vw;
    line-height: 1.2vw;
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: 0.3s linear;
    color: #FFF;
}

.technologies-label-box:hover {
    transform: scale(1.2);
    justify-content: end;
}

.technologies-label-box:hover .technology {
    height: 50%;
    width: 50%;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
}

.technologies-label-box:hover .technologies-label {
    opacity: 1;
    top: 70%;
    left: 50%;
    transform: translate(-50%, 0);
}

/* PÁGINA "PROJETOS" ----------------------------------------------------------------------------------------------- */

#project-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 0;
}

#project-box {
    width: 90vw;
    height: 80vh;
    margin-top: 10vh;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    z-index: 0;
}

#arrow-change-page-box {
    width: 105%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

header {
    z-index: 2;
}

.arrow-change-page {
    font-size: 6vh;
    line-height: 7vh;
    width: 7vh;
    text-align: center;
    border-radius: 3.5vh;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: #5858d3;
}

.arrow-change-page:hover {
    transform: scale(1.5);
    background-color: rgba(0, 0, 0, 0.15);
}

.arrow-change-page:active {
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1);
}

#project-image-box {
    width: 40%;
    height: 90%;
    perspective: 1000px;
}

#flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    border-radius: 5vh;
    border: 1px solid #000;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 5vh;
}

.flip-card-front {
    background: linear-gradient(rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.flip-card-back {
    background: linear-gradient(rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
    transform: rotateY(180deg);
}

.tablet-image {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.smartphone-image {
    width: auto;
    height: 70%;
    position: absolute;
    bottom: 3%;
    left: 10%;
}

#project-text-box {
    width: 50%;
    height: 90%;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#project-text-1 {
    width: 100%;
    text-align: center;
    font-size: 2vw;
    margin-bottom: 2vh;
    color: #e2dada;
}

.project-text {
    text-align: justify;
    width: 100%;
    margin-top: 1vh;
    font-size: 1.4vw;
    line-height: 1.4vw;
    font-weight: 400;
    color: #e2dada;
}

#project-buttons {
    width: 100%;
    height: 3.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5vw;
    margin-top: 3vh;
}

.project-button {
    height: 100%;
    min-width: 25%;
    border: none;
    border-radius: 1vh;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    gap: 1vh;
}

.project-button-icon {
    width: 2vw;
    height: 2vw;
}

.project-button:hover {
    transform: scale(110%);
}

.project-button:active {
    opacity: 0.8;
}

.project-button-label {
    font-size: 1.2vw;
    font-weight: 200;
}

/* AJUSTES DE RESPONSIVIDADE PARA DISPOSITIVOS COM TELA MENOR QUE 750PX */
@media screen and (max-width: 750px) {

    /* HEADER ------------------------------------------------------------------------------------------------------ */
    #logo-box {
        justify-content: start;
        padding-left: 1vw;
    }

    #logo-image {
        height: 85%;
    }

    /* PÁGINA PRINCIPAL -------------------------------------------------------------------------------------------- */
    #homepage-box {
        left: 15%;
    }

    #homepage-text-1 {
        height: 3vw;
        font-size: 3vw;
        line-height: 3vw;
    }

    .homepage-text-principal {
        font-size: 8vw;
        line-height: 7vw;
    }

    #homepage-buttons-box {
        width: 50vw;
        height: 4vw;
    }

    .homepage-buttons {
        height: 3.5vw;
        font-size: 1.5vw;
        line-height: 1.5vw;
    }

    .homepage-icon {
        width: 1.5vw;
        height: 1.5vw;
    }

    /* PÁGINA "SOBRE MIM" ------------------------------------------------------------------------------------------ */
    
    #about-box {
        width: 75%;
    }

    #about-text-1 {
        font-size: 4vw;
        line-height: 4vw;
    }

    #about-text-2 {
        font-size: 1.4vw;
        line-height: 1.4vw;
    }

    .technologies-label {
        font-size: 0.9vw;
        line-height: 0.9vw;
    }

    /* PÁGINA "PROJETOS" -------------------------------------------------------------------------------------------- */

    #arrow-change-page-box {
        width: 110%;
    }

    .arrow-change-page:hover {
        transform: scale(1);
        background-color: transparent;
    }

    .arrow-change-page:active {
        box-shadow: none;
    }

    #project-image-box {
        width: 40%;
        height: 90%;
    }

    .tablet-image {
        display: none;
    }

    .smartphone-image {
        min-width: auto;
        height: 95%;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%)
    }

    #project-text-1 {
        width: 100%;
        font-size: 3.2vw;
        text-align: center;
        margin-bottom: 1vh;
    }

    .project-text {
        font-size: 1.6vw;
        line-height: 1.6vw;
    }

    #project-buttons {
        height: 5vw;
        margin-top: 2vh;
    }

    .project-button {
        width: 30%;
    }

    .project-button-icon {
        width: 3vw;
        height: 3vw;
    }

    .project-button-label {
        font-size: 1.8vw;
    }
}

/* AJUSTES DE RESPONSIVIDADE PARA DISPOSITIVOS COM TELA MENOR QUE 450PX */
@media screen and (max-width: 450px) {

    /* HEADER ----------------------------------------------------------------------------------------------------- */
    #header-container {
        justify-content: start;
    }

    #logo-box {
        width: 100%;
        justify-content: space-between;
        padding-left: 1vh;
        padding-right: 3vh;
    }

    #logo-image {
        width: 50%;
        height: auto;
        margin-left: 2vw;
    }

    #button-link-header-menu-box {
        display: flex;
    }

    #link-box {
        display: none;
    }

    #link-box-mobile {
        width: 70%;
        height: 90%;
        display: flex;
        flex-direction: column;
        justify-content: start;
        position: fixed;
        top: 10vh;
        right: 0;
        background-color: #242329;
        transition: right 0.5s ease;
        z-index: 500;
    }

    .button-link-header-mobile {
        width: 100%;
        height: 6.5vh;
        border: none;
        border-bottom: 1px solid #383838;
        background-color: #242329;
        color: #ffffff;
        font-size: 2.5vh;
        font-weight: 200;
        text-align: start;
        padding-left: 5vw;
        cursor: pointer;
        outline: none;
        transition: padding-left 0.2s linear;
    }

    #options-box-mobile {
        display: none;
    }

    .button-link-options-mobile {
        width: 100%;
        height: 6.5vh;
        border: none;
        border-bottom: 1px solid #383838;
        background-color: #242329;
        color: #FFF;
        font-size: 2.5vh;
        font-weight: 200;
        text-align: center;
        cursor: pointer;
        outline: none;
    }

    #button-link-header-language-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 2vh;
    }

    #arrow-language-mobile {
        width: 3.5vh;
        height: 3.5vh;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5vh;
        transform: rotate(-90deg);
    }

    #contact-box-mobile {
        width: 100%;
        height: 8vh;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    #line {
        width: 85%;
        height: 1px;
        background-color: #fff;
    }

    #contact-text-mobile {
        background-color: #242329;
        padding: 0 2vh;
        color: #fff;
        font-size: 2.5vh;
        font-weight: 200;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .button-link-contact-mobile {
        width: 100%;
        height: 9vh;
        border: none;
        background-color: transparent;
        color: #fff;
        font-size: 2.5vh;
        font-weight: 200;
        display: flex;
        align-items: center;
        justify-content: start;
        gap: 3vh;
        padding-left: 5vw;
        cursor: pointer;
        outline: none;
    }

    .homepage-icon-mobile {
        width: 3.5vh;
        height: 3.5vh;
    }

    /* PÁGINA PRINCIPAL ------------------------------------------------------------------------------------------- */

    #homepage-box {
        width: 100%;
        left: 5%;
    }

    #homepage-text-1 {
        height: 4.5vw;
        font-size: 4.5vw;
        line-height: 4.5vw;
    }

    .homepage-text-principal {
        font-size: 9vw;
        line-height: 9vw;
    }

    #homepage-buttons-box {
        display: none;
    }

    /* PÁGINA "SOBRE MIM"  ---------------------------------------------------------------------------------------- */

    #about-box {
        width: 80%;
        margin-top: 18vh;
        margin-left: 0;
    }

    #about-image-box {
        width: 100%;
        height: 17%;
    }

    #about-image {
        max-height: 200%;
        top: 0;
        left: 50%;
    }

    #about-text-box {
        width: 100%;
        height: auto;
        top: auto;
        align-items: center;
        justify-content: start;
        margin-top: 4vh;
    }

    #about-text-1 {
        width: 100%;
        font-size: 6vw;
        line-height: 6vw;
    }

    #about-text-2 {
        width: 90%;
        font-size: 1.5vh;
        line-height: 1.5vh;
    }

    .technologies-label-box {
        width: 8.5vw;
        height: 8.5vw;
    }

    .technologies-label {
        font-size: 1.4vw;
        line-height: 1.4vw;
    }

    /* PÁGINA "PROJETOS" ------------------------------------------------------------------------------------------ */

    #project-box {
        flex-direction: column;
        justify-content: start;
    }

    #arrow-change-page-box {
        width: 110%;
    }

    header {
        z-index: 2;
    }

    #project-image-box {
        width: 70%;
        height: 35%;
    }

    #flip-card-inner {
        border-radius: 1vh;
    }

    .flip-card-front,
    .flip-card-back {
        border-radius: 1vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tablet-image {
        display: block;
        width: auto;
        max-width: 90%;
        max-height: 100%;
        height: auto;
        position: static;
        top: auto;
        left: auto;
        transform: translateX(0);
    }

    .smartphone-image {
        display: none;
    }

    #project-text-box {
        width: 80%;
        height: 65%;
        justify-content: center;
    }

    #project-text-1 {
        height: 5vh;
        font-size: 4.5vw;
        line-height: 4.5vw;
        font-weight: 800;
        margin-top: 0;
        margin-bottom: 1vh;
    }

    .project-text {
        width: 100%;
        margin-top: 0;
        font-size: 3.2vw;
        line-height: 3.2vw;
    }

    #project-buttons {
        height: 8vw;
    }

    .project-button {
        width: 30%;
        justify-content: space-evenly;
        gap: 0;
    }

    .project-button-icon {
        width: 4vw;
        height: 4vw;
    }

    .project-button:hover {
        transform: scale(110%);
    }

    .project-button:active {
        opacity: 0.8;
    }

    .project-button-label {
        font-size: 2.7vw;
        line-height: 2.7vw;
        font-weight: 400;
    }

}