/* ============================================================
   Resume_v2 — رزومه مدرن گرادیانت (بنفش و صورتی)
   همه کلاس‌ها با پیشوند resume2- ؛ بدون تداخل با Bootstrap.
   ============================================================ */

.resume2-root {
    --r2-bg: #f4f5fb;
    --r2-white: #fff;
    --r2-ink: #1a1530;
    --r2-muted: #6b7280;
    --r2-line: #ececf5;
    --r2-g1: #6d28d9;
    --r2-g2: #db2777;
    --r2-grad: linear-gradient(120deg, #6d28d9 0%, #9333ea 45%, #db2777 100%);
    --r2-soft: #f5f0ff;
    --r2-radius: 20px;

    background: var(--r2-bg);
    color: var(--r2-ink);
    font-family: 'Vazirmatn', Vazir, Tahoma, sans-serif;
    line-height: 1.9;
    direction: rtl;
    padding: 30px 16px;
    width: 100%;
    box-sizing: border-box;
}

.resume2-root *,
.resume2-root *::before,
.resume2-root *::after {
    box-sizing: border-box;
}

.resume2-cv {
    max-width: 980px;
    margin: 0 auto;
    background: var(--r2-white);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(109, 40, 217, .45);
}

/* ===== Header band ===== */
.resume2-hd {
    position: relative;
    background: var(--r2-grad);
    color: #fff;
    padding: 48px 44px 60px;
    overflow: hidden;
}

.resume2-hd::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -40px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.resume2-hd::after {
    content: '';
    position: absolute;
    bottom: -90px;
    right: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.resume2-hd-in {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.resume2-hd-photo {
    width: 130px;
    height: 130px;
    border-radius: 28px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .4);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .4);
    flex-shrink: 0;
    transform: rotate(-3deg);
}

.resume2-hd-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resume2-hd-txt {
    flex: 1;
    min-width: 240px;
}

.resume2-hd-txt h1 {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0;
}

.resume2-role {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: .95;
    margin-top: 4px;
}

.resume2-role b {
    background: rgba(255, 255, 255, .22);
    padding: 2px 12px;
    border-radius: 30px;
    font-weight: 700;
}

.resume2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.resume2-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(4px);
    padding: 7px 14px;
    border-radius: 30px;
    font-size: .82rem;
    color: #fff;
    text-decoration: none;
}

.resume2-chip i {
    font-size: .8rem;
}

.resume2-dl {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    background: #fff;
    color: var(--r2-g1);
    font-weight: 800;
    padding: 13px 26px;
    border-radius: 30px;
    text-decoration: none;
    font-size: .92rem;
    box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .35);
    transition: transform .25s;
    cursor: pointer;
}

.resume2-dl:hover {
    transform: translateY(-3px);
    color: var(--r2-g1);
}

/* ===== Body grid ===== */
.resume2-body {
    padding: 42px 44px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
}

.resume2-sec {
    margin-bottom: 34px;
}

.resume2-sec:last-child {
    margin-bottom: 0;
}

.resume2-sec-h {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.resume2-sec-h .resume2-b {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--r2-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.resume2-summary {
    background: var(--r2-soft);
    border-radius: var(--r2-radius);
    padding: 22px;
    color: #4b3f6b;
    font-size: .92rem;
    text-align: justify;
    line-height: 2.1;
    border: 1px solid #efe7ff;
}

/* ===== Timeline (experience) ===== */
.resume2-tline {
    position: relative;
    padding-right: 24px;
}

.resume2-tline::before {
    content: '';
    position: absolute;
    right: 5px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(var(--r2-g1), var(--r2-g2));
}

.resume2-ti {
    position: relative;
    padding: 0 0 24px;
}

.resume2-ti:last-child {
    padding-bottom: 0;
}

.resume2-ti::before {
    content: '';
    position: absolute;
    right: -24px;
    top: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--r2-g2);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(219, 39, 119, .2);
}

.resume2-ti .resume2-ti-role {
    font-weight: 800;
    font-size: 1rem;
}

.resume2-ti .resume2-org {
    color: var(--r2-g1);
    font-weight: 700;
    font-size: .88rem;
}

.resume2-ti .resume2-date {
    display: inline-block;
    font-size: .74rem;
    color: var(--r2-muted);
    background: var(--r2-soft);
    padding: 3px 11px;
    border-radius: 20px;
    margin: 5px 0;
}

.resume2-ti p {
    color: var(--r2-muted);
    font-size: .86rem;
    text-align: justify;
    margin: 0;
}

/* ===== Skills ===== */
.resume2-skill {
    margin-bottom: 15px;
}

.resume2-skill .resume2-l {
    display: flex;
    justify-content: space-between;
    font-size: .84rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.resume2-skill .resume2-track {
    height: 9px;
    background: #eee;
    border-radius: 9px;
    overflow: hidden;
}

.resume2-skill .resume2-fill {
    height: 100%;
    border-radius: 9px;
    background: var(--r2-grad);
}

/* ===== Education cards ===== */
.resume2-edu {
    background: var(--r2-white);
    border: 1px solid var(--r2-line);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 13px;
    box-shadow: 0 8px 20px -14px rgba(109, 40, 217, .4);
}

.resume2-edu .resume2-d {
    font-weight: 800;
    font-size: .92rem;
}

.resume2-edu .resume2-u {
    color: var(--r2-g1);
    font-size: .82rem;
    font-weight: 600;
}

.resume2-edu .resume2-y {
    font-size: .75rem;
    color: var(--r2-muted);
}

.resume2-edu p {
    font-size: .82rem;
    color: var(--r2-muted);
    margin: 6px 0 0;
    text-align: justify;
}

/* ===== Languages ===== */
.resume2-langs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resume2-lng {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .86rem;
}

.resume2-lng .resume2-pill {
    font-size: .72rem;
    background: var(--r2-soft);
    color: var(--r2-g1);
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}

/* ===== Project tags ===== */
.resume2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume2-tg {
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
    background: var(--r2-soft);
    color: var(--r2-g1);
    border: 1px solid #ede4ff;
    text-decoration: none;
}

a.resume2-tg:hover {
    color: var(--r2-g2);
}

/* ===== Certifications ===== */
.resume2-certgrid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resume2-crt {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 15px;
    border-radius: 14px;
    background: linear-gradient(120deg, #fff, #faf6ff);
    border: 1px solid #efe7ff;
}

.resume2-crt i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--r2-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resume2-crt .resume2-n {
    font-weight: 700;
    font-size: .85rem;
}

.resume2-crt .resume2-m {
    font-size: .74rem;
    color: var(--r2-muted);
}

/* ===== Interests ===== */
.resume2-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume2-int {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
    background: #fff;
    color: var(--r2-ink);
    border: 1px solid #ede4ff;
}

.resume2-int i {
    color: var(--r2-g2);
    font-size: .72rem;
}

/* ===== Floating download button ===== */
.resume2-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 50;
    background: var(--r2-grad);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    box-shadow: 0 16px 34px -10px rgba(109, 40, 217, .7);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
}

.resume2-fab:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 780px) {
    .resume2-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .resume2-hd-txt h1 {
        font-size: 1.9rem;
    }

    .resume2-hd {
        padding: 38px 24px 48px;
    }

    .resume2-body {
        padding: 32px 24px;
    }
}

/* ===== Print (save as PDF) ===== */
@media print {
    .resume2-root {
        background: #fff;
        padding: 0;
    }

    .resume2-fab {
        display: none !important;
    }

    .resume2-cv {
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }

    .resume2-hd {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
.resume2-root { overflow-wrap:anywhere; }
.resume2-body > *, .resume2-hd-in > * { min-width:0; }
.resume2-demo-note { max-width:1000px; margin:0 auto 16px; color:#475569; }
.resume2-dl { font-family:inherit; border:0; cursor:pointer; }
.resume2-dl:focus-visible { outline:3px solid #7040b0; outline-offset:4px; }
@media print {
 @page { size:A4; margin:12mm; }
 body:has(.resume2-root) > :not(.page-card-shell):not(script):not(style):not(link) {display:none!important;}
 body:has(.resume2-root) .page-card-shell {display:block;border:0;}
 .resume2-dl,.resume2-demo-note {display:none!important;}
 .resume2-body {display:block;padding:5mm;}
 .resume2-cv {overflow:visible;}
 .resume2-hd {background:white;color:#111;padding:5mm;}
 .resume2-hd * {color:#111!important;}
 .resume2-root p {font-size:10pt;line-height:1.6;orphans:3;widows:3;}
 [data-row-index] {break-inside:avoid;}
}
