@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@200;300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Slab', serif;
}

ul {
    list-style: none;
    display: flex;
}

a {
    color: inherit;
    text-decoration: none;
}

html {
    font-size: 62.5%;
    font-size: .731vw;
}

body {
    min-height: 100vh;
    background-color: #fff;
    color: #222;
    font-size: 1.6rem;
    padding: 8.0rem 2rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    height: 8.0rem;
    padding: 2.0rem;
    background-color: #333;
    font-size: 1.6rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

header h1 {
    font-size: 1.8rem;
}

nav ul {
    gap: 2.0rem;
    align-items: center;
    margin-left: auto;
}

nav ul li {
    padding: .7rem 1rem;
    border-radius: 2.5rem;
    transition: .4s;
}

.light-dark input {
    visibility: hidden;
    width: 2rem;
}

.light-dark {
    padding: 0;
}

.light-dark label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;

    width: 3.8rem;
    height: 1.5rem;
    border-radius: 1.5rem;
    background-color: #ccc;
}

.light-dark label div {
    position: absolute;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    background-color: #fff;
    transition: .4s;

    text-align: center;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.light-dark input:checked~div {
    transform: translateX(100%);
}

.light-dark label i {
    height: 80%;
    width: 100%;
    color: #333;
}


section {
    background-color: #ccc;
    margin: 1.0rem;
    padding: 2.0rem;
    border-radius: 3.0rem;
}

section h2 {
    margin-bottom: 1.5rem;
}

#contact {
    display: flex;
    justify-content: center;
    font-size: 3rem;
}

#contact ul {
    gap: 2.0rem
}

.projects-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 2.0rem;
}

.border-effect {
    position: relative;
    border-radius: 2.2rem;
    overflow: hidden;
    background-color: transparent;
}

.border-effect::before {
    content: "";
    height: 0px;
    width: 0px;
    background-color: red;

    visibility: hidden;
    position: absolute;

    border-radius: 0 0 120% 0;
    transition: .8s ease-in-out;
}

.border-effect:hover::before {
    visibility: visible;

    width: 150%;
    height: 150%;
}

.projects-box a {
    width: 100%;
}

.project-boxes {
    /* borda animada */
    position: relative;
    height: 20rem;
    border-radius: 2.0rem;
    padding: 2.0rem;
    color: #fff;
    margin: .3rem;

    /* ---conteudo--- */

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: #333;
    background-size: cover;
    background-position: center 0%;

    transition: 1s;
    z-index: 1;
}

.project-boxes h3 {
    color: white;
    transition: transform 1s;

}

.project-boxes p {
    visibility: hidden;
    line-height: 1.5;
    font-weight: 400;
}


@media (hover: hover) {
    nav ul li:hover {
        background-color: #ccc;
        color: #333;
    }

    #contact li:hover {
        color: #555;
    }

    .projects-sect:hover>.projects-box>.border-effect a .project-boxes {
        height: 30rem;
    }

    .project-boxes:hover h3 {
        transform: translateY(20rem);
    }

    .project-boxes:hover p {
        visibility: visible;
    }
}

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

    html {
        font-size: 1.6vw;
    }

    body {
        font-size: 2.0rem;
    }

    header nav {
        display: none;
    }

    header h1 {
        font-size: 2.3rem;
    }

    /* ::::::::::::::::::::::::::::: */
    /* :::::::HAMBURGUER MENU::::::: */

    .hamburguer-menu {
        display: grid;
        gap: .6rem;
    }

    #one,
    #two,
    #three {
        height: .5rem;
        width: 4rem;
        background-color: #fff;
        transition: .5s;

    }

    .menus.on {
        position: fixed;
        top: 0;
        left: 0;
        background-color: #ddd;
        color: #222;
        width: 100vw;
        height: 100vh;
        display: grid;
        padding: 20px;
    }

    .menus.on #one,
    .menus.on #two,
    .menus.on #three {
        background-color: #222;
    }

    .menus.on #one {
        transform-origin: 19% 0%;
        transform: rotate(45deg);
    }

    .menus.on #two {
        opacity: 0;
    }

    .menus.on #three {
        transform-origin: 0% 50%;
        transform: rotate(-45deg)
    }

    .menus.on nav {
        display: block;
        text-align: center;
    }

    .menus nav ul {
        flex-direction: column;
        font-size: 4rem;
        gap: 5rem;
    }

    .menus nav ul li {
        padding: 0;
    }

    .menus.on .hamburguer-menu {
        justify-self: end;
        height: fit-content;
    }

    .light-dark label {
        width: 9.8rem;
        height: 3.5rem;
    }

    .light-dark label div {
        height: 5rem;
        width: 5rem;
    }

    /* :::::::::::::::::::::::::::::::::: */

    .projects-box {
        grid-template-columns: repeat(1, 1fr);
    }

    .project-boxes {
        height: 30rem;

    }

    .project-boxes p {
        visibility: visible;
    }


    @media (hover: hover) {
        .project-boxes:hover h3 {
            transform: translateY(16rem);
        }

    }
}