* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

body {
    background-color: #101010;
    color: #fff;
    text-align: center;
    height: 100vh;
    margin: 0;
}

::-webkit-scrollbar {
    display: none;
}

header {
    /* Hamburger menu */
    width: 100%;
    position: absolute;
    top: 5%;
    left: -8%;
    z-index: 1000; 
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px;
    transition: 0.4s;
}

.particles-js-canvas-el {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -2;
}

nav {
    display: flex;
    justify-content: flex-end;
    gap: 50px;
    position: absolute;
    top: 10px;
    right: 10px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-weight: bold;
    padding: 0 15px;
}

nav a.active {
    color: #fff;
}

nav a:hover,
.active {
    color: white;
}

nav a.active {
    color: white;
    border-bottom: 2px solid white;
}

.home-button {
    transform: translateY(-100%);
    opacity: 0;
    animation: top 0.2s cubic-bezier(0.75, 0.14, 0.11, 1.04) forwards;
    animation-delay: 0ms;
    font-size: 20px;
}

.about-button {
    transform: translateY(-100%);
    opacity: 0;
    animation: top 0.2s cubic-bezier(0.75, 0.14, 0.11, 1.04) forwards;
    animation-delay: 0ms;
    font-size: 20px;
}

.project-button {
    transform: translateY(-100%);
    opacity: 0;
    animation: top 0.2s cubic-bezier(0.75, 0.14, 0.11, 1.04) forwards;
    animation-delay: 0ms;
    font-size: 20px;
}

@keyframes left {
    0% {
        transform: translateX(-10%);
        opacity: 0;
    }

}

@keyframes top {
    0% {
        transform: translateY(-450%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

nav a {
    padding: 0 10px;
    font-size: 8px;
}

@media only screen and (max-width: 600px) {

    .navbar {
        display: none;
        gap: 40%;
        font-size: 30%;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 90%;
        background-color: #333;
        position: absolute;
        left: 13%;
        z-index: 1000;
    }

    nav a {
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #444;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: calc(14%);
        top: 1rem;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-10px, 5px);
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-10px, -5px);
    }

    .phone-menu {
        display: none;
    }
}