/******************************** Navigation *********************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

body {
    overflow-x: hidden;
}

/*-------------- Nav Bar --------------*/
header {
    width: 100vw;
    background: var(--site-color-white-50);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 300;
    border-bottom: solid 0.5px var(--site-color-grey);
}

#nav {
    height: 100%;
    list-style-type: none;
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin: 0 auto;
    width: 1200px;
    justify-content: space-between;
    transition: all 500ms ease-in-out;
}

.nav-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    transition: all 500ms ease-in-out;
}

.nav-button, #nav-logo {
    text-decoration: none;
    color: var(--site-color-black);
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    padding: 10px 20px;
    border-radius: 25px;
    transition: 300ms all ease-in-out;
    box-sizing:border-box;
    font-family: 'Inter', 'Ping', Arial, Helvetica, sans-serif !important;
}

#nav-logo-container {
    z-index: 1001;
}

#nav-logo {
    font-size: 2em;
    
}

.nav-button:hover, #nav-logo:hover{
    color: var(--site-color-grey);
}

.nav-hamburger {
    display: none;
    z-index: 1001;
}


/* Created by Mikael Ainalem */
.ham {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 400ms;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.hamRotate.active {
    transform: rotate(45deg);
}
.hamRotate180.active {
    transform: rotate(180deg);
}
.line {
    fill:none;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    stroke:#000;
    stroke-width:3.5;
    stroke-linecap:round;
}

.ham-svg .top {
    stroke-dasharray: 40 160;
}
.ham-svg .middle {
    stroke-dasharray: 40 142;
    transform-origin: 50%;
    transition: transform 400ms;
}
.ham-svg .bottom {
    stroke-dasharray: 40 85;
    transform-origin: 50%;
    transition: transform 400ms, stroke-dashoffset 400ms;
}
.ham-svg.active .top {
    stroke-dashoffset: -64px;
}
.ham-svg.active .middle {
    transform: rotate(90deg);
}
.ham-svg.active .bottom {
    stroke-dashoffset: -64px;
}


/******************************** Sub Menu *********************************/
/* .sub-menu {
    position: relative;
    background-color: var(--site-color-white-50);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    width: 100vw;
    height: 70px;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -16px;
}

.sub-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    color: var(--site-color-black);
    width: 920px;
}

.sub-menu-title {
    font-size: 20px;
    font-weight: 500;

}

.sub-menu-pos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 70px;
    font-size: 16px;
}

.sub-menu-pos p {
    cursor: pointer;
    transition: all 300ms ease-in-out;
}

.sub-menu-pos p:hover {
    color: var(--site-color-grey);
}

.sub-menu-pos p:last-of-type {
    text-decoration:line-through;
    color: var(--site-color-grey);
    cursor:auto;
}

.sub-menu-pos .underline {
    position: absolute;
    height: 2px;
    width: 135px;
    background-color: var(--site-color-black);
    border-radius: 1px;
    bottom: 20px;
    transition: all 100ms ease-out;
} */



/******************************** Footer *********************************/
footer {
    display: grid;
    grid-template-columns: 1fr 1200px 1fr;
    color: var(--site-color-grey);
    margin-bottom: 80px;
    margin-top: 80px;
}

footer > div {
    grid-column: 2/3;
    padding: 0 25px;
}

.footer-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    margin: 5px 0 5px 15px;
}

#contacts {
    display: flex;
    gap: 10px;
}

#contacts a {
    padding: 15px 15px 13px 15px;
    border-radius: 30px;
    transition: 300ms all ease-out;
    text-decoration: none;
    font-weight: 500;
    color: var(--projects-color-pd);
}

#contacts a .fa-arrow-up-right {
    --fa-secondary-opacity: 0.40;
    transition: 300ms all ease-out;
}

#contacts a:hover {
    color: #375a8f;
}


#contacts a:hover .fa-arrow-up-right {
    --fa-secondary-opacity: 0.8;
}

@media screen and (max-width: 1239px) {
    #nav {
        width: 1000px;
        padding: 0 10px;
    }

    .sub-nav {
        width: 740px;
    }

    footer {
        grid-template-columns: 1fr 1000px 1fr;
    }
}

@media screen and (max-width: 1019px) {
    #nav {
        width: 800px;
        padding: 0 10px;
    }

    .sub-nav {
        width: 740px;
    }

    footer {
        grid-template-columns: 1fr 800px 1fr;
    }
}

@media screen and (max-width: 768px) {
    #nav {
        width: 100%;
        padding: 0 20px;
    }

    .nav.mobile-active {
        background-color: var(--site-color-white);
    }

    .nav-button, #nav-logo {
        padding: 10px 10px;
        border-radius: 10px;
    }

    .nav-buttons {
        position: absolute;
        top: -70px;
        left: 0;
        z-index: 100;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100vw;
        height: 70px;
        padding: 0px;
        background-color: var(--site-color-white);
    }

    .nav-buttons li {
        width: 80vw;
        padding: -10px;
        border-bottom: 1px solid var(--site-color-grey);
        text-align: left;
        transition: all 500ms ease-in-out;
    }

    .nav-buttons .nav-button {
        display: block;
        padding: 0;
        font-size: 24px;
        transition: all 500ms ease-in-out;
        opacity: 0;
    }

    .nav-buttons.active {
        top: 70px;
        height: 100vh;
        padding: 30px;
    }

    .nav-buttons.active li {
        width: 80vw;
    }

    .nav-buttons li:last-of-type {
        border-bottom: none;
    }

    .nav-buttons.active .nav-button {
        font-size: 24px;
        width: 100%;
        padding: 30px 0;
        opacity: 1;
    }

    .nav-hamburger {
        display: block;
    }

    /******************************** Sub Menu *********************************/
    .sub-menu {
        overflow: hidden;
    }

    .sub-nav {
        position: absolute;
        left: 30px;
        justify-content: flex-start;
        width: 200%;
        gap: 100px;
    }

    .sub-menu-title {
        font-size: 19px;
        width: fit-content;
        white-space: nowrap;
    }

    .sub-menu-pos {
        position: relative;
        left: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
        font-size: 16px;
        width: 100%;
        transition: left 100ms ease-out;
    }

    .sub-menu-pos p {
        cursor: pointer;
    }

    .sub-menu-pos p:last-of-type {
        text-decoration:line-through;
        color: var(--site-color-grey);
        cursor: none;
    }

    .sub-menu-pos .underline {
        position: absolute;
        height: 2px;
        width: 135px;
        background-color: var(--site-color-black);
        border-radius: 1px;
        bottom: 0px;
        left: 0;
        margin-bottom: -5px;
        transition: all 100ms ease-out;
    }

    footer > div {
        padding: 0;
    }

    footer {
        grid-template-columns: 20px 1fr 20px;
    }
}


@media screen and (max-width: 370px) {
    .nav-button, #nav-logo {
        padding: 10px 8px;
        border-radius: 10px;
    }

    footer {
        border-top: solid 1px var(--site-color-grey);
        padding-top: 10px;
    }

    footer #contacts {
        flex-direction: column;
        align-items: center;
        gap: 0px;
    }

    footer #contacts a {
        padding: 8px;
    }

    .footer-text {
        text-align: center;
    }
}