:root {
    --header-main-bg: var(--main-color);
}

header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    height: 90px;
    background: var(--header-main-bg);
    color: var(--normal-text-color-on-main-color);

    z-index: 9999999999999999999999999999999999999999999999999999;
}

/* logo */
header a img {
    position: fixed;
    height: 80px;
    left: 50%;
    transform: translateX(-50%);
    top: 5px;
}
header a.url-not-exist {
    cursor: default;
}
header a#img-link {
    border-radius: 50%;
    padding: 0;
    text-decoration: none;
}



header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav li {
    display: flex;
    align-items: center;
    gap: 2px;
}

header nav ul li a {
    font-size: large;
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
    font-weight: 500;
    color: #888;
    transition: .3s;
}
header nav ul li a:hover {
    color: #fff;
}header nav ul li a.active{
    color: #fff;
}
header nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .3s ease;
}

header nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

header nav li a i{
    font-size: large;
}


/* hamburger */
.hamburger-icon i{
    font-size: 30px;
    position: fixed;
    left: 5px;
    top: 20px;
    cursor: pointer;
    margin: 10px;
}

.hamburger-icon {
    display: none;
}




header .links a {
    width: 30px;
    height: 30px;
    font-size: 30px;
    color: #aaa;
    text-decoration: none;
    margin-left: 10px;
    transition: color .2s ease-in-out;
}
header .links a.fb:hover {
    color: #4267B2;
}

header .links a.ig
{
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    background-clip: text;
    color: #aaa;
}
header .links a.ig:hover {
    color: #00000000;
}

/* @media-query */
@media (max-width: 1500px){
    header nav ul li a,
    header nav ul li a i {
        font-size: 15px !important;
    }
}
@media (max-width: 1400px) {
    header nav {
        visibility: hidden;
        position: fixed;
        top: 90px;
        left: 0;
        bottom: 0;
        background-color: var(--header-main-bg);
        padding: 10vh 0;
        transform: translateX(-100%);
        opacity: 0;
        transition: transform .4s ease-in-out, opacity .2s ease-in-out, visibility 0s .4s;
        overflow: hidden;
        z-index: 1000;
    }
    
    header nav.open {
        visibility: visible;
        transform: translateX(0);
        opacity: 1;
        transition: transform .4s ease-in-out, opacity .2s ease, visibility 0s 0s;
    }
    
    header nav ul {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        height: 100%;
        align-items: flex-start;
        /* transform: translateX(50px); */
        opacity: 0;
        transition: transform .3s .1s ease-out, opacity .3s .1s ease-out;
    }
    
    header nav.open ul {
        transform: translateX(0);
        opacity: 1;
    }
    
    header nav ul li {
        display: block;
    }
    
    header nav ul li a {
        margin: 0 25px;
        font-size: 20px !important;
    }
    
    header nav ul li a i {
        font-size: 20px !important;
    }

    .hamburger-icon {
        display: block;
        position: fixed;
        right: 5px;
        top: 20px;
        z-index: 1001;
        cursor: pointer;
    }


    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: #00000099;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        backdrop-filter: blur(2px);
        
        transition: opacity .3s ease, visibility 0s .3s;
    }

    .menu-overlay.open {
        opacity: 1;
        visibility: visible;
        transition: opacity .3s ease, visibility 0s 0s;
    }


}
