/* ===================== DESKTOP NAV ===================== */
.main-header .nav-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 0;
    position: relative;
}

.main-header nav {
    background: var(--nav-bg);
    border-radius: 100px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
    box-shadow: inset -4px 4px 4px 4px rgba(0, 0, 0, 0.4);
    position: relative;
}

.main-header nav::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(45deg,
            rgba(50, 50, 69, 1) 0%,
            rgba(50, 50, 69, 0) 51%,
            rgba(50, 50, 69, 1) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

.logo {
    width: 100px;
    height: 100px;
    position: absolute;
    right: 3px;
    top: 1px;
}

.main-header .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex: 1;
    justify-content: center;
    padding: 0 20px;
}

.main-header .nav-links>li {
    position: relative;
}

.main-header .nav-links>li>a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    padding: 8px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.nav-links>li>a:hover {
    color: var(--text-white);
    background: var(--hover-bg);
}

.nav-links>li>a .arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.25s ease;
    display: inline-block;
}

.nav-links>li:hover>a .arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: #1a1a26c2;
    border: 1px solid #383850;
    border-radius: 16px;
    min-width: 240px;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    list-style: none;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    right: 20px;
    width: 100%;
    height: 14px;
    background: transparent;
}

.nav-links>li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    color: #bbb;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: all 0.18s ease;
    backdrop-filter: blur(30px);
}

.dropdown li a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #aaa;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #2B2B3B;
    line-height: 0;
    padding: 16px;
}

.social-icons a:hover {
    color: var(--text-white);
    background: var(--hover-bg);
}

.social-icons a img {
    width: 100%;
}

.social-icons a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #3F3F5C, #3f3f5c1c);
    color: var(--text-white) !important;
    border: none;
    border-radius: 30px;
    padding: 16px 28px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 12px;
}

.cta-btn:hover {
    background: var(--gold);
    color: var(--nav-bg);
    font-size: 18px !important;
    font-weight: 500 !important;
}


/* ===================== MOBILE NAV ===================== */
.mobile-nav {
    display: none;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 16px;
}

.mobile-bar {
    background: var(--nav-bg);
    border-radius: 50px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.mobile-logo {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 80px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
}

.mobile-logo svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
    margin-bottom: 1px;
}

.mobile-logo span {
    font-size: 7px;
    letter-spacing: 1px;
    color: var(--gold);
    font-weight: 700;
}

.mobile-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-bar .cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #3F3F5C, #3f3f5c1c);
    color: var(--text-white) !important;
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 12px;
}


.mobile-menu-overlay .social-icons {
    justify-content: center;
}

.mobile-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2a2a3e;
    color: var(--text-white);
    border: none;
    border-radius: 24px;
    padding: 8px 14px;
    font-size: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-cta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.mobile-cta:hover {
    color: var(--gold);
}

.hamburger {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: background 0.2s;
    padding: 0;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Fullscreen mobile menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 90px 24px 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    list-style: none;
    flex: 1;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 18px 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: var(--gold);
}

.mobile-menu-link .m-arrow {
    font-size: 12px;
    opacity: 0.5;
    transition: transform 0.25s ease;
}

.mobile-menu-item.open .mobile-menu-link .m-arrow {
    transform: rotate(90deg);
    color: var(--gold);
}

.mobile-menu-item.open .mobile-menu-link {
    color: var(--gold);
}

.mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-menu-item.open .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu li a {
    display: block;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 2px 0;
    transition: all 0.18s ease;
}

.mobile-submenu li a:hover {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.07);
}

.mobile-submenu .sub-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 4px 16px;
}

.mobile-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #aaa;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-social a:hover {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
}

.mobile-social a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mobile-cta-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2a2a3e;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    font-size: 15px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.mobile-cta-full:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.mobile-cta-full svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* page content demo */
.page-demo {
    padding: 120px 24px 60px;
    text-align: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 14px;
}

div#mobileMenu ul {
    margin-top: 40px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .nav-wrapper {
        display: none;
    }

    .mobile-nav {
        display: block;
    }
}