@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: 'Vazir', arial, sans-serif;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1E355F;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1E355F;
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    background: #1E355F;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background: #163048;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 53, 95, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1E355F;
    padding: 0.3rem 0.5rem;
    z-index: 1100;
}

.header-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
}

.line-path {
    fill: none;
    stroke: #A8E10C;
    stroke-width: 2;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: drawLine 8s ease-in-out infinite alternate;
}

@keyframes drawLine {
    from {
        stroke-dashoffset: 3000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 16px;
    }

    .navbar {
        justify-content: center;
    }

    .logo-img {
        margin: 0 auto;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        padding: 0;
    }

    .nav-menu.open {
        max-height: 400px;
        padding: 1rem;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    .header-cta {
        display: none;
    }

    .header-line {
        display: none;
    }

    .hero-visual {
        display: none !important;
    }
}