:root {
    --green: #A3E221;
    --dark: #0E1A28;
    --blue: #182E73;
    --light: #F5FEE3;
}

html,
body {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background-color: var(--blue);
    margin: 0px;
    padding: 0px;
}

.hidden {
    display: none;
}

@font-face {
    font-family: 'Jersey25';
    src: url('../fonts/Jersey_25/Jersey25-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inconsolata';
    src: url('../fonts/Inconsolata/Inconsolata-VariableFont_wdth\,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JockeyOne';
    src: url('../fonts/Jockey_One/JockeyOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*navbar*/
.navbar {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--green);
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    margin: 10px 0px 10px 20px;
}

.left {
    flex: 1;
}

.logo img {
    height: 40px;
}

.hamburger {
    display: none;
}

.right {
    /*ul*/
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-right: 20px;
    /* flex: 1; */
}

.right a {
    text-decoration: none;
    color: var(--dark);
    /* display: block; */
    font-family: 'JockeyOne', sans-serif;
    font-size: 1.4em;
    padding: 12px 10px;
    clip-path: polygon(10% 20%, 90% 20%, 100% 50%, 90% 80%, 10% 80%, 0% 50%);
    transition: color 0.2s ease, background-color 0.3s ease;
}

.right a:hover {
    background-color: var(--light);
}

.right a:active {
    background-color: var(--dark);
    color: var(--light);
}

#home {
    scroll-margin-top: 100vh;
}

/*hero section*/
.hero {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light);
    margin-top: 28vh;
    margin-bottom: 20vh;
}

.hero h1 {
    /*Greetings!*/
    font-family: 'jersey25', sans-serif;
    letter-spacing: 6px;
    font-size: 12em;
    margin: 0;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    /*My name...*/
    font-family: 'Inconsolata', monospace;
    font-size: 1.6em;
    margin: 10px 0 0 0;
    max-width: 600px;
    animation: fadeIn 1.5s ease-out;
}

.hero-logo {
    margin-top: 40px;
    height: 120px;
    animation: fadeIn 2.5s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    70% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* @keyframes bounce{
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
} */


h2 {
    font-family: 'JockeyOne', sans-serif;
    font-weight: 400;
    font-size: 4em;
    color: var(--light);
    text-align: left;
    margin: 0 0 24px;
}

/*about me section*/
.aboutme {
    /* padding: 120px 30px 0px 30px; */
    padding: 100px 12% 0px 12%;
    text-align: center;
    color: var(--light);
}

.aboutme-top {
    /* margin-left: auto;
    margin-right: auto; */
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
    color: var(--light);
    text-align: left;
    gap: 40px;
}

.aboutme-top .aboutme-photo {
    width: 300px;
    height: fit-content;
    align-self: center;
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}

.aboutme-text {
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
}

.contact-btn {
    margin-left: auto;
    padding: 12px 28px;
    background-color: var(--green);
    color: var(--dark);
    text-decoration: none;
    font-family: 'JockeyOne', monospace;
    font-size: 1.4em;
    clip-path: polygon(10% 20%, 90% 20%, 100% 50%, 90% 80%, 10% 80%, 0% 50%);
    /* transition: bounce 5s infinite; */
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--light);
}

.contact-btn:hover {
    background-color: var(--light);
}

.aboutme-skills {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 40px;
}

.aboutme-skills h3 {
    font-family: 'JockeyOne', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 2em;
    text-align: left;
    margin: 0px;
}

.aboutme-skills ul {
    list-style: none;
    padding: 0;
}

.aboutme-skills li {
    font-family: 'Inconsolata', monospace;
    text-align: left;
    display: block;
    /* margin-bottom: 10px; */
    position: relative;
    font-size: 1.2em;
}

.soft-skills {
    display: block;
}

.softSkills-list li {
    background-color: var(--dark);
    width: 150px;
    color: var(--light);
    padding-top: 20px;
    padding-bottom: 20px;
    clip-path: polygon(10% 20%, 90% 20%, 100% 50%, 90% 80%, 10% 80%, 0% 50%);
    text-align: center;
    margin-bottom: 8px;
    transition: color 0.15s ease-in;
}

.softSkills-list li:hover {
    color: var(--green);
}

.hard-skills {
    display: block;
}

.hardSkills-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.hardSkills-li {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: var(--dark);
    color: var(--green);
    padding: 20px;
    margin: 0px 12px 10px 0px;
    clip-path: polygon(10% 20%, 90% 20%, 100% 50%, 90% 80%, 10% 80%, 0% 50%);
    transition: background-color 0.15s ease-in, color 0.15s ease-in;
}

.hardSkills-li p {
    color: var(--light);
}

.hardSkills-li:hover p {
    transition: all 0.15s ease-in;
    color: var(--green);
}

.hardSkills-li img {
    width: auto;
    height: 48px;
    align-self: center;
    margin-right: 10px;
}

/*projects section*/
.projects {
    /* padding: 80px 30px; */
    padding: 80px 12%;
    text-align: center;
}

.project-description {
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
    color: var(--light);
    text-align: left;
    margin-bottom: 60px;
    width: 75%;
}

.project-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2em;
    justify-items: center;
}

.project-card {
    background-color: var(--light);
    width: 300px;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    clip-path: polygon(0 0, 85% 0, 100% 20%, 100% 100%, 0 100%);
    transition: transform 0.3s ease;
}

.project-card h3 {
    color: var(--dark);
    font-family: 'Inconsolata', sans-serif;
    /* font-family: 'jockeyOne', sans-serif; */
    font-size: 1.2em;
    /* font-weight: 200; */
    line-height: 1.2;
    margin: 10px 10px 0 12px;
}

.project-card p {
    color: var(--dark);
    font-family: 'Inconsolata', monospace;
    font-size: 1.1em;
    line-height: 1.2;
    margin: 15px 10px 20px 12px;
}

.project-card:hover {
    transform: scale(1.04);
    clip-path: polygon(0 0, 90% 0, 100% 0%, 100% 100%, 0 100%);
    box-shadow: 0px 0px 20px 6px rgba(163, 226, 33, 0.8);
    transition: clip-path 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 200px;
    /* object-fit: contain; */
    object-fit: cover;
    object-position: center;
}

.contact {
    padding: 80px 30px;
    text-align: left;
    color: var(--light);
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 40px;
}

.pixel-avatar {
    width: 300px;
    height: auto;
    margin-bottom: -80px;
    z-index: -1;
}

.contact-postit {
    background-color: var(--green);
    color: var(--dark);
    width: 30%;
    margin-bottom: 80px;
    padding: 30px;
    font-weight: bold;
    clip-path: polygon(0 0, 85% 0, 100% 20%, 100% 100%, 0 100%);
}

.contact h2 {
    font-family: 'Jersey25', sans-serif;
    font-weight: 400;
    font-size: 4em;
    color: var(--dark);
    margin: 0;
}

.contact p {
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.contact-mail {
    margin-top: 30px;
}

.contact-mail a {
    background-color: var(--light);
    text-decoration: none;
    color: var(--dark);
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
    padding: 10px 30px 10px 10px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%, 0% 50%);
    transition: color 0.2s ease, background-color 0.3s ease;
}

.contact-mail a:hover {
    color: var(--light);
    background-color: var(--blue);
}

.contact-findmeon div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-findmeon a {
    text-decoration: none;
    color: var(--dark);
    font-family: 'Inconsolata', monospace;
    /* font-family: 'Jockey One', monospace; */
    display: flex;
    gap: 12px;
    align-items: center;
}

.contact-findmeon img {
    width: 40px;
    height: auto;
}

.contact-resume {
    margin-top: 30px;
}

.contact-resume a {
    background-color: var(--light);
    text-decoration: none;
    color: var(--dark);
    font-family: 'Inconsolata', monospace;
    font-size: 1.2em;
    padding: 10px 30px 10px 10px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%, 0% 50%);
    transition: color 0.2s ease, background-color 0.3s ease;
}

.contact-resume a:hover {
    color: var(--light);
    background-color: var(--blue);
}

.footer {
    /* position: relative; */
    display: block;
    background-color: var(--blue);
    box-sizing: border-box;
    color: var(--light);
    padding: 20px 20px;
    text-align: center;
    /* bottom: 0; */
    width: 100%;
}

.footer p {
    font-family: 'Inconsolata', monospace;
    font-size: 1em;
}

/*breakpoints*/
@media (max-width: 1000px) {

    /*kleiner dan 1000px*/
    .hero {
        margin-top: 26vh;
    }

    .hero h1 {
        font-size: 8em;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 1.4em;
        padding: 0 10px;
    }

    .aboutme-top {
        flex-direction: column;
        align-items: center;
    }

    .aboutme-photo {
        width: 200px;
        height: fit-content;
    }

    .project-cards {
        /* flex-direction: column;
        align-items: center; */
        grid-template-columns: 1fr 1fr;
    }

    .project-description {
        width: 100%;
    }

    .contact-postit {
        width: 35%;
        /* width: 40%; */
    }
}

@media (max-width: 800px) {

    /*kleiner dan 800px*/
    .hero {
        margin-top: 30vh;
    }

    .hero h1 {
        font-size: 7em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .hero-logo {
        height: 80px;
    }

    .aboutme-photo {
        display: none;
    }

    /* .project-cards {
        flex-direction: column;
        align-items: center;
    } */

    .contact {
        gap: 20px;
    }

    .contact-postit {
        width: 50%;
        margin-bottom: 0px;
        padding: 24px;
    }

    .pixel-avatar {
        width: 260px;
        margin-bottom: -150px;
        z-index: -1;
    }
}

@media (max-width: 600px) {

    /*kleiner dan 600px*/
    .hero {
        margin-top: 32vh;
    }

    .navbar {
        display: block;
    }

    .navbar .logo {
        margin: 10px 15px;
    }

    .hamburger {
        display: block;
        width: 24px;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 2;
    }

    .logo img {
        height: 30px;
    }

    #nav-links {
        display: none;
        justify-self: center;
        gap: 20px;
        padding: 10px 0px;
        margin-right: 0px;
    }

    #nav-links a {
        font-size: 1.2em;
        text-decoration: none;
        text-align: center;
        color: var(--dark);
        font-family: jockeyOne, sans-serif;
        padding: 10px;
        clip-path: polygon(10% 20%, 90% 20%, 100% 50%, 90% 80%, 10% 80%, 0% 50%);
        transition: color 0.3s ease, background-color 0.3s ease;
    }

    #nav-links a:hover {
        background-color: var(--light);
    }

    #nav-links a:active {
        color: var(--light);
        background-color: var(--dark);
    }

    #nav-links.open {
        display: flex;
        background-color: var(--green);
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    .hero h1 {
        font-size: 6em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .hardSkills-li img {
        width: auto;
        height: 40px;
        align-self: center;
        margin-right: 10px;
    }

    .project-cards {
        /* flex-direction: column;
        align-items: center; */
        grid-template-columns: 1fr;
    }

    .aboutme-top img {
        width: 100%;
    }

    .aboutme-skills {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .aboutme-photo {
        display: block;
    }

    .contact {
        flex-direction: column-reverse;
        padding: 30px;
    }

    .contact-postit {
        width: 80%;
    }

    .pixel-avatar {
        margin-bottom: -30px;
        z-index: -1;
    }
}