/* -----------------------------------------------------------------
   زر رزومه - استایل اصلی سایت
   دو تم: روشن (light) / تاریک (dark)
----------------------------------------------------------------- */

:root {
    --font-main: 'Vazirmatn', Tahoma, sans-serif;
    --radius: 16px;
    --transition: all .3s ease;
}

/* ---------- تم روشن ---------- */
body.theme-light {
    --bg-body: #f5f6fa;
    --bg-section: #ffffff;
    --bg-card: #ffffff;
    --text-main: #262a34;
    --text-muted: #6c7280;
    --accent: #7b61ff;
    --accent-2: #00c2cb;
    --border-color: #eaeaf0;
    --shadow: 0 10px 30px rgba(30,30,60,.06);
    --header-bg: rgba(255,255,255,.85);
    --menu-bg: #ffffff;
}

/* ---------- تم تاریک ---------- */
body.theme-dark {
    --bg-body: #10131c;
    --bg-section: #171b28;
    --bg-card: #1b2030;
    --text-main: #eef1fb;
    --text-muted: #a3a9c2;
    --accent: #8b7bff;
    --accent-2: #26d0ce;
    --border-color: #2a3044;
    --shadow: 0 10px 30px rgba(0,0,0,.4);
    --header-bg: rgba(16,19,28,.85);
    --menu-bg: #171b28;
}

* { box-sizing: border-box; }
.text-accent { color: var(--accent) !important; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-main);
    transition: background .4s ease, color .4s ease;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

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

img { max-width: 100%; }

/* ---------- هماهنگ‌سازی رنگ‌های بوت‌استرپ با تم روشن/تاریک سایت ----------
   بوت‌استرپ برای کلاس‌هایی مثل text-muted و btn-close از متغیرهای ثابت
   خودش (--bs-secondary-color و ...) استفاده می‌کند که به تم سایت (body.theme-dark)
   واکنش نشان نمی‌دهند؛ بنابراین این متغیرها را در سطح body بازتعریف می‌کنیم. */
body {
    --bs-secondary-color: var(--text-muted);
    --bs-body-color: var(--text-main);
    --bs-border-color: var(--border-color);
}
.text-muted { color: var(--text-muted) !important; }
.btn-close {
    filter: none;
    opacity: .85;
}
body.theme-dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .85;
}
body.theme-dark .btn-close:hover { opacity: 1; }

/* ---------- تضمین رنگ صحیح متن‌ها در حالت تاریک (فرم تماس، بخش تماس، فوتر) ----------
   این قوانین با اولویت بالا تضمین می‌کنند که رنگ‌ها همیشه با تم تاریک هماهنگ باشند،
   حتی اگر مرورگر یا افزونه‌ای رنگ پیش‌فرض دیگری اعمال کند. */
body.theme-dark #contactForm .zr-form__field,
body.theme-dark #contactForm input,
body.theme-dark #contactForm textarea {
    color: var(--text-main) !important;
    -webkit-text-fill-color: var(--text-main);
    caret-color: var(--text-main);
}
body.theme-dark #contactForm .zr-form__label,
body.theme-dark #contactForm ::placeholder {
    color: var(--text-muted) !important;
}
body.theme-dark #contactForm input:-webkit-autofill,
body.theme-dark #contactForm textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--text-main) !important;
    box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-in-out 0s;
}
body.theme-dark .text-muted,
body.theme-dark .text-muted.small,
body.theme-dark .contact-info-item .text-muted,
body.theme-dark .contact-info-item .text-muted.small,
body.theme-dark footer .text-muted,
body.theme-dark footer p.text-muted,
body.theme-dark footer p.text-muted.mb-1 {
    color: var(--text-muted) !important;
}
body.theme-dark .contact-info-item .fw-bold,
body.theme-dark footer h4,
body.theme-dark footer h5 {
    color: var(--text-main) !important;
}
body.theme-dark footer p.text-muted i,
body.theme-dark footer p.text-muted .fa-solid,
body.theme-dark .contact-info-item .zr-icon i {
    color: var(--accent) !important;
}

.section { padding: 90px 0; }
.inner-page-section { padding-top: 140px; }
.section-title-wrap { text-align: center; margin-bottom: 55px; }
.section-title-wrap .tag {
    display: inline-block;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-size: 13px;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 14px;
}
.section-title-wrap h2 { font-weight: 800; font-size: 32px; margin-bottom: 10px; }
.section-title-wrap p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ---------------- دکمه‌های اصلی سایت ---------------- */
.btn-accent, .btn-outline-accent {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    border: none;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: transform .2s ease, box-shadow .2s ease, background .3s ease, color .2s ease;
}
.btn-accent {
    color: #fff;
    background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -4px color-mix(in srgb, var(--accent) 65%, transparent); color: #fff; }
.btn-accent:active { transform: translateY(0); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--accent) 55%, transparent); }

.btn-outline-accent {
    color: var(--accent);
    background: var(--bg-card);
    box-shadow: inset 0 0 0 2px var(--accent);
}
.btn-outline-accent:hover {
    color: #fff;
    background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 22px -4px color-mix(in srgb, var(--accent) 65%, transparent);
    transform: translateY(-3px);
}
.btn-outline-accent:active { transform: translateY(0); }

.btn-sm.btn-outline-accent, .btn-sm.btn-accent { padding: 8px 20px; font-size: 13.5px; }


/* ---------------- هدر ---------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.site-header .navbar-brand {
    font-weight: 800;
    font-size: 22px;
    color: var(--text-main);
}
.site-header .navbar-brand span { color: var(--accent); }

/* ---------------- نوار ناوبری دسکتاپ (تمام عرض، بدون پس‌زمینه کادردار) ---------------- */
.zr-navbar-desktop-wrap {
    width: 100%;
    padding: 0 32px;
}
.zr-navbar-pill {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 6px 0;
    direction: rtl;
}
.zr-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    color: var(--text-main) !important;
    white-space: nowrap;
    flex-shrink: 0;
    justify-self: start;
}
.zr-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 9px;
    background: #3ddc84;
    color: #06170d;
    font-family: monospace;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    direction: ltr;
}
/* ---------------- لوگو + تصویر تایپوگرافی هدر ---------------- */
.zr-brand-logo-img { height: 34px; width: auto; flex-shrink: 0; object-fit: contain; }
.zr-brand-typo-img { height: 22px; width: auto; flex-shrink: 0; object-fit: contain; }
.zr-brand-logo-img--mobile { height: 32px; }
.zr-brand-typo-img--mobile { height: 20px; }
.zr-navbar-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}
.zr-navbar-links a {
    color: var(--text-main);
    opacity: .82;
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .25s ease, opacity .25s ease;
}
.zr-navbar-links a:hover,
.zr-navbar-links a.active { color: var(--accent); opacity: 1; }
.zr-navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 14px;
    flex-shrink: 0;
}
.zr-cta-btn {
    background: #3ddc84;
    color: #06170d !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform .2s ease, filter .2s ease;
}
.zr-cta-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---------------- سوئیچ تم روشن/تاریک با انیمیشن ---------------- */
/* ---------------- سوئیچ تم روشن/تاریک ---------------- */
.zr-theme-switch {
    display: block;
    --width-of-switch: 3.4em;
    --height-of-switch: 1.9em;
    --size-of-icon: 1.3em;
    --slider-offset: 0.28em;
    position: relative;
    width: var(--width-of-switch);
    height: var(--height-of-switch);
    cursor: pointer;
    flex-shrink: 0;
}
.zr-theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.zr-theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #f4f4f5;
    border: 1px solid var(--border-color);
    transition: .4s;
    border-radius: 30px;
}
.zr-theme-slider:before {
    position: absolute;
    content: "";
    height: var(--size-of-icon, 1.3em);
    width: var(--size-of-icon, 1.3em);
    border-radius: 20px;
    left: var(--slider-offset, .28em);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(40deg, #ff0080, #ff8c00 70%);
    transition: .4s;
}
.zr-theme-switch input:checked + .zr-theme-slider {
    background-color: #303136;
    border-color: #303136;
}
.zr-theme-switch input:checked + .zr-theme-slider:before {
    left: calc(100% - (var(--size-of-icon, 1.3em) + var(--slider-offset, .28em)));
    background: #303136;
    box-shadow: inset -3px -2px 5px -2px #8983f7, inset -10px -4px 0 0 #a3dafb;
}

/* --- نسخه‌ی دایره‌ای کوچک سوئیچ تم برای نوار پیل دسکتاپ (مطابق تصویر مرجع) --- */
.zr-theme-switch--pill {
    width: 34px;
    height: 34px;
}
.zr-theme-slider--pill {
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    opacity: .85;
    font-size: 14px;
}
.zr-theme-slider--pill:before { content: none; }
.zr-theme-switch--pill input:checked + .zr-theme-slider--pill {
    background: transparent;
    border-color: var(--border-color);
    color: #ffd76a;
    opacity: 1;
}

/* ---------------- دکمه همبرگری منو (Uiverse: soft-octopus-29) ---------------- */
.menu-checkbox { display: none; }
.toggle {
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition-duration: .5s;
}
.toggle .bars {
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    border-radius: 4px;
}
.toggle #bar2 { transition-duration: .8s; }
.toggle #bar1, .toggle #bar3 { width: 70%; }

.menu-checkbox:checked + .toggle .bars {
    position: absolute;
    transition-duration: .5s;
}
.menu-checkbox:checked + .toggle #bar2 {
    transform: scaleX(0);
    transition-duration: .5s;
}
.menu-checkbox:checked + .toggle #bar1 {
    width: 100%;
    transform: rotate(45deg);
    transition-duration: .5s;
}
.menu-checkbox:checked + .toggle #bar3 {
    width: 100%;
    transform: rotate(-45deg);
    transition-duration: .5s;
}
.menu-checkbox:checked + .toggle {
    transition-duration: .5s;
    transform: rotate(180deg);
}

/* ---------------- منوی کشویی از کنار (Offcanvas) ---------------- */
.side-menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.side-menu-overlay.show { opacity: 1; visibility: visible; }

.side-menu {
    position: fixed;
    top: 0; right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--menu-bg);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.65,0,.35,1), background .4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,.2);
}
.side-menu.show { transform: translateX(0); }

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 22px;
    border-bottom: 1px solid var(--border-color);
}
.side-menu-brand { display: flex; align-items: center; gap: 12px; }
.side-menu-brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.side-menu-brand h6 { margin: 0; font-weight: 700; color: var(--text-main); }
.side-menu-brand small { color: var(--text-muted); }
#sideMenuClose {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
}
#sideMenuClose:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.side-menu-nav { list-style: none; margin: 0; padding: 18px 12px; flex-grow: 1; overflow-y: auto; }
.side-menu-nav li { margin-bottom: 4px; }
.side-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}
.side-menu-nav a i { width: 20px; text-align: center; color: var(--text-muted); }
.side-menu-nav a:hover, .side-menu-nav a.active {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}
.side-menu-nav a:hover i, .side-menu-nav a.active i { color: var(--accent); }

.side-menu-social {
    display: flex;
    gap: 10px;
    padding: 20px 22px;
    border-top: 1px solid var(--border-color);
}
.side-menu-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.side-menu-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

body.side-menu-open { overflow: hidden; }

/* ---------------- هیرو / صفحه اصلی ---------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: var(--bg-body);
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: .15;
    top: -100px; right: -100px;
    border-radius: 50%;
}
.hero-avatar {
    width: 320px; height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--bg-card);
    box-shadow: var(--shadow);
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 2;
}
.hero-avatar-wrap { position: relative; display: inline-block; }
.hero-title { font-size: 46px; font-weight: 800; margin-bottom: 10px; }
.hero-title .highlight { color: var(--accent); }

/* ---------------- افکت تایپ‌شونده هیرو ---------------- */
.zr-typed-text { color: var(--accent); font-weight: 700; }
.zr-typed-cursor {
    display: inline-block;
    margin-right: 2px;
    color: var(--accent);
    animation: zrCursorBlink 1s step-end infinite;
    font-weight: 400;
}
@keyframes zrCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---------------- اشکال هندسی/ذرات شناور پس‌زمینه هیرو ---------------- */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.hero-particles .zr-shape {
    position: absolute;
    opacity: .35;
    animation: zrFloatShape linear infinite;
    will-change: transform;
}
.hero-particles .zr-shape.circle {
    border-radius: 50%;
    border: 2px solid var(--accent);
}
.hero-particles .zr-shape.circle.filled {
    background: var(--accent);
    border: none;
    opacity: .18;
}
.hero-particles .zr-shape.square {
    border: 2px solid var(--accent-2);
    border-radius: 6px;
}
.hero-particles .zr-shape.triangle {
    width: 0; height: 0;
    background: transparent !important;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 34px solid var(--accent-2);
    opacity: .3;
}
.hero-particles .zr-shape.dot {
    border-radius: 50%;
    background: var(--accent);
    opacity: .5;
}
@keyframes zrFloatShape {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(18px, -26px) rotate(90deg); }
    50%  { transform: translate(-10px, 14px) rotate(180deg); }
    75%  { transform: translate(-24px, -12px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
.hero-section .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
    .hero-particles .zr-shape { animation: none; }
    .zr-typed-cursor { animation: none; }
}
.hero-subtitle { font-size: 20px; color: var(--text-muted); margin-bottom: 20px; }
.hero-bio { color: var(--text-muted); margin-bottom: 30px; line-height: 2; }
/* ---------------- کارت‌های آمار هیرو (سبک Hexora) ---------------- */
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 32px; }
.hero-stat-item { display: flex; flex-direction: column; }
.hero-stat-number { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.3; }
.hero-stat-label { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.hero-stat-item:not(:last-child) { position: relative; padding-left: 34px; border-left: 1px solid var(--border-color); }

/* ---------------- تصویر هیرو با کارت‌های شناور (سبک Hexora) ---------------- */
.hero-avatar-wrap--v2 { position: relative; display: inline-block; }
.hero-avatar--v2 {
    width: 340px; height: 340px;
    border-radius: 32px;
    object-fit: cover;
}
.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
    z-index: 3;
    animation: zrFloatCard 4s ease-in-out infinite;
    white-space: nowrap;
}
.hero-float-card--top { top: 8%; right: -8%; animation-delay: 0s; }
.hero-float-card--bottom { bottom: 8%; left: -8%; animation-delay: 1.4s; }
.hero-float-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.hero-float-title { font-size: 13px; font-weight: 700; color: var(--text-main); }
.hero-float-sub { font-size: 11px; color: var(--text-muted); }
@keyframes zrFloatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-float-card { animation: none; }
}
@media (max-width: 991px) {
    .hero-float-card--top { top: -4%; right: 2%; }
    .hero-float-card--bottom { bottom: -4%; left: 2%; }
    .hero-avatar--v2 { width: 260px; height: 260px; }
    .hero-stat-item:not(:last-child) { padding-left: 20px; }
    .hero-stats { justify-content: center; }
}
@media (max-width: 575px) {
    .hero-float-card { padding: 8px 12px; gap: 8px; }
    .hero-float-icon { width: 32px; height: 32px; font-size: 13px; }
    .hero-float-title { font-size: 11px; }
    .hero-float-sub { font-size: 10px; }
}

.hero-social { display: flex; gap: 12px; margin-top: 25px; }
.hero-social a {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    color: var(--text-main);
}
.hero-social a:hover { background: var(--accent); color: #fff; }

/* ---------------- آیکون‌های اسکوییرکل شبکه‌های اجتماعی ---------------- */
.zr-squircle-socials { display: flex; gap: 10px; flex-wrap: wrap; }
a.zr-squircle-icon, .zr-squircle-socials a.zr-squircle-icon {
    width: 48px; height: 48px;
    border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 19px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.15);
    cursor: pointer;
    transform: translateY(0) scale(1);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, filter .3s ease;
}
a.zr-squircle-icon:hover, .zr-squircle-socials a.zr-squircle-icon:hover {
    transform: scale(1.12) translateY(-6px);
    box-shadow: 0 12px 26px rgba(0,0,0,.28);
    filter: brightness(1.08);
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.side-menu-social.zr-squircle-socials { justify-content: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

/* ---------------- درباره من ---------------- */
.about-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
}
.info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border-color); }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-muted); }
.info-row .value { font-weight: 600; }

/* ---------------- مهارت‌ها ---------------- */
.skill-item { margin-bottom: 24px; }
.skill-item .skill-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.skill-bar { height: 10px; border-radius: 20px; background: var(--border-color); overflow: hidden; }
.skill-bar-fill {
    height: 100%; border-radius: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    width: 0;
    transition: width 1.4s ease;
}

/* ---------------- کارت‌های عمومی ---------------- */
.zr-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.zr-card:hover { transform: translateY(-6px); }
.zr-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* ---------------- تایم‌لاین (تحصیلات و سوابق) ---------------- */
/* متغیرهای هندسی تایم‌لاین: با تغییر --tl-pad (فاصله محتوا از راست)، موقعیت خط و دایره‌ها به‌صورت خودکار
   با یکدیگر هماهنگ باقی می‌مانند (مرکز خط و مرکز دایره همیشه دقیقا روی هم قرار می‌گیرند). */
.zr-timeline {
    --tl-pad: 40px;      /* فاصله محتوای آیتم‌ها از لبه راست */
    --tl-track: 20px;    /* فاصله مرکز خط/دایره‌ها از لبه راست */
    --tl-line-w: 2px;
    --tl-dot-size: 18px;
    position: relative;
    padding-right: var(--tl-pad);
}
.zr-timeline::before {
    content: '';
    position: absolute;
    right: calc(var(--tl-track) - (var(--tl-line-w) / 2));
    top: 0; bottom: 0;
    width: var(--tl-line-w);
    background: var(--border-color);
}
.zr-timeline-item { position: relative; margin-bottom: 35px; }
.zr-timeline-item:last-child { margin-bottom: 0; }
.zr-timeline-item::before {
    content: '';
    position: absolute;
    right: calc(var(--tl-track) - var(--tl-pad) - (var(--tl-dot-size) / 2));
    top: 4px;
    width: var(--tl-dot-size); height: var(--tl-dot-size);
    border-radius: 50%;
    background: var(--bg-body);
    border: 3px solid var(--accent);
    box-sizing: border-box;
}
.zr-timeline-item .period { color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 6px; display: inline-block; background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 12px; border-radius: 20px;}
.zr-timeline-item h5 { font-weight: 700; margin-bottom: 4px; }
.zr-timeline-item .sub { color: var(--text-muted); margin-bottom: 8px; }

/* ---------------- گالری ---------------- */
.gallery-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.gallery-filter button {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 8px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-filter button.active,
.gallery-filter button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); margin-bottom: 25px; }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 60%);
    display: flex; align-items: flex-end; padding: 20px;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h5 { color: #fff; margin: 0; }
.gallery-overlay p { color: #ddd; margin: 0; font-size: 13px; }

/* ---------------- کارت فلیپ نمونه‌کار ---------------- */
.zr-flip-card {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transition: all .6s cubic-bezier(.175,.885,.32,1.275);
}
.zr-flip-card:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.zr-flip-card__img { width: 100%; height: 100%; object-fit: cover; transition: all .6s cubic-bezier(.175,.885,.32,1.275); }
.zr-flip-card:hover .zr-flip-card__img { opacity: 0; }
.zr-flip-card__icon {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    background: rgba(0,0,0,.25);
    transition: all .6s cubic-bezier(.175,.885,.32,1.275);
}
.zr-flip-card:hover .zr-flip-card__icon { transform: scale(0); }
.zr-flip-card__content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: 22px;
    box-sizing: border-box;
    background: var(--bg-card);
    transform: rotateX(-90deg);
    transform-origin: bottom;
    transition: all .6s cubic-bezier(.175,.885,.32,1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.zr-flip-card:hover .zr-flip-card__content { transform: rotateX(0deg); }
.zr-flip-card__title { margin: 0 0 10px; font-size: 20px; color: var(--text-main); font-weight: 700; }
.zr-flip-card__desc { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---------------- اسلایدر نمونه‌کارها ---------------- */
.zr-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-card);
}
.zr-slider-track {
    display: flex;
    transition: transform .5s cubic-bezier(.65,0,.35,1);
}
.zr-slide {
    min-width: 100%;
    position: relative;
    height: 420px;
}
.zr-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zr-slide-caption {
    position: absolute;
    inset-inline-start: 0; bottom: 0; inset-inline-end: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
    padding: 40px 35px 25px;
    color: #fff;
}
.zr-slide-caption h4 { font-weight: 800; margin-bottom: 6px; font-size: 22px; }
.zr-slide-caption p { color: #e6e6e6; margin-bottom: 12px; font-size: 14.5px; }
@media (max-width: 767px) {
    .zr-slide { height: 260px; }
    .zr-slide-caption { padding: 20px 18px 16px; }
    .zr-slide-caption h4 { font-size: 17px; }
}
.zr-slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.9); color: #222;
    border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; box-shadow: 0 4px 15px rgba(0,0,0,.2);
    transition: var(--transition);
}
.zr-slider-nav:hover { background: var(--accent); color: #fff; }
.zr-slider-nav.prev { right: 18px; }
.zr-slider-nav.next { left: 18px; }
.zr-slider-dots {
    position: absolute; bottom: 14px; right: 50%; transform: translateX(50%);
    display: flex; gap: 8px; z-index: 5;
}
.zr-slider-dots span {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255,255,255,.55);
    cursor: pointer; transition: var(--transition);
}
.zr-slider-dots span.active { background: #fff; width: 22px; border-radius: 6px; }

/* ---------------- صفحه 404 ---------------- */
.zr-404-section { min-height: 70vh; display: flex; align-items: center; }
.zr-404-wrap { max-width: 520px; margin: 0 auto; text-align: center; }
.my-custom-face-container { display: flex; justify-content: center; align-items: center; height: 260px; color: var(--accent); }
.my-custom-face-container .face { width: 170px; }
.my-custom-face-container .face__eyes,
.my-custom-face-container .face__eye-lid,
.my-custom-face-container .face__mouth-left,
.my-custom-face-container .face__mouth-right,
.my-custom-face-container .face__nose,
.my-custom-face-container .face__pupil {
    animation: zr404-eyes 1s .3s forwards;
}
.my-custom-face-container .face__eye-lid,
.my-custom-face-container .face__pupil {
    animation-duration: 4s;
    animation-delay: 1.3s;
    animation-iteration-count: infinite;
}
.my-custom-face-container .face__eye-lid { animation-name: zr404-eye-lid; }
.my-custom-face-container .face__mouth-left { animation-name: zr404-mouth-left; }
.my-custom-face-container .face__mouth-right { animation-name: zr404-mouth-right; }
.my-custom-face-container .face__nose { animation-name: zr404-nose; }
.my-custom-face-container .face__pupil { animation-name: zr404-pupil; }

@keyframes zr404-eye-lid {
    0%, 40%, 45%, 100% { transform: translateY(0); }
    42.5% { transform: translateY(17.5px); }
}
@keyframes zr404-eyes {
    from { transform: translateY(112.5px); }
    to { transform: translateY(15px); }
}
@keyframes zr404-pupil {
    0%, 37.5%, 40%, 45%, 87.5%, 100% { stroke-dashoffset: 0; transform: translate(0, 0); }
    12.5%, 25%, 62.5%, 75% { transform: translate(-35px, 0); }
    42.5% { stroke-dashoffset: 35; transform: translate(0, 17.5px); }
}
@keyframes zr404-mouth-left {
    from, 50% { stroke-dashoffset: -102; }
    to { stroke-dashoffset: 0; }
}
@keyframes zr404-mouth-right {
    from, 50% { stroke-dashoffset: 102; }
    to { stroke-dashoffset: 0; }
}
@keyframes zr404-nose {
    from { transform: translate(0, 0); }
    to { transform: translate(0, 22.5px); }
}
.zr-404-code {
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-top: 10px;
}
.zr-404-title { font-weight: 800; margin-top: 10px; }
.zr-404-text { color: var(--text-muted, #8a8fa3); margin-bottom: 25px; }


.blog-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.blog-card img { width: 100%; height: 210px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 14px; }
.blog-card h5 { font-weight: 700; margin-bottom: 10px; }
.blog-card p { color: var(--text-muted); font-size: 14px; }

/* ---------------- صفحه داخلی مطلب وبلاگ ---------------- */
.post-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.post-breadcrumb a { color: var(--text-muted); }
.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb i { font-size: 11px; }
.post-detail-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.post-cover-img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.post-detail-body { padding: 35px; }
@media (max-width: 767px) { .post-detail-body { padding: 22px; } }
.post-title { font-size: 30px; line-height: 1.5; }
.post-content { line-height: 2.1; color: var(--text-main); font-size: 16px; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 15px 0; }
.post-content p { margin-bottom: 18px; }
.post-content h2, .post-content h3, .post-content h4 { font-weight: 700; margin: 28px 0 14px; }
.post-content ul, .post-content ol { padding-inline-start: 24px; margin-bottom: 18px; }
.post-content blockquote {
    border-inline-start: 4px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    padding: 14px 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: var(--text-muted);
}
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content pre { background: #1b1f2b; color: #eee; padding: 16px; border-radius: 10px; overflow-x: auto; }
.related-posts h4 { border-inline-start: 4px solid var(--accent); padding-inline-start: 12px; }

/* ---------------- بلوک‌های سفارشی مارک‌داون (جعبه رنگی، نقل‌قول، سوالات متداول) ---------------- */
.zr-md-content .zr-md-box {
    border-radius: 12px;
    padding: 18px 22px;
    margin: 22px 0;
    border-inline-start: 4px solid transparent;
}
.zr-md-content .zr-md-box p:last-child { margin-bottom: 0; }
.zr-md-content .zr-md-box-title { font-weight: 800; margin-bottom: 8px; font-size: 15px; }
.zr-md-content .zr-md-box-blue { background: #e8f1ff; border-color: #2563eb; color: #1e3a8a; }
.zr-md-content .zr-md-box-green { background: #e7f8ef; border-color: #16a34a; color: #14532d; }
.zr-md-content .zr-md-box-red { background: #fdecec; border-color: #dc2626; color: #7f1d1d; }
.zr-md-content .zr-md-box-yellow { background: #fef8e4; border-color: #d97706; color: #78350f; }
.zr-md-content .zr-md-box-purple { background: #f2eafd; border-color: #7c3aed; color: #4c1d95; }
.zr-md-content .zr-md-box-gray { background: #f1f2f4; border-color: #6b7280; color: #374151; }
[data-theme="dark"] .zr-md-content .zr-md-box-blue,
.dark-mode .zr-md-content .zr-md-box-blue { background: color-mix(in srgb, #2563eb 18%, transparent); color: #cfe0ff; }
[data-theme="dark"] .zr-md-content .zr-md-box-green,
.dark-mode .zr-md-content .zr-md-box-green { background: color-mix(in srgb, #16a34a 18%, transparent); color: #c9f3d8; }
[data-theme="dark"] .zr-md-content .zr-md-box-red,
.dark-mode .zr-md-content .zr-md-box-red { background: color-mix(in srgb, #dc2626 18%, transparent); color: #fbd2d2; }
[data-theme="dark"] .zr-md-content .zr-md-box-yellow,
.dark-mode .zr-md-content .zr-md-box-yellow { background: color-mix(in srgb, #d97706 18%, transparent); color: #fde9c2; }
[data-theme="dark"] .zr-md-content .zr-md-box-purple,
.dark-mode .zr-md-content .zr-md-box-purple { background: color-mix(in srgb, #7c3aed 18%, transparent); color: #e2d4fb; }
[data-theme="dark"] .zr-md-content .zr-md-box-gray,
.dark-mode .zr-md-content .zr-md-box-gray { background: color-mix(in srgb, #6b7280 18%, transparent); color: #e5e7eb; }

.zr-md-content .zr-md-quote {
    background: var(--bg-card, #fff);
    border-inline-start: 5px solid var(--accent);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
    box-shadow: var(--shadow, 0 4px 14px rgba(0,0,0,.06));
    font-style: normal;
}
.zr-md-content .zr-md-quote p:last-child { margin-bottom: 0; }
.zr-md-content .zr-md-quote-footer { margin-top: 12px; font-size: 14px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.zr-md-content .zr-md-quote-author { font-weight: 700; font-style: normal; }
.zr-md-content .zr-md-quote-author::before { content: '— '; }

.zr-md-content .zr-md-faq { margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.zr-md-content .zr-md-faq-item {
    background: var(--bg-card, #fff);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    padding: 14px 18px;
}
.zr-md-content .zr-md-faq-q { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.zr-md-content .zr-md-faq-q::-webkit-details-marker { display: none; }
.zr-md-content .zr-md-faq-q::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 13px; transition: transform .2s; color: var(--accent); }
.zr-md-content .zr-md-faq-item[open] .zr-md-faq-q::after { transform: rotate(180deg); }
.zr-md-content .zr-md-faq-a { margin-top: 12px; color: var(--text-muted); }
.zr-md-content .zr-md-faq-a p:last-child { margin-bottom: 0; }

/* ---------------- نظرات مشتریان ---------------- */
.testimonial-card { background: var(--bg-card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); text-align: center; }
.testimonial-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; }
.testimonial-card .stars { color: #f7b733; margin-bottom: 12px; }

/* ---------------- تماس با ما ---------------- */
.contact-form .form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
}
.contact-form .form-control:focus { border-color: var(--accent); box-shadow: none; background: var(--bg-card); color: var(--text-main); }
.contact-info-item { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.contact-info-item .zr-icon { margin-bottom: 0; flex-shrink: 0; }

/* ---------------- اینپوت‌های فلوتینگ لیبل ---------------- */
.zr-form__group { position: relative; padding-top: 18px; margin-bottom: 22px; width: 100%; }
.zr-form__field {
    font-family: inherit;
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-color);
    outline: 0;
    font-size: 16px;
    color: var(--text-main);
    padding: 8px 2px;
    background: transparent;
    transition: border-color .25s ease;
    resize: vertical;
}
.zr-form__field::placeholder { color: transparent; }
.zr-form__field:placeholder-shown ~ .zr-form__label {
    font-size: 16px;
    cursor: text;
    top: 28px;
    color: var(--text-muted);
    font-weight: 400;
}
.zr-form__label {
    position: absolute;
    top: 0; right: 2px;
    display: block;
    transition: .25s ease;
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
}
.zr-form__field:focus {
    border-width: 2px;
    border-image: linear-gradient(to left, var(--accent), var(--accent-2));
    border-image-slice: 1;
}
.zr-form__field:focus ~ .zr-form__label {
    top: 0;
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}
.zr-form__field--textarea { min-height: 120px; }

/* ---------------- فوتر ---------------- */
.site-footer { background: var(--bg-section); border-top: 1px solid var(--border-color); padding: 50px 0 20px; }
.site-footer .copy { text-align: center; padding-top: 25px; margin-top: 25px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 14px; }

/* دکمه بازگشت به بالا */
#backToTop {
    position: fixed; bottom: 30px; left: 30px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    z-index: 999;
    border: none;
}

/* پاپ‌آپ (modal) عمومی */
.zr-modal .modal-content { background: var(--bg-card); color: var(--text-main); border-radius: var(--radius); border: none; }
.zr-modal .modal-header { border-bottom: 1px solid var(--border-color); }
.zr-modal .modal-footer { border-top: 1px solid var(--border-color); }

/* واکنش‌گرایی */
@media (max-width: 991px) {
    .hero-section { text-align: center; padding-top: 130px; }
    .hero-avatar { width: 220px; height: 220px; margin-bottom: 30px; }
    .hero-title { font-size: 32px; }
    .hero-social, .hero-actions { justify-content: center; }
    .zr-timeline { --tl-pad: 30px; --tl-track: 15px; --tl-dot-size: 16px; }
}

/* لودر صفحه اول */
#pageLoader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-body);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .4s ease;
}
.loader-spin {
    width: 50px; height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ---------------- اسکلت لودینگ سایت ---------------- */
.zr-loader-skeleton {
    position: relative;
    display: flex;
    width: 280px;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: zr-skeleton-pulse 1.6s ease-in-out infinite;
}
.zr-loader-avatar {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--border-color), var(--bg-section), var(--border-color));
    background-size: 200% 100%;
    animation: zr-skeleton-shine 1.6s ease-in-out infinite;
}
.zr-loader-lines { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.zr-loader-line {
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--border-color), var(--bg-section), var(--border-color));
    background-size: 200% 100%;
    animation: zr-skeleton-shine 1.6s ease-in-out infinite;
}
.zr-loader-line.w60 { width: 60%; }
.zr-loader-line.w90 { width: 90%; }
.zr-loader-dot {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    animation: zr-skeleton-shine 1.6s ease-in-out infinite;
}
@keyframes zr-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}
@keyframes zr-skeleton-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* نوار پیشرفت بارگذاری AJAX (بالای صفحه) */
#ajaxProgress {
    position: fixed; top: 0; right: 0; left: 0;
    height: 3px;
    z-index: 10000;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    width: 0%;
    opacity: 0;
    transition: width .3s ease, opacity .3s ease;
}
#ajaxProgress.loading { opacity: 1; }

/* افکت محو شدن هنگام تعویض محتوای صفحه */
#ajaxContent { transition: opacity .25s ease; }
#ajaxContent.fading { opacity: 0; }


