/* Setar cores */

:root {
    --fundo: #FFF9F0;
    --texto: #1D1D1B;
}

/* Scroll */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    box-shadow: var(--texto);
}

::-webkit-scrollbar-thumb {
    background: var(--texto);
}

::-webkit-scrollbar-thumb:hover {
    background: #0a0a09;
}

/* Importar fontes */

@font-face {
    font-family: Texto;
    src: url(fonts/Montserrat.ttf);
}

@font-face {
    font-family: 'Titulos';
    src: url('fonts/Frunchy.woff2') format('woff2'),
         url('fonts/Frunchy.woff') format('woff'),
         url('fonts/Frunchy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Configs gerais */

body {
    background-color: var(--fundo);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    font-family: "Texto";
    color: var(--texto);
}

a {
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

.titulo {
    font-family: "Titulos";
}

section {
    width: 80vw;
    margin: auto;
}

.reveal-bottom,
.reveal-top,
.reveal-left,
.reveal-right,
.reveal-center {
    will-change: transform, opacity;
}

::selection {
    color: var(--fundo);
    background: var(--texto);
}



/* Navbar */

nav {
    width: 100vw;
    height: 100px;
    background-color: var(--fundo);
    display: flex;
    align-items: center;
    padding: 0px 100px;
}

nav img {
    width: 75px;
    cursor: pointer;
    transition: 0.3s;
}

nav img:hover {
    opacity: 0.7;
}

nav aside {
    margin-left: auto;
    display: flex;
    gap: 20px;
}

nav aside a {
    font-weight: 400;
}

@media (orientation: portrait) {
    nav {
        padding: 0px 0px;
        height: 80px;
    }

    nav img {
        margin: auto;
        width: 60px;
    }

    nav aside {
        display: none;
    }
}

/* Header */

#carousel-header {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

#carousel-header .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#carousel-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(40%);
    animation: banner-inicio 10s ease-in forwards;
}

@keyframes banner-inicio {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.5);
    }
}

#carousel-header .titulo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: var(--fundo);
    font-weight: 400;
}

@media (orientation: portrait) {
    #carousel-header .titulo {
        width: 100%;
        text-align: center;
        left: 0%;
        transform: translate(0%, -50%);
    }
}

/* Portifolio */

.section-portifolio {
    padding: 60px 20px;
}

.titulo-portifolio {
    text-align: center;
    font-size: 5rem;
    margin-bottom: 50px;
    color: var(--texto);
    font-weight: 400;
}

.gallery {
    column-count: 4;
    column-gap: 5px;
    width: 100%;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    margin-bottom: 5px;
    display: block;
    break-inside: avoid;
    object-fit: cover;
}

.final-portifolio {
    position: relative;
    bottom: 300px;
    width: 100vw;
    height: 300px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 249, 240, 1) 100%);
}

.button-vermais {
    position: relative;
    bottom: 100px;
    width: 200px;
    padding: 15px;
    display: flex;
    justify-content: center;
    margin: auto;
    background: var(--texto);
    color: var(--fundo);
    font-size: 1.1rem;
    border: 1px solid var(--texto);
    border-radius: 10px;
    cursor: pointer;
    transition: .3s ease-in-out;
}

/* Tablet */
@media (max-width: 900px) {
    .gallery {
        column-count: 3;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .gallery {
        column-count: 1;
    }
}


/* Sobre mim */

.section-sobre {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 50px;
    border-radius: 20px;
    max-width: 1500px;
    margin: 40px auto;
}

.figure-sobre img {
    width: 420px;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.aside-sobre {
    max-width: 500px;
}

.titulo-sobre {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--texto);
    font-weight: 400;
}

.aside-sobre p {
    font-size: 1.1rem;
    line-height: 1.7rem;
    color: var(--texto);
}

@media (max-width: 1055px) {

    .section-sobre {
        position: relative;
        flex-direction: column;
        padding: 40px 20px;
        border-radius: 20px;
        overflow: hidden;
        background: #000;
    }

    /* A IMAGEM VIRA O FUNDO */
    .figure-sobre {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .figure-sobre img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(25%);
        /* escurece */
        border-radius: 0;
    }

    /* TEXTO POR CIMA */
    .aside-sobre {
        position: relative;
        z-index: 2;
        text-align: center;
        max-width: 100%;
    }

    .titulo-sobre {
        color: #f7f7f7;
        font-size: 2.4rem;
        margin-bottom: 20px;
    }

    .aside-sobre p {
        color: #e2e2e2;
        font-size: 1.1rem;
        line-height: 1.7rem;
        padding: 0 10px;
    }
}

/* Contato */

.section-contato {
    padding: 60px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.section-contato h1 {
    text-align: center;
    font-size: 5rem;
    margin-bottom: 50px;
    color: var(--texto);
    font-weight: 400;
}

.section-contato label {
    display: block;
    font-size: 1rem;
    color: var(--texto);
    margin-bottom: 6px;
    margin-top: 20px;
}

.section-contato input,
.section-contato textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--texto);
    background: transparent;
    font-size: 1rem;
    outline: none;
    transition: .2s ease-in-out;
}

.section-contato input:focus,
.section-contato textarea:focus {
    background: transparent;
}

.section-contato button {
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background: var(--texto);
    color: var(--fundo);
    font-size: 1.1rem;
    border: 1px solid var(--texto);
    border-radius: 10px;
    cursor: pointer;
    transition: .3s ease-in-out;
}

.section-contato button:hover {
    background: transparent;
    color: var(--texto);
}

#sucesso-contato {
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background-color: rgb(51, 138, 51);
    color: var(--fundo);
    font-size: 1.1rem;
    border-radius: 10px;
    color: var(--fundo);
    text-align: center;
}

#falha-contato {
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background-color: rgb(138, 51, 51);
    color: var(--fundo);
    font-size: 1.1rem;
    border-radius: 10px;
    color: var(--fundo);
    text-align: center;
}

@media (max-width: 600px) {

    .section-contato h1 {
        margin-bottom: 30px;
    }

    .section-contato input,
    .section-contato textarea {
        padding: 13px;
        font-size: 1rem;
    }

    .section-contato button {
        padding: 13px;
        font-size: 1rem;
    }
}

/* Footer */

footer {
    border: 1px solid var(--texto);
    height: 300px;
    width: 100vw !important;
    display: flex;
    align-items: center;
    padding: 0 10vw;
}

.sub-footer {
    width: 100%;
    padding: 0 5vw;
    box-sizing: border-box;
}

.footer-logo img {
    width: 120px;
}

.footer-links {
    color: var(--texto);
    display: flex;
    flex-direction: column;
    margin-left: auto;
    gap: 5px;
}

.redes-sociais {
    display: flex;
}

.redes img {
    width: 20px;
    cursor: pointer;
}

.sub-footer {
    background-color: var(--texto);
    width: 100vw;
    height: 50px;
    display: flex;
    align-items: center;
}

.infos-sub {
    display: flex;
    gap: 15px;
}

.infos-sub p {
    color: var(--fundo);
}

.infos-sub a {
    color: var(--fundo);
    text-decoration: underline;
}

.redes-sociais-sub {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.redes-sociais-sub img {
    width: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.redes-sociais-sub img:hover {
    opacity: 0.7;
}

@media (orientation: portrait) {
    footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 45px;
    }

    .footer-links {
        display: none;
    }

    .redes-sociais-sub {
        display: none;
    }

    .redes-sociais {
        display: flex;
        gap: 20px;
    }

    .redes-sociais img {
        filter: invert();
        width: 30px;
    }

    .sub-footer {
        height: 70px;
    }

    .divisor-sub {
        display: none;
    }

    .infos-sub {
        font-size: 80%;
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin: auto;
    }
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    cursor: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
