html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

nav {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 30;
    position: fixed;
    width: 100%;
    background-color: white;
}

nav h1 {
    margin: 1rem 2rem;
}

nav h1 a {
    text-decoration: none;
    color: black;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav li {
    list-style: none;
    margin: 0rem 1.5rem;
}

nav li a {
    text-decoration: none;
    color: black;
    font-weight: 600;
}

li {
    font-size: .9rem;
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
}

li:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 100%;
    bottom: 0;
    background: #000000;
    height: 2px;
    -webkit-transition-property: right;
    transition-property: right;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

li:hover:before, li:focus:before, li:active:before {
    right: 0;
}

.toggle-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    top: 1.1rem;
    right: 1rem;
    width: 30px;
    height: 21px;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: rgb(22, 22, 22);
    border-radius: 10px;
}

@media (max-width: 800px) {
    .toggle-button {
        display: flex;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        background-color: rgb(210, 210, 210);
        width: 55%;
        height: 100vh;
        top: -1rem;
        right: 0;
        justify-content: center;
        align-items: center;
    }
}


/* Header */

header {
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.intro-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: .5rem;
}

.intro-text {
    max-width: 40rem;
}

.intro-text label {
    color: rgb(53, 53, 53);
}

.intro-text h1 {
    margin: 0;
    padding: 0;
    font-size: 3.5rem;
}

.intro-text p {
    color: rgb(53, 53, 53);
    margin: 0;
    padding: 0;
}

.intro-text div {
    margin: 1rem 0rem;
}

.intro-text div button {
    cursor: pointer;
    padding: .5rem 0rem;
    border: 2px solid;
    border-radius: .2rem;
}

.intro-text div button a {
    color: black;
    text-decoration: none;
    font-size: 1rem;
    padding: .6rem 1.6rem;
    transition: all .3s;
}

.intro-text div button a:hover {
    background-color: black;
    color: white;
}

.intro-text, .intro-img {
    margin: 0rem 2rem;
}

.intro-img img {
    height: 22rem;
}

@media (max-width: 800px) {
    header {
        padding: 10rem 0;
    }

    .intro-box {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
    }

    .intro-text, .intro-img {
        margin: 1rem 0rem;
    }

    .intro-img img {
        height: 19rem;
    }
}


/* Work */

.projects {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 6rem;
}

.work-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    max-width: 70rem;
}

.projetcs-box {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4rem;
}

.projetcs-box img {
    max-width: 32rem;
    height: 20rem;
    border-radius: .7rem;
}

.projetcs-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: .7rem;
}

.projects-info {
    margin: 0rem 4rem;
}

.projects-info p {
    color: rgb(53, 53, 53);
}

.projects-info button {
    border: 2px solid;
    border-radius: .2rem;
    cursor: pointer;
    padding: .5rem 0rem;
}

.projects-info button a {
    text-decoration: none;
    color: black;
    padding: .5rem 1rem;
    transition: all .3s;
}

.projects-info button a:hover {
    background-color: black;
    color: white;
}

@media (max-width: 1010px) {

    .projetcs-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .projetcs-content-column-revers {
        display: flex;
        flex-direction: column-reverse;
    }

    .projects-info {
        text-align: center;
        max-width: 40rem;
    }
}

@media (max-width: 800px) {
    .projetcs-box img {
        max-width: 20rem;
        height: 12rem;

    }

    .projects-info {
        margin: 0rem;
    }
}


/* About */

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.about-box label {
    color: rgb(53, 53, 53);
}

.about-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0rem 2rem;
}


/* Contact */

.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}