/* ========================================================================== 
   هدر
   ========================================================================== */
   .header-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary)); /* گرادیان با پالت رنگی سایت */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    border-bottom: 5px solid var(--accent); /* خط تاکیدی */
}

.header-section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.header-section .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-section .navbar-brand img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.header-section .navbar-brand img:hover {
    transform: scale(1.1);
}

.header-section .navbar-toggler {
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.header-section .navbar-toggler:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

.header-section .navbar-toggler:focus {
    outline: none;
}

.header-section .navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.header-section .nav-item {
    margin: 0;
}

.header-section .nav-link {
    color: var(--text-light);
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 5px 10px;
}

.header-section .nav-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.header-section .nav-link.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.header-section .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.header-section .nav-link:hover::after {
    width: 100%;
}

.header-section .nav-link.active::after {
    width: 100%;
}

/* افکت برای منوی موبایل */
.header-section .navbar-collapse {
    background: var(--secondary);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.header-section .navbar-collapse.show {
    transform: scale(1);
    opacity: 1;
}

.header-section .navbar-collapse.hide {
    transform: scale(0.95);
    opacity: 0;
}

/* انیمیشن برای نمایش هدر */
.header-section {
    animation: fadeInDown 0.5s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو برای دستگاه‌های کوچک */
@media (max-width: 768px) {
    .header-section .navbar {
        flex-direction: column;
    }

    .header-section .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }

    .header-section .nav-link {
        text-align: center;
    }
}