:root {
    --glass-bg: rgba(15, 15, 15, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-color: #f5f5f5;
    --accent-yellow: #e0c760;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    width: 100%;
    background: var(--glass-bg);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 2.5rem;
    margin: 1rem auto 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

header:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

header h1 {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 25px;
    margin-left: -10px;
}

header h1 a,
header h1 a:visited {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--text-color);
}

header h1 a:hover {
    opacity: 0.8;
}

header h1 a::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('/images/favicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

nav {
    display: flex;
    gap: 2.2rem;
    margin-left: 50rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

nav a:hover {
    color: var(--accent-yellow);
}

nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.2rem 1.5rem;
        border-radius: 12px;
    }

    nav {
        gap: 1.5rem;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }
}