:root {
    --text-color: #1a1c28;
    --link-color: #4a76ec;
    --background-color: #eeeff1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif; 
    background-color: var(--background-color);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 80px;
    flex-wrap: wrap;
}


nav .left a {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

nav .right {
    display: flex;
    align-items: center;
}

nav .right a {
    color: var(--text-color);  
    margin-left: 10px;
    text-decoration: none; 
    font-size: 18px;
    font-weight: 500;
    transition: .1s;
}

.right li {
    list-style-type: none;
    display: inline;
    flex-direction: row;
    /* margin-left: 20px; */
}

.right a:hover {
    color: #666;
    border: 100px var(--text-color);
}


#nav-links {
    display: flex;
    gap: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
}


.hero {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 180px;
    align-items: center;
    gap: 40px;
}

.hero .text {
    flex: 5;
}

.hero .text h2 {
    font-size: 45px;
}

.hero .links {
    margin-top: 25px;
}

.hero .links a {
    display: inline-block;
    padding: 5px 10px;
    border: solid var(--link-color);
    border-radius: 10px;
    padding-right: 10px;
    margin-bottom: 10px;
    transition: .1s;
}

.hero .links a:hover {
    color: var(--text-color);
    border: 2px var(--text-color);
}

.hero .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
    flex: 1;
}

.hero .headshot img {
    width: 400px;
    /* max-width: 100%; */
    /* height: auto; */
    border-radius: 50%;
    position: relative;
    z-index: 10;
}

.about {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 190px;
    align-items: center;
    gap: 40px;
}

.about .gogeta {
    display: flex;
    justify-content: left;
}

.about .gogeta img {
    width: 400px;
    border-radius: 70px;
}

.about .text {
    flex: 5;
    margin-bottom: 10px;
    text-align: center;
}

.about .text p{
    font-size: 18px;
}

.proyek {
    /* display: flex; */
    /* justify-content: space-between; */
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 18px;
    /* align-items: center; */
    gap: 40px;
    background-color: var(--text-color);
    color: var(--background-color);
}

.proyek .text {
    flex: 5;    
    text-align: left;
    margin: 40px;
    padding-top: 40px;
}

.proyek .proyek-web {
    display: flex;
    /* justify-content: right; */
}

.proyek .proyek-web img {
    width: 45rem;
    margin-top: 2rem;
}

.proyek .isi-web {
    flex: 5;
    text-align: left;
    margin: 40px;
}

.proyek .proyek-db {
    display: flex;
    margin: 2rem;
} 

.proyek .proyek-db img {
    width: 45rem;
    margin-top: 2rem;
    justify-content: left;
}

.proyek .isi-db {
    flex: 5;
    text-align: left;
    margin: 40px;
}

.proyek .proyek-matriks {
    display: flex;
}

.proyek .isi-matriks {
    flex: 5;
    /* text-align: right; */
    margin: 40px;
}

.proyek

.skill {
    /* display: flex; */
    justify-content: space-between;
    padding: 0 50px;
    margin: 50px 0;
    margin-bottom: 180px;
    text-align: left;
    /* align-items: center; */
    gap: 40px;
    background-color: var(--background-color);
}

.text {
    flex: 5;
    /* text-align: left; */
    /* margin: 35px; */
    padding-top: 40px;
}

.text p {
    /* margin: 10px; */
    /* flex: 5; */
    /* padding-bottom: 30px; */
    padding-top: 10px;
}


.skill .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

}

.skill .cells .cell {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;
    width: 200px;
    padding: 10px 20px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;
}

.skill .cells .cell img{
    width: 60px;
    height: 100px;
    object-fit: contain;
    border-radius: 2px;
}

.skill .cells .cell span {
    font-size: 10px;
}

.skill .xp {
    /* display: flex; */
    justify-content: center;
    /* padding: 0 50px; */
    margin: 50px 0;
    margin-top: 15rem;
    margin-bottom: 180px;
    /* align-items: center; */
    gap: 40px;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    flex-direction: column;
    /* text-align: center; */
}

.kontak {
    padding: 0 50px;
    margin-bottom: 100px;
}

.kontak h2 {
    font-size: 25px;
}

.kontak .group {
    display: flex;
    gap: 50px;
    justify-content: center;
}

.kontak .group form {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.kontak .group form input,
.kontak .group form textarea {
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--link-color);
    background-color: transparent;
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
}

.kontak .group form button {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #ffff;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
}

.kontak .group form button:hover {
    filter: brightness(.9);
}

.kontak .social {
    text-align: center;
}

.kontak .social a {
    font-size: 45px;
}

@media (max-width: 850px) {
    .hero .text h2 {
        font-size: 35px;
    }

    .hero .headshot img {
        width: 300px;
    }

    .about .gogeta img {
        width: 300px;
    }

    .proyek .proyek-web img,
    .proyek .proyek-db img,
    .proyek .proyek-matriks img {
        width: 100%;
        max-width: 100%;
    }

    .skill .cells .cell {
        width: 150px;
    }

    .skill .xp p {
        font-size: 1px;
    }
}

@media (max-width: 768px) {
    nav {
    padding: 0 20px;
    }

    #nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--background-color);
    position: absolute;
    top: 80px;
    left: 0;
    text-align: center;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 1100;
    }

    #nav-links li {
    display: block;
    margin: 10px 0;
    }

    .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    }

    .hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    }

    #nav-links.active {
    display: block;
    display: flex;
    }

    .hero {
        flex-direction: column-reverse;
    }

    .hero .headshot img {
        width: 250px;
        display: block;
        margin: 0 auto;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about .gogeta img {
        width: 250px;
    }

    .proyek {
        flex-direction: column;
        text-align: center;
    }

    .skill {
        flex-direction: row;
        text-align: center;
    }

    .skill .cells .cell {
        width: 180px;
    }
    
    .skill .xp{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        
    }

    .skill .xp p {
        font-size: 15px;
    }

    .kontak {
        flex-direction: column;
        text-align: center;
    }
}