/* ===== HEADER COMPONENT ===== */
.header {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scroll-header {
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ===== NAVIGATION ===== */
.nav {
    max-width: 968px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav__logo {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav__logo:hover {
    color: var(--first-color);
}

.nav__toggle {
    color: var(--title-color);
    font-weight: var(--font-medium);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav__toggle:hover {
    color: var(--first-color);
}

/* Mobile Navigation */
@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        padding: 2rem 1.5rem 4rem;
        box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
        border-radius: 1.5rem 1.5rem 0 0;
        transition: 0.3s;
    }
    
    .nav__menu.show-menu {
        bottom: 0;
    }
}

.nav__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--first-color);
}

.nav__link.active-link {
    color: var(--first-color);
}

.nav__icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.nav__close {
    position: absolute;
    right: 1.3rem;
    bottom: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--first-color);
    transition: color 0.3s ease;
}

.nav__close:hover {
    color: var(--first-color-alt);
}

/* Desktop Navigation */
@media screen and (min-width: 768px) {
    .header {
        top: 0;
        bottom: initial;
    }
    
    .nav {
        height: calc(var(--header-height) + 1.5rem);
        column-gap: 1rem;
    }
    
    .nav__icon,
    .nav__close,
    .nav__toggle {
        display: none;
    }
    
    .nav__list {
        display: flex;
        column-gap: 2rem;
    }
    
    .nav__menu {
        margin-left: auto;
    }
    
    .nav__link {
        flex-direction: row;
        gap: 0.5rem;
    }
}

/* Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, var(--first-color));
    z-index: calc(var(--z-fixed) + 1);
    transition: width 0.3s ease;
}

@media screen and (min-width: 768px) {
    .scroll-progress {
        top: calc(var(--header-height) + 1.5rem);
    }
}