header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    position: fixed;
    height: 80px;
    width: 100%;
    top: 0;
    left: 0;
    padding: 10px 40px;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    box-sizing: border-box;
    transition: top 0.8s, background-color 0.3s, color 0.3s;
}

header.scrolled {
    background-color: white;
    color: black;
}

header img {
    height: 60px;
}

header h1 {
    color: white;
    margin: 0;
    font-size: 18px;
    text-transform: uppercase;
}

header.scrolled h1 {
    color: black;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 15px 20px;
}

header.scrolled nav ul li a {
    color: black;
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-end;
        position: absolute;
        top: 80px;
        right: 0;
        background-color: rgba(0, 0, 0, 0.6);
        width: 100%;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        padding: 10px 20px;
        font-size: 16px;
        color: white;
    }

    header.scrolled nav ul li a {
        color: white;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: white;
    }

    header.scrolled .menu-toggle {
        color: black;
    }
}

/* Hide menu toggle button by default on desktop */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}