header {
    position: fixed;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
}

.nav_shadow {
    padding: 15px 30px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
    min-height: 80px;
    transition: all 0.5s ease;
    background-color: white;
    box-shadow: 0px 4px 4px 0px rgba(30, 27, 27, 0.5);
}

.nav_shadow:not(.scrolled) {
    justify-content: center;
    background: transparent;
    box-shadow: none;
    height: 20px;
    padding: 10px 30px;
    box-shadow: 0px 4px 4px 0px rgba(30, 27, 27, 0.5);
    backdrop-filter: blur(9.6px);
}


.nav_shadow:not(.scrolled) .logo_title {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5 ease-in-out;
    width: 0;
    overflow: hidden;
}

.nav_shadow:not(.scrolled) .nav_list a {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

.nav_shadow:not(.scrolled) .nav_list a:hover {
    color: #ffffff;
    text-shadow: none;
    border-bottom: 3px solid #ffffff;
}

.nav_shadow:not(.scrolled) .nav_list a.active {
    color: #fafafa;
    border-bottom: 3px solid #ffffff;
    font-weight: 700;
}

.nav_shadow.scrolled .nav_list a.active {
    color: #0174AA;
    border-bottom: 3px solid #0174AA;
    font-weight: 700;
}

.nav_shadow.scrolled .logo_title {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    width: auto;
}

.logo_title {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav_title {
    color: #5e5e5e;
    text-align: left;
    font-family: "Bebas Neue", sans-serif;
    font-size: 25px;
    font-weight: 300;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.logo_link {
    text-decoration: none;
    display: flex;
}

.logo {
    border-radius: 35%;
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.nav_list ul {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav_list li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav_list a {
    color: #5e5e5e;
    text-align: center;
    font-family: "Archivo Narrow", sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    padding: 8px 15px 5px 15px;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav_list a:hover {
    color: #0174AA;
    border-bottom: 3px solid #0174AA;
    transition: all 0.5s ease-in-out;
}

.nav_list a.active {
    color: #0174AA;
    border-bottom: 3px solid #0174AA;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1003;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #5e5e5e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
}

@media (min-width: 1440px) {
    .nav_shadow {
        padding: 15px 60px;
        height: 70px;
    }
    
    .nav_list ul {
        gap: 25px;
    }
}

@media (max-width: 1439px) and (min-width: 992px) {
    .nav_shadow {
        padding: 10px 30px;
        height: 70px;
    }
    
    .nav_list a {
        font-size: 18px;
        padding: 8px 12px 5px 12px;
    }
    
    .nav_title {
        font-size: 22px;
    }

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

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav_list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.1s ease;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        z-index: 1002;
    }
    
    .nav_list.active {
        right: 0;
    }
    
    .nav_list ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav_list li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav_list a {
        display: block;
        width: 100%;
        text-align: left;
        border-bottom: none;
    }
    
    .nav_list a:hover {
        color: #0174AA;
        transition: all 0.1s ease;
    }

    .overlay.active {
        display: block;
        opacity: 1;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav_shadow:not(.scrolled) {
        justify-content: flex-end;
        z-index: 1003;
    }

    .nav_shadow:not(.scrolled) .menu-toggle span {
        background-color: rgb(225, 225, 225);
    }
    
    .nav_shadow:not(.scrolled) .menu-toggle.active span {
        background-color: #5e5e5e;
    }

    .nav_shadow:not(.scrolled) .nav_list a {
        color: #5e5e5e;
        text-shadow: none;
    }

    .nav_shadow:not(.scrolled) .nav_list a:hover {
        color: #0174AA;
        border-bottom: 3px solid #0174AA;
    }

    .nav_shadow:not(.scrolled) .nav_list a.active {
        color: #0174AA;
        border-bottom: 3px solid #0174AA;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .nav_shadow {
        padding: 5px 15px;
        height: 70px;
    }
    
    .nav_list a {
        font-size: 16px;
        padding: 8px 10px 5px 10px;
    }
    
    .nav_title {
        font-size: 20px;
    }
    
    .logo {
        width: 55px;
        height: 55px;
    }
    
    .nav_list a {
        padding: 15px 20px;
        font-size: 18px;
    }
}

@media (max-width: 767px) and (min-width: 414px) {
    .nav_shadow {
        padding: 10px 30px 10px 15px;
        min-height: 70px;
    }

    .logo_title {
        gap: 10px;
    }
    
    .nav_title {
        font-size: 18px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .nav_list {
        width: 50%;
    }
    
    .nav_list a {
        padding: 15px 20px;
        font-size: 18px;
    }
}

@media (max-width: 413px) and (min-width: 375px) {
    .nav_shadow {
        padding: 10px 15px;
        min-height: 70px;
    }
    
    .nav_title {
        font-size: 16px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .menu-toggle {
        width: 25px;
        height: 18px;
    }
    
    .nav_list {
        width: 65%;
    }
    
    .nav_list a {
        padding: 12px 15px;
        font-size: 16px;
    }
}

@media (max-width: 374px) {
    .nav_shadow {
        padding: 8px 10px;
        min-height: 60px;
    }

    .nav_title {
        font-size: 14px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .menu-toggle {
        width: 22px;
        height: 16px;
    }
    
    .nav_list {
        width: 75%;
        padding-top: 70px;
    }
    
    .nav_list a {
        padding: 10px 12px;
        font-size: 15px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}