* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scrollbar-width: none;
}

*::selection {
    background-color: rgba(128, 128, 128, 0.468);
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.nav {
    width: 100%;
    height: 80px;
    display: flex;
    top: 0;
    z-index: 999;
    position: sticky;
    background-color: #141414;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    user-select: none;
}

.nav-container {
    display: flex;
    width: 100%;
    height: 80px;
    max-width: 1300px;
    justify-content: space-between;
    z-index: 1;
    margin: 0 auto;
    padding: 0 50px;
}

#nav-logo {
    font-size: 2rem;
    display: flex;
    background-color: #ff8177;
    background-size: 100%;
    background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    text-decoration: none;
    cursor: pointer;
    align-items: center;
}

.fa-gem {
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    text-align: center;
    list-style: none;
}

.nav-items {
    height: 80px;
}

.nav-links {
    color: #fff;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 0 1rem;
    transition: all 0.3 ease-in;
}

.nav-links:hover {
    color: #ff8177;
    transition: all 0.3 ease-in;
}

@media screen and (max-width: 960px) {
    .nav-container {
        display: flex;
        width: 100%;
        height: 80px;
        max-width: 1300px;
        justify-content: space-between;
        z-index: 1;
        padding: 0;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
        background: #131313a3;
    }

    .nav-menu.active {
        background: #131313;
        top: 100%;
        opacity: 0.8;
        transition: all 0.5s ease;
        z-index: 99;
        height: 50vh;
        font-size: 1.6rem;
    }

    .nav-toggle {
        width: 30px;
        height: 24px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: transparent;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        padding: 4px;
    }

    .nav-toggle .bar {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        margin: 3px 0;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-item {
        width: 100%;
    }

    .nav-links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        display: block;
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar-toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.name {
    background-color: #131313;
    user-select: none;
}

.name-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    height: 80vh;
    width: 100%;
    max-width: 1300px;
    padding: 0 50px;
    z-index: 1;
    background-color: #131313;
}

.name-container h1 {
    font-size: 5rem;
    background-color: #ff8177;
    background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.name-content h1:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

.name-img {
    text-align: center;
}

#name-img {
    width: 70%;
    height: 360px;
    transition: all 0.3s ease-in-out;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
}

#name-img:hover {
    transform: scale(1.04);
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
    .name-container {
        grid-template-columns: auto;
        padding: 0 20px;
        align-items: center;
        justify-self: center;
        text-align: center;
        height: auto;
        width: 100%;
        margin: 0 auto;
    }

    .name-content {
        text-align: center;
        margin-bottom: 4rem;
    }

    .name-content h1 {
        font-size: 4rem;
        margin-top: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .main-content h1 {
        font-size: 3.5rem;
        margin-top: 3rem;
    }

    #name-img {
        height: 25%;
        width: 100%;
        height: 360px;
        transition: all 0.3s ease-in-out;
        text-align: center;
        border-radius: 50%;
        cursor: pointer;
    }
}

.project {
    background-color: #131313;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

.project h1 {
    background-color: #ff8177;
    background-image: linear-gradient(to top, #b721ff 0%, #21d4fd 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    transition: all 0.3s ease-in-out;
    margin-bottom: 5rem;
    margin-top: 4rem;
    font-size: 4rem;
    transition: all 0.3s ease-in-out;
    user-select: none;
}

.project h1:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

.project-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.project-card {
    margin: 1rem;
    height: 525px;
    width: 400px;
    border-radius: 4px;
    background-image: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgba(17, 17, 17, 0.6) 90%), url(web1.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    transition: all 0.3s ease-in-out;
    border-radius: 20px;
}

.project-card:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.project-card:nth-child(2) {
    background-image: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgba(17, 17, 17, 0.6) 90%), url(web2.png);
}

.project-card:nth-child(3) {
    background-image: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgba(17, 17, 17, 0.6) 90%), url(web3.png);
}

.project-card:nth-child(4) {
    background-image: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgba(17, 17, 17, 0.6) 90%), url(web4.png);
}

.project-card:nth-child(5) {
    background-image: linear-gradient(to bottom, rgb(0, 0, 0) 0%, rgba(17, 17, 17, 0.6) 90%), url(web5.png);
}

.project h2 {
    position: absolute;
    top: 350px;
    left: 30px;
    user-select: none;
}

.project-card p {
    position: absolute;
    top: 400px;
    left: 30px;
}

.project-card button {
    position: absolute;
    color: #fff;
    padding: 10px 20px;
    border: none;
    outline: none;
    border-radius: 4px;
    background-color: #f77062;
    top: 440px;
    left: 30px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    user-select: none;
}

@media screen and (max-width: 960px) {
    .project {
        height: auto;
    }

    .project h1 {
        font-size: 2rem;
        margin-top: 12rem;
    }

    .project-container {
        width: 300px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .project h1 {
        font-size: 4rem;
    }
}

@media screen and (max-width: 480px) {
    .project {
        height: auto;
    }

    .project h1 {
        font-size: 3rem;
        margin-top: 8rem;
    }

    .project-card {
        width: auto;
    }
}

.about {
    background-color: #141414;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
}

.about-items {
    padding: 12rem 0;
    padding-bottom: 8rem;
    display: flex;
    align-items: center;
    margin: 16px;
    text-align: center;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
}

.about-items h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    user-select: none;
    background-color: #fff;
    background-image: linear-gradient(to top, #111 0%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.about-items p {
    font-size: 2.3rem;
    background-color: #fff;
    background-image: linear-gradient(to top right, #fff 0%, #111 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

@media screen and (max-width: 960px) {
    .about-container {
        width: 100%;
    }

    .about-items {
        padding-top: 0.5rem;
        padding-bottom: 5rem;
    }

    .about-items h1 {
        font-size: 2.7rem;
        margin-bottom: 1rem;
    }

    .about-items p {
        font-size: 2rem;
    }
}