/* Header & Navigation: controls site-branding, nav layout and responsive behavior */

/* Navbar container and default alignment */
header.navbar {
    display: flex;
    background-color: #161b22;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 2rem;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-weight: 400;
}

/* Brand and burger button styling for mobile */
.navbar a {
    color: white;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.navbar a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar-item {
    color: white !important;
}

.navbar-item:hover {
    color: #3498db !important;
}

.navbar-burger {
    color: white !important;
}

/* Navigation menu styles and active link state */
.no-link-style {
    text-decoration: none;
    color: inherit;
}

.no-link-style:hover {
    color: inherit;
}

.navbar-item.active {
    color: #3498db !important;
}

/* Responsive adjustments for nav layout on small screens */
@media (max-width: 768px) {
    header.navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .navbar-menu.is-active {
        display: flex;
        color: black;
        background: black;
    }

    .navbar-item {
        padding: 10px 0;
    }

    .navbar a::before {
        background-color: black !important
    }
}