/* Unified Navigation Styles with Theme Support */
:root {
    --nav-bg: rgba(3, 7, 18, 0.8);
    --nav-border: rgba(255, 255, 255, 0.08);
    --nav-text: #94a3b8;
    --nav-primary: #38bdf8;
    --nav-logo-text: #ffffff;
}

.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nav-logo-text);
    font-weight: 700;
    font-size: 1.3rem;
}

.logo img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--nav-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--nav-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--nav-text);
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        border-bottom: 1px solid var(--nav-border);
        gap: 25px;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Header Particles Styling */
header {
    position: relative !important;
    overflow: hidden !important;
}

#header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

header > * {
    position: relative;
    z-index: 2;
}
