/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary);
    z-index: 2000;
    width: 0%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.65rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.logo i {
    color: var(--primary);
    font-size: 1.9rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
    margin: 0 auto;            /* links sit in the free space between the logo and the buttons */
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.98rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.header-actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.mobile-menu-btn:hover {
    color: var(--primary);
    background: rgba(26, 86, 219, 0.08);
}


/* Narrow laptops: a little tighter so the links and the two portal buttons never touch */
@media (min-width: 1025px) and (max-width: 1200px) {
    .nav-list { gap: 1rem; }
    .header-actions { gap: 0.5rem; }
    .header-actions .btn { padding: 0.45rem 1rem; font-size: 0.9rem; }
}
