nav
{
    width: 100%;
    position: fixed;
    top: 0;
    padding: 20px 30px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s;
}

nav .links
{
    width: 40%;
}

nav .links .inner-wrap
{
    width: fit-content;
    display: flex;
    gap: 20px;
    text-transform: uppercase;
}

nav .inner-wrap a
{
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

nav .inner-wrap:hover a { filter: blur(2px); }
nav .inner-wrap a:hover { filter: blur(0) !important; }

nav .logo img { width: 150px; }

nav .cta-wrap
{
    width: 40%;
    display: flex;
    justify-content: flex-end;
}

nav.scrolled
{
    background-color: var(--primary-color);
    padding: 15px 30px;
}

nav.scrolled .links a { color: var(--secondary-color); }

/* ————— HAMBURGER ————— */
.hb-menu-icon
{
    width: 40%;
    display: none;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
}

.hamburger-wrap
{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-wrap .lines
{
    width: 25px;
    height: 1.5px;
    background-color: var(--primary-color);
    display: block;
    transition: transform 0.3s, opacity 0.3s;
    will-change: transform, opacity;
}

nav.scrolled .hamburger-wrap .lines { background-color: var(--secondary-color); }

.hamburger-wrap.active .lines:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger-wrap.active .lines:nth-child(2) { opacity: 0; }
.hamburger-wrap.active .lines:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ————— MENU OVERLAY ————— */
.menu-overlay
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: height 0.6s;
}

.menu-overlay.active { height: 100dvh; }

.menu-overlay .links a
{
    opacity: 0;
    filter: blur(10px);
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin: 0;
    text-transform: uppercase;
    color: var(--secondary-color);
    will-change: opacity, filter;
    transition: opacity 0.4s, filter 0.4s;
}

.menu-overlay .links a:not(:last-child) { margin-bottom: 20px; }

.menu-overlay .links a.visible
{
    opacity: 1;
    filter: blur(0px);
}

.menu-overlay .links:hover a { filter: blur(2px); }
.menu-overlay .links a:hover { filter: blur(0) !important; }

/* ————— FOOTER ————— */
.footer
{
    border-top: 0.5px solid #ddd;
    padding: 10px;
}

.links-wrap
{
    padding: 60px 50px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer .links-box span,
.footer .links-box a
{
    color: var(--secondary-color);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
    transition: 0.3s;
    display: block;
    text-decoration: none;
    width: fit-content;
}

.footer .links-box a
{
    font-size: 16px;
    color: #7a7a7a;
}

.footer span
{
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.links-box:hover a { filter: blur(1px); }
.footer a:hover { filter: blur(0); }

.footer .credits
{
    display: flex;
    justify-content: space-between;
}

.footer .credits p,
.credits p a
{
    color: var(--secondary-color);
    font-weight: 400;
    font-size: 12px;
    margin: 0;
    line-height: 1;
}

/* ————— MEDIA QUERIES ————— */
@media (max-width: 1000px)
{
    nav.scrolled
    {
        padding: 20px 30px;
    }
    nav
    {
        flex-direction: row-reverse;
    }

    nav .links { display: none; }
    nav .cta-wrap { display: none; }

    nav .logo { width: 50%; }

    nav .hb-menu-icon
    {
        width: 50%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

@media (max-width: 700px)
{
    .footer { padding: 30px; }

    .footer .links-wrap
    {
        padding: 0 0 20px;
        flex-direction: column;
        gap: 30px;
    }

    .footer .credits
    {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .footer .credits p,
    .credits p a { font-size: 10px; }
}