/* ============================================================
   Resume_v6 — «ریل آیکونی و باندهای تمام‌عرض»
   Icon-rail (fixed, right edge) + full-width stacked bands.
   Indigo accent (#4f46e5). All classes prefixed resume6-.
   ============================================================ */

.resume6-root {
    --r6-ink: #0f172a;
    --r6-sub: #475569;
    --r6-line: #e2e8f0;
    --r6-accent: #4f46e5;
    --r6-accent-2: #6366f1;
    --r6-slate: #f1f5f9;
    --r6-white: #ffffff;
    font-family: Vazir, IRANYekan, Tahoma, sans-serif;
    color: var(--r6-ink);
    background: var(--r6-white);
    direction: rtl;
    line-height: 1.85;
    position: relative;
    overflow-x: hidden;
}

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

/* ===== Full-width bands ===== */
.resume6-band {
    width: 100%;
    padding: 70px 90px 70px 24px; /* extra right padding leaves room for the rail */
    scroll-margin-top: 12px;
}

.resume6-band--light { background: var(--r6-white); }
.resume6-band--slate { background: var(--r6-slate); }

.resume6-wrap {
    max-width: 920px;
    margin: 0 auto;
}

/* ===== Band headings ===== */
.resume6-bhead {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
}

.resume6-bico {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--r6-accent), var(--r6-accent-2));
    box-shadow: 0 10px 24px rgba(79, 70, 229, .28);
}

.resume6-btitle {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--r6-ink);
}

/* ============================================================
   Icon rail
   ============================================================ */
.resume6-rail {
    position: fixed;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .14);
    border: 1px solid var(--r6-line);
}

.resume6-rail-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--r6-sub);
    background: #f8fafc;
    border: 1px solid var(--r6-line);
    text-decoration: none;
    font-size: .95rem;
    transition: all .2s ease;
}

.resume6-rail-link:hover {
    color: var(--r6-accent);
    border-color: var(--r6-accent);
    transform: scale(1.08);
}

.resume6-rail-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--r6-accent), var(--r6-accent-2));
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(79, 70, 229, .35);
}

/* ============================================================
   Band 1 — Identity hero
   ============================================================ */
.resume6-hero {
    display: flex;
    align-items: center;
    gap: 38px;
}

.resume6-hero-photo {
    flex: 0 0 auto;
    width: 190px;
    height: 190px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .18);
}

.resume6-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid rgba(79, 70, 229, .4);
    border-radius: 28px;
    pointer-events: none;
}

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

.resume6-hero-body { flex: 1 1 auto; min-width: 0; }

.resume6-hero-kicker {
    display: inline-block;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--r6-accent);
    background: rgba(79, 70, 229, .1);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.resume6-hero-name {
    margin: 0 0 4px;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--r6-ink);
}

.resume6-hero-role {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--r6-accent);
    margin-bottom: 8px;
}

.resume6-hero-years {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .9rem;
    color: var(--r6-sub);
    margin-bottom: 16px;
}

.resume6-hero-years i { color: #f59e0b; }

.resume6-hero-summary {
    font-size: 1rem;
    color: var(--r6-sub);
    margin-bottom: 22px;
    max-width: 640px;
}

.resume6-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.resume6-cpill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 50px;
    background: #f8fafc;
    border: 1px solid var(--r6-line);
    color: var(--r6-ink);
    font-size: .85rem;
    text-decoration: none;
    transition: all .18s ease;
}

.resume6-cpill i { color: var(--r6-accent); font-size: .9rem; }

.resume6-cpill:hover {
    border-color: var(--r6-accent);
    background: rgba(79, 70, 229, .06);
}

.resume6-dl {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: .98rem;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--r6-accent), var(--r6-accent-2));
    box-shadow: 0 14px 30px rgba(79, 70, 229, .35);
    transition: transform .18s ease, box-shadow .18s ease;
}

.resume6-dl:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(79, 70, 229, .45);
    color: #fff;
}

/* ============================================================
   Band 2 — Centered alternating timeline
   ============================================================ */
.resume6-timeline {
    position: relative;
    padding: 6px 0;
}

.resume6-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 3px;
    background: linear-gradient(to bottom, var(--r6-accent), var(--r6-accent-2));
    border-radius: 3px;
}

.resume6-tl-item {
    position: relative;
    width: 50%;
    padding: 0 38px 36px;
}

/* RTL: "right" side sits on the right half, "left" on the left half */
.resume6-tl-right { margin-right: 0; margin-left: auto; text-align: right; }
.resume6-tl-left { margin-right: auto; margin-left: 0; text-align: left; }

.resume6-tl-dot {
    position: absolute;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--r6-accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .15);
    z-index: 2;
}

.resume6-tl-right .resume6-tl-dot { right: -47px; }
.resume6-tl-left .resume6-tl-dot { left: -47px; }

.resume6-tl-card {
    background: #fff;
    border: 1px solid var(--r6-line);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    text-align: right;
    direction: rtl;
}

.resume6-tl-period {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--r6-accent);
    background: rgba(79, 70, 229, .08);
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.resume6-tl-role {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--r6-ink);
    margin-bottom: 3px;
}

.resume6-tl-org {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .9rem;
    font-weight: 700;
    color: var(--r6-accent-2);
    margin-bottom: 8px;
}

.resume6-tl-loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: var(--r6-sub);
}

.resume6-tl-loc i { font-size: .75rem; }

.resume6-tl-desc {
    margin: 0;
    font-size: .92rem;
    color: var(--r6-sub);
}

/* ============================================================
   Band 3 — Skills meter grid
   ============================================================ */
.resume6-skillgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px 36px;
}

.resume6-skill-lbl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .92rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.resume6-skill-pct { color: var(--r6-accent); font-weight: 800; }

.resume6-skill-bar {
    height: 9px;
    border-radius: 50px;
    background: #e2e8f0;
    overflow: hidden;
}

.resume6-skill-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--r6-accent), var(--r6-accent-2));
}

/* ============================================================
   Band 4 — Education + Certifications two columns
   ============================================================ */
.resume6-twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.resume6-col { min-width: 0; }

.resume6-edu-item {
    position: relative;
    padding: 0 18px 22px;
    margin-bottom: 4px;
    border-right: 2px solid var(--r6-line);
}

.resume6-edu-item::before {
    content: "";
    position: absolute;
    top: 6px;
    right: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--r6-accent);
    border: 2px solid #fff;
}

.resume6-edu-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.resume6-edu-deg {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--r6-ink);
}

.resume6-edu-date {
    font-size: .78rem;
    font-weight: 700;
    color: var(--r6-accent);
    white-space: nowrap;
}

.resume6-edu-org {
    font-size: .9rem;
    font-weight: 700;
    color: var(--r6-accent-2);
    margin: 2px 0 6px;
}

.resume6-edu-desc {
    margin: 0;
    font-size: .88rem;
    color: var(--r6-sub);
}

.resume6-certlist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resume6-cert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--r6-line);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.resume6-cert-ico {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, .1);
    color: var(--r6-accent);
}

.resume6-cert-name {
    font-size: .96rem;
    font-weight: 800;
    color: var(--r6-ink);
}

.resume6-cert-meta {
    font-size: .82rem;
    color: var(--r6-sub);
    direction: ltr;
    text-align: right;
}

/* ============================================================
   Band 5 — Projects + Languages + Interests
   ============================================================ */
.resume6-projgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 44px;
}

.resume6-proj {
    background: #fff;
    border: 1px solid var(--r6-line);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    border-top: 4px solid var(--r6-accent);
    transition: transform .18s ease, box-shadow .18s ease;
}

.resume6-proj:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
}

.resume6-proj-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.resume6-proj-name {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--r6-ink);
}

.resume6-proj-link {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, .1);
    color: var(--r6-accent);
    text-decoration: none;
    font-size: .8rem;
    transition: all .18s ease;
}

.resume6-proj-link:hover {
    background: var(--r6-accent);
    color: #fff;
}

.resume6-proj-desc {
    margin: 0;
    font-size: .9rem;
    color: var(--r6-sub);
}

.resume6-more-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.resume6-more-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--r6-ink);
    margin-bottom: 16px;
}

.resume6-more-title i { color: var(--r6-accent); }

.resume6-langlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resume6-lang {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--r6-line);
}

.resume6-lang-name { font-weight: 700; font-size: .92rem; }

.resume6-lang-lvl {
    font-size: .8rem;
    font-weight: 700;
    color: var(--r6-accent);
    background: rgba(79, 70, 229, .08);
    padding: 3px 12px;
    border-radius: 50px;
}

.resume6-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.resume6-tag {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(79, 70, 229, .1), rgba(99, 102, 241, .1));
    border: 1px solid rgba(79, 70, 229, .2);
    color: var(--r6-accent);
    font-size: .85rem;
    font-weight: 700;
}

/* ============================================================
   Floating action button (mobile / quick access)
   ============================================================ */
.resume6-fab {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 70;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 800;
    font-size: .9rem;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--r6-accent), var(--r6-accent-2));
    box-shadow: 0 14px 30px rgba(79, 70, 229, .4);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
    .resume6-band { padding: 50px 20px; }

    .resume6-hero {
        flex-direction: column;
        text-align: center;
        gap: 22px;
    }

    .resume6-hero-summary { margin-left: auto; margin-right: auto; }
    .resume6-contact { justify-content: center; }

    .resume6-twocol,
    .resume6-more-row {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Timeline collapses to a single right-aligned rail */
    .resume6-timeline::before {
        right: 7px;
        transform: none;
    }

    .resume6-tl-item {
        width: 100%;
        padding: 0 34px 28px 0;
        text-align: right !important;
        margin: 0 !important;
    }

    .resume6-tl-left .resume6-tl-card,
    .resume6-tl-right .resume6-tl-card { text-align: right; }

    .resume6-tl-right .resume6-tl-dot,
    .resume6-tl-left .resume6-tl-dot {
        right: 0;
        left: auto;
    }

    .resume6-rail {
        top: auto;
        bottom: 14px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
    }

    .resume6-fab { display: inline-flex; }
}

/* ============================================================
   Print — A4, hide rail/fab/buttons
   ============================================================ */
@media print {
    .resume6-rail,
    .resume6-fab,
    .resume6-dl { display: none !important; }

    .resume6-root { background: #fff !important; }

    .resume6-band {
        padding: 18px 0 !important;
        background: #fff !important;
        break-inside: avoid;
    }

    .resume6-band--slate { background: #fff !important; }

    .resume6-tl-card,
    .resume6-proj,
    .resume6-cert,
    .resume6-lang {
        box-shadow: none !important;
        break-inside: avoid;
    }

    .resume6-hero-photo { box-shadow: none !important; }
}

.resume6-root {overflow-wrap:anywhere;}
.resume6-wrap, .resume6-hero-body, .resume6-col, .resume6-proj, .resume6-more-block {min-width:0;}
.resume6-skill-lbl {gap:8px;flex-wrap:wrap;}
.resume6-demo-note {max-width:1000px;margin:0 auto;padding:16px;color:#475569;}
.resume6-dl {font-family:inherit;border:0;}
.resume6-dl:focus-visible, .resume6-rail-link:focus-visible {outline:3px solid #312e81;outline-offset:4px;}
@media (max-width:860px) { .resume6-root {padding-bottom:80px;} }
@media (max-width:380px) { .resume6-band {padding-inline:12px;} }
@media print {
 @page {size:A4;margin:12mm;}
 body:has(.resume6-root) > :not(.page-card-shell):not(script):not(style):not(link) {display:none!important;}
 body:has(.resume6-root) .page-card-shell {display:block;border:0;}
 .resume6-demo-note {display:none;}
 .resume6-root {padding:0;}
 .resume6-band {break-inside:auto;}
 .resume6-wrap {max-width:none;}
 .resume6-timeline::before, .resume6-tl-dot {display:none;}
 .resume6-tl-item {width:100%;padding:0 0 4mm;margin:0!important;text-align:right!important;}
 .resume6-tl-card {text-align:right!important;}
 .resume6-twocol, .resume6-projgrid {display:block;}
 .resume6-proj {margin-bottom:4mm;}
 .resume6-root [data-row-index] {break-inside:avoid;}
 .resume6-bhead {break-after:avoid;}
 .resume6-root p {font-size:10pt;line-height:1.6;orphans:3;widows:3;}
}
.resume6-skillgrid {grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));}
.resume6-projgrid {grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));}
@media print {
 .resume6-hero {flex-direction:row;text-align:right;gap:5mm;}
 .resume6-hero-photo {width:28mm;height:28mm;flex:0 0 28mm;}
 .resume6-hero-name {font-size:24pt;}
 .resume6-hero-role {font-size:12pt;}
 .resume6-contact {justify-content:flex-start;}
 .resume6-bhead {margin-bottom:4mm;}
 .resume6-bico {background:#eef2ff;color:#3730a3;box-shadow:none;}
 .resume6-tl-card {padding:4mm;}
 .resume6-band {padding:4mm 0!important;}
 .resume6-more-row {gap:5mm;}
 .resume6-col {margin-bottom:5mm;}
}
@media screen and (min-width:861px) {
 .resume6-tl-right .resume6-tl-dot {right:auto;left:-9px;}
 .resume6-tl-left .resume6-tl-dot {left:auto;right:-9px;}
}
