/* ============================================
   فونت وزیر (پیش‌فرض)
   ============================================ */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* ============================================
   فونت ایران‌سنس (گوگل فونت)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=IRANSans&display=swap');

/* ============================================
   فونت لاله‌زار (گوگل فونت)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');

/* ============================================
   فونت‌های فارسی با CDN
   ============================================ */
@font-face {
    font-family: 'Tanha';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/tanha-font@v0.10/dist/Tanha.woff2') format('woff2');
}

@font-face {
    font-family: 'Shabnam';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/shabnam-font@v5.0.1/dist/Shabnam.woff2') format('woff2');
}

@font-face {
    font-family: 'Yekan';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/yekan-font@v1.0.0/dist/Yekan.woff2') format('woff2');
}

@font-face {
    font-family: 'Dana';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/dana-font@v0.6.0/dist/Dana.woff2') format('woff2');
}

@font-face {
    font-family: 'Parastoo';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/parastoo-font@v0.0.1/dist/Parastoo.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: #0c0a1d;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* ===== پس‌زمینه نئونی ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* ===== دایره‌های نئونی ===== */
.neon-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 10s ease-in-out infinite alternate;
}
.neon-orb:nth-child(1) {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.08);
    top: -150px;
    right: -150px;
}
.neon-orb:nth-child(2) {
    width: 350px;
    height: 350px;
    background: rgba(236, 72, 153, 0.06);
    bottom: -120px;
    left: -120px;
    animation-delay: -5s;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

/* ===== کانتینر شیشه‌ای نئونی ===== */
.glass-neon {
    position: relative;
    z-index: 1;
    background: rgba(26, 22, 37, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
}
.glass-neon:hover {
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.06);
}

/* ===== دکمه‌های نئونی ===== */
.btn-neon {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 14px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}
.btn-neon:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.3);
}

.btn-neon-success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}
.btn-neon-success:hover {
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.3);
}

.btn-neon-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}
.btn-neon-danger:hover {
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.2);
}

.btn-neon-ghost {
    background: rgba(168, 85, 247, 0.04);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.06);
}
.btn-neon-ghost:hover {
    background: rgba(168, 85, 247, 0.08);
    color: #fff;
    border-color: rgba(168, 85, 247, 0.15);
}

.btn-neon-sm {
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 10px;
}

/* ===== کارت‌های نئونی ===== */
.card-neon {
    background: rgba(26, 22, 37, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.06);
    border-radius: 18px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.card-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #ec4899, #3b82f6);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card-neon:hover {
    background: rgba(26, 22, 37, 0.6);
    border-color: rgba(168, 85, 247, 0.12);
    transform: translateY(-3px);
}
.card-neon:hover::before {
    opacity: 1;
}

/* ===== فرم نئونی ===== */
.input-neon {
    width: 100%;
    padding: 12px 16px;
    background: rgba(26, 22, 37, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.06);
    border-radius: 14px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    font-size: 1rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
    outline: none;
}
.input-neon:focus {
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.04), inset 0 0 30px rgba(168, 85, 247, 0.02);
}
.input-neon::placeholder {
    color: rgba(255, 255, 255, 0.08);
}

/* ===== بج نئونی ===== */
.badge-neon {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.badge-free {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.2);
}
.badge-premium {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1));
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

/* ===== هدر ===== */
.header-neon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 28px;
    background: rgba(26, 22, 37, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.04);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}
.header-neon .logo {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-neon .greeting {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== فوتر ===== */
.footer-neon {
    text-align: center;
    padding: 20px 28px;
    background: rgba(26, 22, 37, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.02);
    margin-top: 20px;
}
.footer-neon p {
    color: rgba(255, 255, 255, 0.04);
    font-size: 0.7rem;
}
.footer-neon p span {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== انیمیشن‌ها ===== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.project-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}
.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== اسکرول ===== */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: rgba(26, 22, 37, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.3);
}

/* ===== دیالوگ ===== */
.dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.dialog-overlay.active { display: flex; }
.dialog-box {
    background: #1a1625;
    color: #e2e8f0;
    max-width: 460px;
    width: 90%;
    padding: 40px 32px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(168,85,247,0.1);
    box-shadow: 0 0 60px rgba(168,85,247,0.05);
    animation: pop 0.3s ease-out;
}
@keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.dialog-box .dialog-text { font-size: 1.2rem; line-height: 1.8; margin-bottom: 20px; }
.dialog-box .dialog-close {
    padding: 10px 40px;
    border-radius: 40px;
    border: none;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}
.dialog-box .dialog-close:hover { transform: scale(1.04); }