#af-header {
    --color-text: #ffffff;
    --color-background: #f4f4f4;
    --color-primary: #d57aff;
    --color-navbar: #1c1c1c;
    --color-logo: #d57aff;
    --color-burger: #1c1c1c;
}

#af-header .af-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 5%;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 10;
    background-color: var(--color-navbar);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    
}

#af-header .af-navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 900px;
    gap: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#af-header .af-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    
}

#af-header .af-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    
}

#af-header .af-logo-image {
    width: 35px;
    height: 35px;
    display: block;
}

#af-header .af-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-logo);
    cursor: pointer;
    transition: color 0.3s ease;
}

#af-header .af-logo:hover {
    color: var(--color-primary);
}

#af-header .af-nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    
}

#af-header .af-nav-links li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s ease;

    
}

#af-header .af-nav-links li a:hover {
    color: var(--color-primary);
    
}

#af-header .af-burger {
    display: none;
    cursor: pointer;
    z-index: 15;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 30px;
    height: 23px;
}

#af-header .af-burger div {
    width: 100%;
    height: 3px;
    background-color: var(--color-burger);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 720px) {
    #af-header .af-burger {
        display: flex;
        margin-left: auto;
    }

    #af-header .af-logo-container {
        margin-right: auto;
    }

    #af-header .af-nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--color-navbar);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        gap: 20px;
    }

    #af-header .af-nav-links.nav-active {
        transform: translateX(0%);
    }

    #af-header .af-nav-links li {
        opacity: 0;
        transform: translateX(50px);
        animation: af-navLinkFade 0.5s ease forwards;
    }

    #af-header .af-nav-links li a {
        font-size: 20px;
    }
}

@media only screen and (min-width: 721px) {
    #af-header .af-burger {
        display: none;
    }

    #af-header .af-nav-links {
        display: flex;
    }
}

#af-header .af-burger.toggle .af-line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

#af-header .af-burger.toggle .af-line2 {
    opacity: 0;
}

#af-header .af-burger.toggle .af-line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes af-navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


#af-header .af-nav-links li .af-nav-button-link {
    background: none;
    border: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-family: inherit;
}

#af-header .af-nav-links li .af-nav-button-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}
