/* استایل‌های هدر موبایل */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .main-header {
        height: var(--header-height);
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        background-color: rgba(30, 58, 138, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }

    .logo {
        display: flex;
        align-items: center;
        z-index: 1001;
    }

    .logo img {
        width: 40px;
        height: auto;
        margin-left: 10px;
    }

    .logo h1 {
        font-size: 1.1rem;
        color: var(--light-color);
        white-space: nowrap;
        margin: 0;
    }

    .main-nav,
    .nav-links,
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--light-color);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(30, 58, 138, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.4s ease-in-out;
        z-index: 1000;
        padding: 5rem 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease-in-out;
        transition-delay: calc(0.1s * var(--i, 0));
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.3rem;
        color: var(--light-color);
        text-decoration: none;
        padding: 0.5rem 1rem;
        position: relative;
        transition: all 0.3s ease;
        display: block;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 2px;
        background-color: var(--secondary-color);
        transition: width 0.3s ease;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
        right: auto;
        left: 0;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--secondary-color);
    }

    .header {
        padding: 10px;
    }

    .logo {
        margin-right: 50px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* تنظیمات برای صفحه‌های خیلی کوچک */
@media screen and (max-width: 576px) {
    :root {
        --header-height: 50px;
    }

    .main-header {
        height: var(--header-height);
    }

    .logo img {
        width: 35px;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .main-header .container {
        padding: 0 0.8rem;
    }

    .nav-links a {
        font-size: 1.1rem;
    }
} 