body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgb(253, 247, 239);
    z-index: 1000;
    padding-left: 40px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
    height: 100%;
}

nav ul li {
    margin: 0 30px;
}

nav ul li a {
    color: rgb(133, 133, 242);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

nav ul li a:hover {
    color: rgb(240, 244, 113);
}

/* text */
h1 {
    font-family: "rotulo-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wght" 1000, "wdth" 100;
    margin-bottom: 30px;
    font-size: 5vw;
    color: #e95c43;
    text-align: left;
    margin-right: 60px;
}

/* portfolio */

.portfolio {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.portfolio-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
    grid-row-gap: 50px;
    width: 100%;
    height: 410px;
    padding-left: 20px;
    padding-right: 20px;
}

.portfolio-item a {
    text-decoration: none;
    color: inherit;
}

.portfolio-item h5,
.portfolio-item p {
    margin: 0;
}

.portfolio-item h5 {
    color: rgb(84, 157, 202);
}

.portfolio-item p {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.portfolio-item:hover {
    transform: scale(1.05);
    /* can zoom */
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    overflow: hidden;
}


/* Respond */
@media (max-width: 768px) {
    h1 {
        font-size: 8vw;
        margin-left: 10px;
    }

    .portfolio-item {
        width: 90%;
    }

    button {
        width: 100%;
    }

    .portfolio-images {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 5vw;
    }

    .portfolio-item {
        width: 45%;
    }
}