*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #ffffff;
    font-family: sans-serif;
    margin: 0;
    padding-top: 60px; /* Add padding to avoid content being hidden by the fixed navbar */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-logo {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #9b59b6;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #9b59b6;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
    }

    .nav-logo {
        position: static;
        transform: none;
        flex-grow: 1;
        text-align: center;
        margin-right: 2rem; /* Add margin to not overlap with hamburger */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #1e1e1e;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 101;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item:hover {
        background-color: #2c2c2c;
    }

    .nav-link {
        display: block;
        padding: 1.5rem 0;
        width: 100%;
    }

    .hamburger {
        display: block;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Footer */
.footer {
    background-color: #1e1e1e;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease; 
}

.footer a {
    color: #9b59b6;
    text-decoration: none;
}

.footer a:visited {
    color: #9b59b6;
}

.footer a:hover {
    text-decoration: underline;
}

.footer.visible {
    opacity: 1;
}