/* ============================================================
   Resume_v13 — گلس‌مورفیسم روی گرادیانت
   Glassmorphism over a vibrant mesh-gradient background.
   Frosted translucent glass cards floating on blurred
   indigo / fuchsia / cyan color blobs. iOS-like, light.
   All classes prefixed with resume13- to avoid collisions.
   ============================================================ */

.resume13-root {
    --r13-radius: 22px;
    --r13-glass: rgba(255, 255, 255, 0.55);
    --r13-glass-strong: rgba(255, 255, 255, 0.72);
    --r13-border: rgba(255, 255, 255, 0.65);
    --r13-ink: #1e2235;
    --r13-muted: #565b75;
    --r13-faint: #7a7f96;
    --r13-indigo: #6366f1;
    --r13-fuchsia: #d946ef;
    --r13-cyan: #06b6d4;
    --r13-shadow: 0 18px 50px rgba(49, 46, 129, 0.16);

    position: relative;
    overflow: hidden;
    font-family: Vazir, IRANYekan, Tahoma, sans-serif;
    color: var(--r13-ink);
    direction: rtl;
    background: #eef1fb;
    padding: 0;
    isolation: isolate;
}

/* ===== Mesh gradient background = colorful blurred blobs ===== */
.resume13-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(38% 42% at 18% 20%, rgba(99, 102, 241, 0.55) 0%, rgba(99, 102, 241, 0) 70%),
        radial-gradient(42% 46% at 85% 12%, rgba(217, 70, 239, 0.50) 0%, rgba(217, 70, 239, 0) 70%),
        radial-gradient(46% 50% at 78% 82%, rgba(6, 182, 212, 0.48) 0%, rgba(6, 182, 212, 0) 72%),
        radial-gradient(40% 44% at 12% 88%, rgba(129, 140, 248, 0.42) 0%, rgba(129, 140, 248, 0) 72%),
        linear-gradient(135deg, #eef2ff 0%, #fdf4ff 50%, #ecfeff 100%);
}

.resume13-blob {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.7;
    pointer-events: none;
}
.resume13-blob.b1 { width: 360px; height: 360px; top: -90px; right: -60px; background: radial-gradient(circle, #818cf8, transparent 65%); }
.resume13-blob.b2 { width: 420px; height: 420px; bottom: -120px; left: -90px; background: radial-gradient(circle, #e879f9, transparent 65%); }
.resume13-blob.b3 { width: 300px; height: 300px; top: 45%; left: 60%; background: radial-gradient(circle, #22d3ee, transparent 65%); }

/* ===== Layout ===== */
.resume13-wrap {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 26px 80px;
}

/* shared glass card */
.resume13-glass {
    background: var(--r13-glass);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--r13-border);
    border-radius: var(--r13-radius);
    box-shadow: var(--r13-shadow);
}

/* ===== Identity card (top, full width) ===== */
.resume13-id {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 30px 32px;
    margin-bottom: 26px;
}
.resume13-avatar {
    flex: 0 0 auto;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--r13-indigo), var(--r13-fuchsia), var(--r13-cyan));
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}
.resume13-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    display: block;
}
.resume13-id-info { flex: 1 1 auto; min-width: 0; }
.resume13-name {
    margin: 0 0 6px;
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--r13-ink);
}
.resume13-role {
    font-size: 1.08rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--r13-indigo), var(--r13-fuchsia));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.resume13-years {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 14px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--r13-indigo);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 50px;
}
.resume13-id-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
.resume13-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: .92rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--r13-indigo), var(--r13-fuchsia));
    box-shadow: 0 10px 26px rgba(217, 70, 239, 0.35);
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
}
.resume13-dl:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(217, 70, 239, 0.45); color: #fff; }

/* ===== contact chips row ===== */
.resume13-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}
.resume13-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--r13-muted);
    text-decoration: none;
    background: var(--r13-glass-strong);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--r13-border);
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(49, 46, 129, 0.10);
    transition: transform .15s ease, color .15s ease;
}
.resume13-chip:hover { transform: translateY(-2px); color: var(--r13-indigo); }
.resume13-chip i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: .78rem;
    background: linear-gradient(135deg, var(--r13-indigo), var(--r13-cyan));
}

/* ===== 2-col relaxed grid ===== */
.resume13-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 22px;
    align-items: start;
}
.resume13-col { display: flex; flex-direction: column; gap: 22px; }

.resume13-card { padding: 26px 28px; }
.resume13-card.span { grid-column: 1 / -1; }

.resume13-stitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--r13-ink);
}
.resume13-stitle .ic {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-size: .92rem;
    background: linear-gradient(135deg, var(--r13-indigo), var(--r13-fuchsia));
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* summary */
.resume13-summary {
    font-size: .96rem;
    line-height: 2;
    color: var(--r13-muted);
}

/* ===== timeline (experience / education) ===== */
.resume13-tl { position: relative; padding-right: 20px; }
.resume13-tl::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--r13-indigo), var(--r13-fuchsia), var(--r13-cyan));
    opacity: .5;
    border-radius: 2px;
}
.resume13-tl-item { position: relative; padding-bottom: 22px; }
.resume13-tl-item:last-child { padding-bottom: 0; }
.resume13-tl-item::before {
    content: "";
    position: absolute;
    top: 5px;
    right: -19px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--r13-fuchsia);
    box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.15);
}
.resume13-tl-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.resume13-tl-role { font-size: 1.02rem; font-weight: 800; color: var(--r13-ink); }
.resume13-tl-date {
    font-size: .76rem;
    font-weight: 700;
    color: var(--r13-indigo);
    background: rgba(99, 102, 241, 0.12);
    padding: 3px 11px;
    border-radius: 50px;
}
.resume13-tl-org { margin-top: 3px; font-size: .9rem; font-weight: 700; color: var(--r13-fuchsia); }
.resume13-tl-loc {
    margin-top: 4px;
    font-size: .8rem;
    color: var(--r13-faint);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.resume13-tl-desc { margin: 8px 0 0; font-size: .9rem; line-height: 1.95; color: var(--r13-muted); }

/* ===== skills (translucent bars) ===== */
.resume13-skill { margin-bottom: 15px; }
.resume13-skill:last-child { margin-bottom: 0; }
.resume13-lbl {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--r13-ink);
}
.resume13-lbl .pct { color: var(--r13-fuchsia); }
.resume13-bar {
    height: 9px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}
.resume13-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--r13-indigo), var(--r13-fuchsia), var(--r13-cyan));
    box-shadow: 0 2px 8px rgba(217, 70, 239, 0.4);
}

/* ===== languages ===== */
.resume13-lang {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(99, 102, 241, 0.22);
    font-size: .9rem;
}
.resume13-lang:last-child { border-bottom: 0; }
.resume13-lang b { font-weight: 700; color: var(--r13-ink); }
.resume13-langlevel {
    font-size: .78rem;
    font-weight: 700;
    color: var(--r13-cyan);
    background: rgba(6, 182, 212, 0.12);
    padding: 3px 12px;
    border-radius: 50px;
}

/* ===== certifications ===== */
.resume13-cert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(99, 102, 241, 0.22);
}
.resume13-cert:last-child { border-bottom: 0; }
.resume13-cert i {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    font-size: .82rem;
    background: linear-gradient(135deg, var(--r13-fuchsia), var(--r13-cyan));
}
.resume13-cname { font-size: .92rem; font-weight: 800; color: var(--r13-ink); }
.resume13-cmeta { font-size: .8rem; color: var(--r13-faint); margin-top: 2px; }

/* ===== projects ===== */
.resume13-proj-item {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.resume13-proj-item:last-child { margin-bottom: 0; }
.resume13-proj-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.resume13-proj-name { font-size: .96rem; font-weight: 800; color: var(--r13-ink); }
.resume13-proj-link {
    font-size: .78rem;
    font-weight: 700;
    color: var(--r13-indigo);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.resume13-proj-link:hover { color: var(--r13-fuchsia); }
.resume13-proj-desc { margin: 7px 0 0; font-size: .88rem; line-height: 1.9; color: var(--r13-muted); }

/* ===== interests ===== */
.resume13-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.resume13-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--r13-indigo);
    background: rgba(99, 102, 241, 0.10);
    border: 1px solid rgba(99, 102, 241, 0.24);
    border-radius: 50px;
}

/* ===== floating download button ===== */
.resume13-fab {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: .9rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--r13-indigo), var(--r13-fuchsia));
    box-shadow: 0 14px 34px rgba(217, 70, 239, 0.4);
    cursor: pointer;
    transition: transform .15s ease;
}
.resume13-fab:hover { transform: translateY(-3px); color: #fff; }

/* ===== responsive ===== */
@media (max-width: 860px) {
    .resume13-grid { grid-template-columns: 1fr; }
    .resume13-id { flex-direction: column; text-align: center; }
    .resume13-id-info { text-align: center; }
    .resume13-id-actions { width: 100%; }
}
@media (max-width: 520px) {
    .resume13-wrap { padding: 26px 14px 70px; }
    .resume13-card { padding: 20px 18px; }
    .resume13-name { font-size: 1.55rem; }
}

/* ===== print (A4) ===== */
@media print {
    .resume13-root { background: #fff !important; }
    .resume13-bg, .resume13-blob { display: none !important; }
    .resume13-fab { display: none !important; }
    .resume13-id-actions { display: none !important; }
    .resume13-wrap { max-width: 100%; padding: 0; }
    .resume13-glass,
    .resume13-chip,
    .resume13-proj-item {
        background: #fff !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border: 1px solid #e2e4f0 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .resume13-id, .resume13-card { margin-bottom: 14px; }
}

.resume13-root {overflow-wrap:anywhere;}
.resume13-col, .resume13-card, .resume13-cert > div {min-width:0;}
.resume13-summary-card {margin-bottom:22px;}
.resume13-demo-note {color:#383853;margin:0 0 18px;text-align:center;}
.resume13-id-actions {display:flex;flex-wrap:wrap;gap:10px;max-width:100%;}
.resume13-dl {font-family:inherit;border:0;white-space:normal;justify-content:center;}
.resume13-chip {max-width:100%;min-width:0;}
.resume13-chip > span {min-width:0;}
.resume13-lbl, .resume13-lang, .resume13-proj-top {flex-wrap:wrap;gap:8px;}
.resume13-root a:focus-visible, .resume13-root button:focus-visible {outline:3px solid #312e81;outline-offset:4px;}
@media(max-width:860px) { .resume13-id-actions {justify-content:center;} }
@media print {
 @page {size:A4;margin:14mm;}
 body:has(.resume13-root) > :not(.page-card-shell):not(script):not(style):not(link) {display:none!important;}
 body:has(.resume13-root) .page-card-shell {display:block;border:0;}
 .resume13-root {overflow:visible;--r13-ink:#111;--r13-muted:#333;--r13-indigo:#333;--r13-fuchsia:#333;}
 .resume13-demo-note {display:none;}
 .resume13-grid, .resume13-col {display:block;}
 .resume13-card {break-inside:auto;padding:4mm;}
 .resume13-root [data-row-index] {break-inside:avoid;}
 .resume13-stitle {break-after:avoid;}
 .resume13-id {flex-direction:row;text-align:right;padding:4mm;}
 .resume13-id-info {text-align:right;}
 .resume13-avatar {width:25mm;height:25mm;box-shadow:none;background:none;}
 .resume13-role {color:#222;background:none;}
 .resume13-name {font-size:22pt;}
 .resume13-root p, .resume13-summary {font-size:10pt;line-height:1.7;}
 .resume13-fill {print-color-adjust:exact;background:#444;}
 .resume13-root a {color:#222;text-decoration:none;}
}
