header {
    width: 100%;
    height: 4vw;
    padding: 0.6vw 2vw;
    background-color: rgba(12, 12, 12, 0.75);
    position: fixed;
    top: 0;
    z-index: 10!important;
    justify-content: space-between!important;
}

.header-right-btns-group {
    width: 18%;
    justify-content: start!important;
}

header a#logo {
    width: 45%;
    height: 3vw;
    position: relative;
}

header a#logo img {
    width: 100%;
}

header nav {
    width: 60%;
    height: 100%;
}

header nav ul {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    position: relative;
    font-family: IRANSans, sans-serif !important;
}


header nav ul li {
    font-weight: normal;
    font-size: 0.9vw;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0 1vw;
    height: 100%;
    position: relative;
    gap: 0.35vw;
    color: var(--light-font);
}

header nav ul li > i {
    transform: scale(0.8);
}

header nav ul li:hover,
header nav ul li a:hover{
    color: #ff3300 !important;
}

header nav ul li a {
    width: 100%;
    height: 100%;
    color: var(--light-font);
    font-weight: normal;
    font-size: 0.9vw;
}

header nav ul li ul {
    justify-content: start!important;
    align-items: start;
    width: 16vw;
    height: 19vw;
    border-radius: 0.3vw;
    background-color: var(--light-font);
    box-shadow: 0 0 0.9vw rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 100%;
    right: 0;
    padding: 0;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5vw);
    transition: all 0.3s;
}

header nav ul li:hover ul {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

header nav ul li > ul li {
    margin: 0;
    width: 100%;
    height: 4.5vw;
    padding: 0.5vw 1vw;
    justify-content: start!important;
    position: relative;
    transition: all 0.3s;
    color: var(--dark-font) !important;
}

header nav ul li > ul li:not(:last-child) {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

header nav ul li > ul li::before {
    content: "";
    width: 0;
    height: 0.2vw;
    background-color: var(--orange);
    position: absolute;
    transition: all 0.3s;
    right: 0;
    opacity: 0;
}

header nav ul li > ul li:hover {
    padding-right: 1.4vw;
}

header nav ul li > ul li:hover::before {
    width: 1vw;
    opacity: 1;
}

header nav ul li > ul > li ul {
    width: 0;
    position: absolute;
    top: 0;
    right: 100%;
    height: 200%;
    z-index: 2;
    overflow: hidden;
    transition: all 0.3s;
    opacity: 0;
}

header nav ul li > ul > li:hover ul {
    width: 50%;
    opacity: 1;
}

header nav ul li > ul > li ul li {
    width: 100%;
    position: relative;
    padding: 0;
}

header nav ul li > ul > li ul a {
    width: 100%;
    height: 100%;
    opacity: 1;
    text-align: start;
    color: var(--dark-font);
    padding: 0.5vw 1vw;
    justify-content: start!important;
}

header .header-left-btns-group {
    width: 18%;
    height: 100%;
    position: relative;
    justify-content: end!important;
    gap: 0.3vw;
}

@media screen and (max-width: 450px) {
    header {
        height: 14vw;
        padding: 1vw 3vw;
    }

    .header-right-btns-group {
        width: 25%;
        justify-content: start!important;
    }

    header a#logo {
        width: 100%;
        margin: 0!important;
        height: 11vw;
    }

    header nav {
        width: 75%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 4;
        background-color: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.75) !important;
        transition: all 0.3s;
        transform: translateX(-110%);
    }

    header nav.active {
        transform: translateX(0);
    }

    header nav ul {
        width: 100%;
        height: 70%;
        flex-direction: column!important;
        padding: 0!important;
        transform: translateY(-20vw);
    }

    header nav ul li {
        font-size: 3.7vw;
        padding: 0 2vw;
        height: 18vw;
        gap: 0.5vw;
        width: 100%;
        font-weight: 500;
    }

    header nav ul li a {
        font-weight: 500;
        font-size: 3.7vw;
    }

    header nav ul li ul {
        width: 100%;
        height: 90vw;
        border-radius: 0;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
        transform: translateY(7vw);
        /*background-color: rgb(17, 17, 17);*/
        background-color: rgb(31, 31, 31);
    }

    header nav ul li > ul li {
        height: 18vw;
        padding: 1.5vw 3vw;
        justify-content: start!important;
        position: relative;
        transition: all 0.3s;
        color: var(--light-font) !important;
    }

    header nav ul li > ul li:not(:last-child) {
        border-bottom: 1px dashed rgba(187, 187, 187, 0.2);
    }

    header nav ul li > ul li::before {
        width: 0;
        height: 0.7vw;
    }

    header nav ul li > ul li:hover {
        padding-right: 7vw;
    }

    header nav ul li > ul li:hover::before {
        width: 5vw;
    }

    header nav ul li > ul > li ul {
        top: 100%;
        right: 0;
    }

    header nav ul li > ul > li:hover ul {
        width: 100%;
        opacity: 1;
    }

    header nav ul li > ul > li ul li {
        width: 100%;
        position: relative;
        padding: 0 8vw;
    }

    header nav ul li > ul > li ul a {
        width: 100%;
        height: 100%;
        opacity: 1;
        text-align: start;
        color: var(--light-font);
        padding: 0.5vw 1vw;
        justify-content: start!important;
    }

    header .header-left-btns-group {
        width: 70%;
        height: 100%;
        position: relative;
        justify-content: end!important;
        gap: 2vw;
    }
}
