header {
    z-index: 1000;
    font-size: 1.1rem;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    display: flex;
    justify-content: space-between;
    border-bottom: var(--border);
    box-shadow: var(--shadow-sm);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;

    img {
        margin: 1em;
        width: 3em;
        height: auto;
        transition: transform 0.3s ease;
    }

    img:hover {
        transform: scale(1.1) rotate(5deg);
    }

    nav {
        padding: 2em;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 2em;

        &.navHidden {
            padding: 1em;
            a {
                display: none;
            }
        }
    }

    a {
        color: var(--text-col);
        text-decoration: none;
        border-bottom: var(--border);
        width: 30vw;
        text-align: right;
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;

        &:hover {
            background: #f8f9fa;
            color: var(--accent-col);
        }

        &::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-col);
            transition: width 0.3s ease;
        }

        &:hover::after {
            width: 100%;
        }
    }

    button {
        border-radius: 12px;
    }
}

@media (min-width: 762px) {
    header {
        justify-content: center;

        img {
            margin-right: 4em;
        }

        nav {
            padding: 0.5em;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 3em;
            &.navHidden {
                a {
                    display: initial;
                }
            }
        }

        a {
            border-bottom: none;
            width: initial;
            text-align: left;
            padding: 0.75rem 1.25rem;
            border-radius: 8px;

            &:hover {
                background: #f8f9fa;
                color: var(--accent-col);
                transform: translateY(-2px);
            }
        }

        button {
            display: none;
        }
    }
}
