/* general */
@font-face {
    font-family: 'GT Walsheim';
    src: url('../font/GT-Walsheim-Regular.woff2') format('woff2'),
         url('../font/GT-Walsheim-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    font-family: 'GT Walsheim', sans-serif;
}
:root {
    --WhiteColor: white;
    --BlackColor: #000000;
    --MenuBackground: #f4f4f4;
}

/* header */
.header-section {
    position: relative;
    width: 100vw;
    height: 15vh;
    background-color: white;
    display: flex;
    flex-direction: row;
}
/* header logo */
.header-logo {
    width: 70vw;
    height: 15vh;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.log-nahan {
    z-index: 200;
    width: auto;
    height: 60%;
}
/* header menu */
.header-menu-box {
    z-index: 200;
    position: fixed;
    right: 0;
    width: 30vw;
    height: 15vh;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}
.menu-icon {
    position: relative;
    width: 40px;
    height: 35px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
}
.menu-icon span {
    position: absolute;
    height: 3px;
    width: 80%;
    border-radius: 2px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    transition: all 250ms ease;
}
.menu-icon span:nth-child(2) {
    width: 60%;
    left: 30%;
}
.menu-bar {
    background-color: black;
}
.menu-bar.active {
    background-color: white;
}
.menu-icon span:nth-child(1) {
    transform: translateY(-10px);
}
.menu-icon span:nth-child(3) {
    transform: translateY(8px);
}
.menu-icon.active span:nth-child(1) {
    transform: rotate(225deg) translateY(0);
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(0);
}
@media screen and (min-width: 769px) {
    .header-logo {
        padding-left: 2rem;
    }
    .header-menu-box {
        padding: 2.5rem 3rem;
    }
}

/* menu */
.menu {
    z-index: 100;
    position: fixed;
    right: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    text-align: center;
    transition: all 300ms ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: rgb(244, 244, 244);
}
.menu.active {
    height: 100vh;
    padding-top: 25vh;
}
.menu ul {
    width: 80vw;
    padding: 2rem;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    border: solid 2px black;
    border-radius: 15px;
}
.menu ul::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 25%;
    right: 0;
    bottom: 0;
    background-color: rgb(244, 244, 244);
    background-repeat: no-repeat;
    z-index: 1;
}
.menu li {
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: black;
    font-size: 1rem;
    transition: all 200ms ease;
}
.menu a {
    z-index: 10;
    position: relative;
    width: 90%;
    text-decoration: none;
    padding: 1.5rem 1rem;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
    transition: all 400ms ease;
}
.menu a:nth-child(4) {
    justify-content: flex-end;
}
.menu a:nth-child(4) li {
    font-size: 1rem;
}
.menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid black;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}
.menu a:nth-child(4)::before {
    border-bottom: none;
}
@media screen and (min-width: 426px) {
    .menu ul {
        width: 60vw;
    }
}
@media screen and (min-width: 769px) {
    .menu {
        width: 35%;
        left: 65%;
    }
    .menu ul {
        width: 25vw;
    }
    .menu a:hover {
        padding-left: 3rem;
    }
    .menu a:nth-child(4):hover li {
        color: orange;
    }
}

