/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap" rel="stylesheet">');

/*=============== VARIÁVEIS CSS ===============*/
:root {
    --header-height: 2.5rem;
    --font-semi: 400;
    /*=============== CORES ===============*/
    --first-color: #ec6326;
    --second-color: #f4e6db;
    --third-color: #222222;
    --fourth-color: #08a4bf;
    --shadow-black: #22222291;
    /*=============== TIPOGRAFIA ===============*/
    --body-font: 'Syne', sans-serif;
    --big-font-size: 2.8rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --smaller-font-size: .75rem;
    /*=============== MARGINS ===============*/
    --mb-2: 1rem;
    --mb-4: 2rem;
    --mb-5: 2.5rem;
    --mb-6: 3rem;
    /*=============== Z INDEX ===============*/
    --z-back: -10;
    --z-fixed: 100;
}

/*=============== BASE ===============*/
@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3.5rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
        --smaller-font-size: .875rem;
    }
}
*, ::before, ::after  {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--second-color);
    background-color: var(--third-color);
    transition: background 0.2s linear;
}
h1, h2, p {
    margin: 0;
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
a {
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.bg {
    background-image: url(../images/background.svg);
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center center;
    background-attachment: fixed;
}



/*=============== BOTÃO DARK/LIGHT ===============*/
.checkbox-dw {
    opacity: 0;
    position: absolute;
}
.label {
    background-color: var(--first-color);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    height: 26px;
    width: 50px;
    transform: scale(1);
}
.label .ball {
    background-color: var(--third-color);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 22px;
    width: 22px;
    transform: translateX(0px);
    transition: transform 0.2s linear;
}
.checkbox-dw:checked + .label .ball{
    transform: translateX(24px)
}
.fa-moon {
    color: var(--third-color)
}
.fa-sun {
    color: var(--third-color);
}

/*=============== MODO WHITE ===============*/
body.white {
    background-image: url(../images/background2.svg);
    color: var(--third-color);
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center center;
    background-attachment: fixed;
    .my_header{
        background-color: var(--fourth-color);
    }
    .home__social-icon {
        color: var(--second-color);
    }
    .home__social-icon:hover {
        color: var(--first-color);
    }
    .section-title::after {
        background-color: var(--third-color);
    }
    .about__text{
        border-left: solid 1px var(--first-color);
    }
    .skills__data {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        background-color: #f5f5f580;
        font-weight: var(--font-semi);
        padding: .5rem 1rem;
        margin-bottom: var(--mb-4);
        border-radius: .5rem;
        box-shadow: 0px 4px 25px rgba(34, 34, 34, 0.5);
    }
}

/*=============== BOTÃO VOLTAR AO TOPO ===============*/
.link-home{
    text-decoration: none;
    color: var(--third-color);
    background-color: var(--first-color);
    padding: 8px;
    border-radius: 10px;
    border: 2px solid var(--third-color);
    position: fixed;
    right: 20px;
    bottom: 30px;
    box-shadow: 1px 1px 1px var(--third-color);
    opacity: 0;
    visibility: hidden;
    transition: all .5s ease;
}
.link-home.active{
    opacity: 1;
    visibility: visible;
}

/*=============== ESTILO SCROLL ===============*/
::-webkit-scrollbar{
    width: 5px;
}
::-webkit-scrollbar:hover{
    width: 10px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--first-color);
    border: 1px solid var(--third-color);
}

/*=============== SELEÇÃO DE TEXTO ===============*/
::selection {
    background: var(--first-color);
    color: var(--third-color);
}

/*=============== SESSÕES =============== */
.section-title {
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--second-color);
    text-shadow: 2px 1.5px 1px var(--shadow-black);
    margin-top: var(--mb-2);
    margin-bottom: var(--mb-4);
    text-align: center;
}
.section-title::after {
    position: absolute;
    content: '';
    width: 64px;
    height: 0.18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2rem;
    background-color: var(--first-color);
}
.section {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/*=============== LAYOUTS ===============*/
.bd-grid {
    max-width: 1100px;
    display: grid;
    margin-left: var(--mb-2);
    margin-right: var(--mb-2);
}
.my_header {
    width: 100%;
    position:fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--second-color);
    box-shadow: 0 2px 8px var(--shadow-black);
}

/*=============== NAVBAR ===============*/
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--font-semi);
}
/*=============== MENU HAMBURGUER ===============*/
@media screen and (max-width: 779px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        right: -110%;
        width: 45%;
        height: 35%;
        padding: 1.3rem;
        border-radius: 0px 0px 0px 20px;
        background-color: var(--second-color);
        transition: .5s;
    }
}
.nav__item {
    margin-bottom: var(--mb-4);
}
.nav__link {
    position: relative;
}
.nav__link:hover {
    position: relative;
    color: var(--third-color);
}
.nav__link:hover::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 0.18rem;
    left: 0;
    top: 1.5rem;
    background-color: var(--first-color);
}
.nav_logo {
    max-width: 150px;
}
.nav__toggle {
    color: var(--third-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding-left: 10px;
}
/*=============== MENU ATIVO ===============*/
.active::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 0.18rem;
    left: 0;
    top: 1.5rem;
    background-color: var(--first-color);
}
/*=============== SHOW MENU ===============*/
.show {
    right: 0;
}

/*=============== INÍCIO ===============*/
.home {
    display: flex;
    position: relative;
    row-gap: 4rem;
    padding: 4rem 0 5rem;
    justify-content: space-between;
}
.home__data {
    align-self: center;
}
.home__title {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-5);
}
.home__title-color {
    color: var(--first-color);
    text-shadow: 2px 1.5px 1px #22222291;
}
.home__social {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.home__social-icon {
    margin: 0;
    padding: 5px;
    font-size: 3.5rem;
    color: var(--second-color);
    text-shadow: 1px 2px 2px var(--third-color);
}
.home__social-icon:hover {
    color: var(--first-color);
}
.box {
    display: flex;
    justify-content: center;
    position: relative;
    background: url(../images/perfil.svg);
    -webkit-background-size: cover;
    background-color: var(--first-color);
    border: solid 2px var(--third-color);
    background-size: cover;
    background-position: center center;
    height: 400px;
    width: 450px;
    box-shadow: 4px 5px 5px 6px rgba(0, 0, 0, 0.075);
    animation: animate 5s ease-in-out infinite;
    transition: all 0.3s ease-in-out;
}
.box:hover {
    border: solid 2px var(--second-color);
}
@keyframes animate{
    0%{
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
    50%{
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }
    100%{
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
}

/*=============== BOTÕES ===============*/
.button {
    display: inline-block;
    background-color: var(--second-color);
    color: var(--third-color);
    padding: .75rem 2.5rem;
    font-weight: 600;
    border-radius: 30px;
    border: solid 2px var(--third-color);
    transition: all .3s;
}
.button:hover {
    box-shadow: rgba(17, 17, 26, 0.3) 0px 4px 15px, rgba(17, 17, 26, 0.3) 0px 16px 56px, rgba(17, 17, 26, 0.3) 0px 24px 80px;
    background-color: var(--first-color);
    color: var(--second-color);
}

/*=============== SOBRE MIM ===============*/
.about__container {
    padding-left: 70px;
    padding-right: 70px;
    text-align:center;
}
.about__subtitle {
    margin-bottom: 1.5rem;
}
.about__text {
    text-align: justify;
    font-weight: 400;
    font-size: 16px;
    border-left: solid 2px var(--first-color);
    padding-left: 25px;
}
.text_link{
    text-decoration: none;
    color: var(--first-color);
    font-weight: 700;
    text-shadow: 0.5px 0.5px 1px var(--third-color);
}
.text_link:hover{
    color: aqua;
}

/*=============== HABILIDADES ===============*/
.skills__container {
    row-gap: 2rem;
    text-align: center;
}
.skills__subtitle {
    margin-bottom: var(--mb-2);
}
.skills__text {
    margin-bottom: var(--mb-4);
}
.skills__data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: rgb(34, 34, 34, 0.5);
    font-weight: var(--font-semi);
    padding: .5rem 1rem;
    margin-bottom: var(--mb-4);
    border-radius: .5rem;
    
}
.skills__icon {
    font-size: 2rem;
    margin-right: var(--mb-2);
    color: var(--second-color);
}
.skills__names {
    display: flex;
    align-items: center;
}
.skills__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--first-color);
    height: .25rem;
    border-radius: .5rem;
    z-index: var(--z-back);
}
.skills__html {
    width: 90%;
}
.skills__css {
    width: 75%;
}
.skills__js {
    width: 50%;
}
.skills__img {
    border-radius: .5rem;
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
}

/*=============== PROJETOS ===============*/
.work__container {
    row-gap: 2rem;
}
.work__img {
    box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
    border-radius: .5rem;
    overflow: hidden;
}
.work__img img {
    transition: 1s;
}
.work__img img:hover {
    transform: scale(1.1);
}
.project-name {
    background-color: var(--second-color);
    color: var(--third-color);
    border: none;
    position: relative;
    font-weight: 500;
    text-align: center;
    padding: 10px;
}

/*=============== CONTATO ===============*/
.contact__form{
    display:flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    justify-content: center;
}
.contact__input {
    display: block;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi);
    width: 60%;
    padding: 1rem;
    border-radius: 30px;
    outline: none;
    border: var(--third-color) solid 2px;
    margin-bottom: var(--mb-4);
    transition: border .3s;
    resize: none;
}
.message {
    height: 250px;
}
.contact__input:focus {
    border: 2px solid var(--first-color);
    background: #e9e9e9; 
}
.contact__button {
    font-family: var(--body-font);
    color: var(--third-color);
    width: 20rem;
    border: var(--third-color) solid 2px;
    background: var(--second-color);
    padding: 0.8rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all .3s;
}
.contact__button:hover {
    color: var(--second-color);
    box-shadow: rgba(17, 17, 26, 0.3) 0px 8px 24px, rgba(17, 17, 26, 0.3) 0px 16px 56px, rgba(17, 17, 26, 0.3) 0px 24px 80px;
    background-color: var(--first-color);
    cursor: pointer;
}

/*=============== FOOTER ===============*/
.footer {
    background-color: transparent;
    color: var(--third-color);
    text-align: center;
    font-weight: var(--font-semi);
    padding: 1rem;
}
.footer_title {
    text-decoration: none;
    color: var(--third-color);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: default;
}
.footer__copy {
    padding-top: 0.5rem;
    font-size: var(--smaller-font-size);
}

/*=============== MEDIA QUERIES ===============*/
@media screen and (max-width: 779px) {
    .bd-grid {
        margin-left: 2rem;
        margin-right: 2rem;
    }
    .label {
        padding: 5px;
        height: 20px;
        width: 44px;
    }
    .label .ball {
        top: 2px;
        left: 2px;
        height: 16px;
        width: 16px;
    }
    .fa-moon, .fa-sun {
        font-size: 12px;
    }
    .nav_logo {
        max-width: 60px;
    }
    .home{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .home__data {
        display: flex;
        flex-direction: column;
    }
    .home__title{
        text-align: center;
    }
    .home__social {
        padding: 0;
        flex-direction: row;
        align-self: flex-end;
    }
    .home__social-icon {
        margin-right: 1rem;
    }
    .button {
        display: flex;
        align-self: center;
        justify-content: center;
    }
    .about__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .about__subtitle, .skills__subtitle {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .about__text {
        text-align: justify;
        font-weight: 400;
        font-size: 14px;
        border-left: none;
        padding-left: 0;
    }
    body.white{
        .about__text{
            border-left: none;
        }
    }
    .skills__text{
        font-size: 14px;
    }
    .skills__data {
        margin: 0px auto 30px auto;
    }
    .skills__img {
        display: none;
    }
    .work__container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1rem;
    }
    .contact__input {
        width: 85%;
    }
    .contact__button {
        width: 10rem;
    }
}
@media screen and (max-width: 480px) {
    
    
    .home__title{
        font-size: 2.5rem;
    }
    .box{
        width: 35vh;
        height: 40vh;
    }
    .work__container {
        grid-template-columns: repeat(1, 1fr);
        margin-left: 3rem;
        margin-right: 3rem;
    }
    .footer {
        padding: 0.5rem;
    }
    .footer_title {
        font-size: 1rem;
    }
    .footer__social {
        margin-bottom: 0.3rem;
    }
    .footer__icon {
        font-size: 2rem;
    }
    .footer__copy {
        font-size: 10px;
    }
}
@media screen and (max-width: 370px) {
    .bd-grid {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .home {
        padding: 3rem 0 1rem;
    }
    .home__title{
        font-size: 1.8rem;
    }
    .button {
        padding: .35rem 1.5rem;
    }
    .home__social-icon {
        padding: 3px;
        font-size: 3rem;
    }
    .box{
        width: 25vh;
        height: 30vh;
    }
    .about__subtitle, .skills__subtitle {
        font-size: 16px;
    }
    .about__text {
        text-align: justify;
        font-weight: 400;
        font-size: 13px;
    }
    .skills__text {
        font-size: 13px;
    }
    .contact__input {
        font-size: 12px;
        padding: 0.7rem;
        width: 90%;
        margin-bottom: 1rem;
    }
    .contact__button {
        width: 8rem;
        padding: 0.5rem;
    }
}
@media screen and (min-width: 780px) {
    .bd-grid {
        margin-left: 2rem;
        margin-right: 2rem;
    }
    body {
        margin: var(--header-height) 0 0 0;
    }
    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .section-title {
        margin-bottom: var(--mb-6);
    }
    .section-title::after {
        width: 80px;
        top: 3rem;
    }
    .nav {
        height: calc(var(--header-height) + 1.5rem);
    }
    .nav__list {
        display: flex;
        padding-top: 0;
    }
    .nav__item {
        margin-left: var(--mb-6);
        margin-bottom: 0;
    }
    .nav__toggle {
        display: none;
    }
    .nav__link {
        color: var(--third-color);
        font-weight: 600;
    }
    .home {
        padding: 9rem 0 9rem;
    }
    .home__social {
        padding: 0;
        flex-direction: row;
        align-self: flex-end;
    }
    .home__social-icon {
        margin-right: 1rem;
    }
    .about__container {
        padding-top: 2rem;
        text-align: initial;
    }
    .skills__container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        align-items: center;
        text-align: initial;
    }
    .work__container {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2rem;
    }
}
@media screen and (min-width: 1200px) {
    .bd-grid {
        margin: 0 auto 0 auto;
    }
}