.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--safe-width);
    z-index: 9999;
    background: #000;
    padding: 1rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo {
    height: 80px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-align: left;
    color: #fff;
    padding: 0;
    margin: 0;
}

.site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.site-nav.active {
    pointer-events: auto;
}

.nav-links {
    list-style-type: none;
    text-align: center;
}

.nav-links li {
    margin: 1rem 1rem;
}

.site-nav.active.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.site-nav.active.open .nav-links li {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideIn 0.3s ease forwards;
}

.site-nav.active.open .nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.site-nav.active.open .nav-links li:nth-child(2) {
    animation-delay: 0.2s;
}

.site-nav.active.open .nav-links li:nth-child(3) {
    animation-delay: 0.3s;
}

.site-nav.active.open .nav-links li:nth-child(4) {
    animation-delay: 0.4s;
}

.site-nav.active.open .nav-links li:nth-child(5) {
    animation-delay: 0.5s;
}

.site-nav.active.open .nav-links li:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@keyframes fadeCollapseOut {
    to {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
}

.menu-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 22px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 10000;
}

.menu-toggle .line {
    position: absolute;
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle .line:nth-child(1) {
    top: 6px;
}

.menu-toggle .line:nth-child(2) {
    top: 14px;
}

.menu-toggle.active .line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active .line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .site-header {
        width: 100%;
    }

    .site-header .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-logo {
        height: 100px;
        width: auto;
    }

    .site-title{
        display: block;
    }

    .logo-title-wrapper {
        justify-content: center;
    }

    .site-nav {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        position: static;
        background: transparent;
        width: auto;
        max-height: none;
        border: none;
        opacity: 1;
        transform: none;
        overflow: visible;
        pointer-events: auto;
        padding: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: flex-end;
        margin: 0;
        padding: 0;
        margin-right: 1rem;
        list-style: none;
    }

    .nav-links li {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .nav-links a {
        position: relative;
        color: #fff;
        font-weight: bold;
        text-decoration: none;
        font-size: 1rem;
        padding: 0.25rem 0;
        transition: color 0.3s ease;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: var(--accent);
        transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .nav-links a.active {
        color: var(--accent);
    }

    .nav-links a.active::after {
        width: 100%;
    }

}