/* ==================== HEADER & NAVIGATION ==================== */

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 8px rgba(0, 153, 216, 0.3);
}

.top-bar {
    display: none;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    min-height: auto;
}

.top-bar-left {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.top-bar-left span {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    font-size: 11px;
    margin: 0;
    padding: 0;
    height: auto;
}

.top-bar-left span:nth-child(3) {
    display: none;
}

.top-bar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 0;
}

.icon-social {
    width: 14px;
    height: 14px;
}

/* Navigation Bar */
.navbar {
    background-color: var(--white);
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 4px;
    z-index: 999;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

.logo {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 120px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 6px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 968px) {
    .nav-content {
        gap: 20px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-links a {
        display: block;
        padding: 16px 20px;
        font-size: 15px;
    }

    .nav-buttons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .top-bar-left {
        gap: 12px;
        flex-wrap: wrap;
    }

    .top-bar-content {
        flex-direction: row;
        gap: 8px;
    }

    .top-bar-left span:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
        min-width: 120px;
    }

    .nav-content {
        gap: 15px;
    }

    .nav-links a {
        padding: 14px 18px;
    }

    .top-bar-left {
        gap: 6px;
    }

    .top-bar-left span {
        font-size: 11px;
    }

    .top-bar-right {
        gap: 10px;
    }

    .top-bar-left span:nth-child(2) {
        display: none;
    }
}
