/* ════════════════════════════════════════════════════════════════
   byhrsn.com — Dark Modern Theme
   ════════════════════════════════════════════════════════════════ */

/* ─── متغیرهای رنگ و طراحی ─── */
:root {
    /* رنگ‌های پایه — Dark Modern */
    --bg-primary:    #0a0e27;
    --bg-secondary:  #13182e;
    --bg-card:       rgba(22, 28, 53, 0.6);
    --bg-card-hover: rgba(30, 38, 70, 0.8);
    --bg-elevated:   #1a2040;

    /* رنگ‌های نئون / تاکیدی */
    --accent-cyan:   #00d4ff;
    --accent-purple: #7c3aed;
    --accent-pink:   #ec4899;

    /* متن */
    --text-primary:   #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    /* حاشیه و خطوط */
    --border:        rgba(148, 163, 184, 0.12);
    --border-active: rgba(0, 212, 255, 0.5);

    /* گرادیانت */
    --gradient-main: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #0a0e27 0%, #13182e 50%, #0a0e27 100%);

    /* سایه‌ها */
    --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);

    /* ابعاد */
    --radius-sm:  10px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-full: 9999px;

    --container-max: 1200px;
    --nav-height: 70px;

    /* انیمیشن */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset پایه ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* فونت فارسی هنگام RTL */
html[dir="rtl"] body {
    font-family: 'Vazirmatn', 'Inter', system-ui, Tahoma, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ─── آیکون‌های SVG ─── */
.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    flex-shrink: 0;
}

/* ─── کانتینر اصلی ─── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 24px;
}

.main-content {
    min-height: calc(100vh - var(--nav-height) - 200px);
    padding-top: var(--nav-height);
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════════════════════════════════════
   پس‌زمینه گرادیانت متحرک
   ════════════════════════════════════════════════════════════════ */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: blob-float 20s ease-in-out infinite;
}

.bg-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    top: -10%;
    left: -10%;
}

.bg-blob-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-purple);
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
}

.bg-blob-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    top: 40%;
    left: 50%;
    opacity: 0.2;
    animation-delay: -14s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -50px) scale(1.1); }
    66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* ════════════════════════════════════════════════════════════════
   نوار ناوبری (Navbar)
   ════════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* برند / لوگو */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--gradient-main);
    color: #0a0e27;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.brand-text {
    letter-spacing: 0.5px;
}

/* منوی اصلی */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: var(--radius-full);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-cta {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.nav-cta:hover {
    background: rgba(0, 212, 255, 0.2);
}

/* دکمه تغییر زبان */
.lang-switch {
    margin-inline-start: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--bg-elevated);
    color: var(--accent-cyan);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.lang-switch:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

/* دکمه منوی موبایل */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-open { display: none; }
.nav-toggle.open .icon-close { display: inline-block; }

/* اورلی موبایل */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-overlay.show {
    display: block;
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════════
   بخش Hero (صفحه اصلی)
   ════════════════════════════════════════════════════════════════ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    min-height: 70vh;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease both;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    animation: fadeUp 0.6s ease 0.1s both;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeUp 0.6s ease 0.2s both;
}

.hero-title .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    animation: fadeUp 0.6s ease 0.3s both;
}

.hero-intro {
    max-width: 640px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
    animation: fadeUp 0.6s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.6s ease 0.5s both;
}

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-main);
    color: #0a0e27;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.45);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.btn .icon {
    font-size: 1.1rem;
}

/* ════════════════════════════════════════════════════════════════
   بخش‌های عمومی صفحه
   ════════════════════════════════════════════════════════════════ */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-inline: auto;
}

.section-title .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* صفحه داخلی (Hero کوچک‌تر) */
.page-hero {
    text-align: center;
    padding: 60px 24px 40px;
}

.page-hero .hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-inline: auto;
}

/* ════════════════════════════════════════════════════════════════
   شبکه کارت‌های دسته‌بندی (صفحه اصلی)
   ════════════════════════════════════════════════════════════════ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent-cyan));
    opacity: 0;
    transition: opacity var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-accent, var(--border-active));
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--card-accent-glow, rgba(0, 212, 255, 0.1));
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    background: var(--card-accent-bg, rgba(0, 212, 255, 0.1));
    color: var(--card-accent, var(--accent-cyan));
    margin-bottom: 20px;
    transition: transform var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--card-accent, var(--accent-cyan));
    margin-top: auto;
}

.category-link .icon {
    transition: transform var(--transition);
}

html[dir="rtl"] .category-card:hover .category-link .icon {
    transform: translateX(-4px);
}

html[dir="ltr"] .category-card:hover .category-link .icon {
    transform: translateX(4px);
}

/* ════════════════════════════════════════════════════════════════
   کارت‌های پروژه
   ════════════════════════════════════════════════════════════════ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-year-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    padding: 4px 12px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.project-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 16px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-cyan);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.no-projects {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* ════════════════════════════════════════════════════════════════
   صفحه درباره من
   ════════════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.about-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    text-align: center;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.avatar-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: #0a0e27;
    margin-bottom: 20px;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.about-avatar h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.about-avatar .role {
    color: var(--accent-cyan);
    font-size: 0.95rem;
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    margin-top: 30px;
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.92rem;
    transition: all var(--transition);
}

.skill-item:hover {
    border-color: var(--border-active);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.skill-item::before {
    content: '▹';
    color: var(--accent-cyan);
}

/* ════════════════════════════════════════════════════════════════
   صفحه تماس
   ════════════════════════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin-inline: auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    font-size: 1.6rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.contact-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    margin-bottom: 16px;
}

.contact-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--accent-cyan);
    color: #0a0e27;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
}

.contact-action:hover {
    background: var(--accent-purple);
    color: #fff;
    transform: translateY(-2px);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.copy-btn:hover {
    border-color: var(--border-active);
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

/* شبکه‌های اجتماعی - ردیف بزرگ */
.social-section {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: center;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    transition: all var(--transition);
    font-weight: 500;
}

.social-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-active);
    background: var(--bg-card-hover);
    color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.social-card .icon {
    font-size: 1.3rem;
}

/* ════════════════════════════════════════════════════════════════
   فوتر
   ════════════════════════════════════════════════════════════════ */
.footer {
    background: rgba(10, 14, 39, 0.6);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 50px 24px 30px;
    text-align: center;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
    margin-top: 12px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.social-link:hover {
    color: var(--accent-cyan);
    border-color: var(--border-active);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-made .heart {
    color: var(--accent-pink);
}

/* ════════════════════════════════════════════════════════════════
   انیمیشن‌های اسکرول (scroll reveal)
   ════════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════
   صفحه ۴۰۴
   ════════════════════════════════════════════════════════════════ */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 40px 24px;
}

.error-code {
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.error-message {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 16px 0 32px;
}

/* ════════════════════════════════════════════════════════════════
   ریسپانسیو (موبایل و تبلت)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-avatar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* منوی موبایل */
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        bottom: 0;
        inset-inline-start: 0;
        width: 80%;
        max-width: 320px;
        background: var(--bg-secondary);
        border-inline-end: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 8px;
        transform: translateX(-100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 1000;
    }

    html[dir="rtl"] .nav-menu {
        inset-inline-start: auto;
        inset-inline-end: 0;
        transform: translateX(100%);
        border-inline-end: none;
        border-inline-start: 1px solid var(--border);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(0, 212, 255, 0.1);
    }

    .lang-switch {
        margin-inline-start: 0;
        margin-top: 12px;
        align-self: flex-start;
    }

    .hero {
        min-height: 50vh;
        padding: 50px 20px 40px;
    }

    .section {
        padding: 50px 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        justify-content: center;
    }

    .container {
        padding-inline: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .category-card, .project-body { padding: 20px; }
    .footer-bottom { font-size: 0.8rem; }
}

/* دسترسی‌پذیری — احترام به reduces-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* اسکرول‌بار سفارشی */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* انتخاب متن */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}
