header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header a {
    text-decoration: none;
    font-size: var(--standard-text);
    font-weight: var(--heavy-font-weight);
    color: var(--primary-color);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1440px;
    box-sizing: border-box;
    padding: 15px 70px 15px 70px;
}

.logo {
    height: 60px;
    width: 60px;
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: invert(77%) sepia(84%) saturate(409%) hue-rotate(18deg) brightness(120%) contrast(101%);
}

.header-tabs {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.header-tabs a {
    position: relative;
}

.nav-circle-img,
.nav-string-img,
.nav-wave-img,
.nav-underscore-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 50px;
    transform: translate(-50%, -50%);
    clip-path: inset(0 100% 0 0);
    transition: none;
}

.lang-de .nav-circle-img {
    width: 150px;
}

.lang-de .nav-string-img {
    width: 280px;
}

.header-tabs a:hover .nav-circle-img {
    animation: draw-circle 0.4s ease forwards;
}

.header-tabs a:hover .nav-string-img {
    animation: draw-line 0.4s ease forwards;
}

.header-tabs a:hover .nav-wave-img {
    animation: draw-line 0.4s ease forwards;
}

.header-tabs a:hover .nav-underscore-img {
    animation: draw-line 0.4s ease forwards;
}

.language-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--primary-color);
    font-size: var(--standard-text);
}

.lang-btn.active {
    color: #F87A55;
}

.lang-btn-wrapper {
    position: relative;
}

.lang-btn-wrapper:has(.lang-btn:not(.active)) {
    cursor: pointer;
}

.lang-box-img {
    position: absolute;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    pointer-events: none;
    opacity: 0;
}

.lang-btn-wrapper:hover .lang-box-img {
    animation: draw-box 0.4s ease forwards;
    opacity: 1;
}

.lang-btn.active+.lang-box-img,
.lang-btn-wrapper:has(.lang-btn.active) .lang-box-img {
    animation: none !important;
    opacity: 0 !important;
}

.toggle-track {
    position: relative;
    width: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toggle-track:hover {
    cursor: pointer;
}

.vector-bar {
    width: 100%;
    display: block;
}

.vector-point {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: left 0.3s ease;
}

.vector-point.active {
    left: 100%;
    transform: translate(-100%, -50%);
}

/* Mobile Menu*/

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    background-image: url('../assets/images/background/hero-bg.webp');
    background-position: bottom;
    background-size: cover;
    top: 0;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    gap: 40px;
    display: none;
    flex-direction: column;
    box-sizing: border-box;
    padding: 15px 70px 15px 70px;
    z-index: 100;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.mobile-menu-logo {
    height: 40px;
}

.mobile-menu-logo:hover {
    filter: invert(77%) sepia(84%) saturate(409%) hue-rotate(18deg) brightness(120%) contrast(101%);
}

.mobile-menu-close-btn {
    background: none;
    border: none;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    color: var(--primary-color);
    cursor: pointer;
    font-size: var(--standard-text);
}

.mobile-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-language {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: var(--primary-color);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link-mobile {
    border: 1px solid white;
    border-radius: 50%;
}

.mobile-social-img {
    z-index: 1;
    height: 32px;
    width: 32px;
}

/* Mobile */
@media (max-width: 950px) {
    header {
        position: fixed;
        background-color: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 50;
    }

    .logo {
        height: 40px;
        width: 40px;
    }

    .mobile-menu {
        display: flex;
        padding: 15px 70px 15px 70px;
    }

    .mobile-menu.open {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .header-tabs {
        display: none;
    }

    .language-btn {
        display: none;
    }

    .lang-btn-wrapper:has(.lang-btn.active) {
        pointer-events: none;
    }

    .mobile-tabs a {
        position: relative;
    }

    .mobile-tabs a:hover .nav-circle-img {
        animation: draw-circle 0.4s ease forwards;
    }

    .mobile-tabs a:hover .nav-string-img {
        animation: draw-line 0.4s ease forwards;
    }

    .mobile-tabs a:hover .nav-wave-img {
        animation: draw-line 0.4s ease forwards;
    }

    .mobile-tabs a:hover .nav-underscore-img {
        animation: draw-line 0.4s ease forwards;
    }

    .social-link-mobile {
        position: relative;
        border-radius: 50%;
        height: 40px;
        width: 40px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .social-link-mobile a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .social-link-mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--main-color-two);
        border-radius: 50%;
        transform: translateY(100%);
        transition: transform 0.4s ease;
        z-index: 0;
    }

    .social-link-mobile:hover::before {
        transform: translateY(0);
    }

    .mobile-language {
        align-items: center;
        gap: 8px;
    }

    .mobile-lang-btn {
        color: var(--primary-color);
        cursor: pointer;
    }

    .mobile-lang-btn.active {
        color: #F87A55;
    }
}

@media (max-width: 680px) {
    .nav-bar {
        padding: 15px 35px 15px 35px;
    }

    .mobile-menu {
        padding: 15px 35px 15px 35px;
    }
}

@media (max-width: 405px) {
    .nav-bar {
        padding: 15px 15px 15px 15px;
    }

    .mobile-menu {
        padding: 15px 15px 15px 15px;
    }
}