/* ============================================================
   Resume_v17 — رزومه «نئومورفیسم نرم» (Soft UI)
   Monochrome gray-blue base; every element is an extruded soft
   card built from dual light/dark shadows. No hard borders.
   Skill bars are inset grooves with a raised fill. Accent: soft blue.
   ============================================================ */

.resume17-root {
    --r17-bg: #e0e5ec;
    --r17-bg-2: #dce1e9;
    --r17-text: #4a5568;
    --r17-text-soft: #707b8c;
    --r17-text-strong: #34404f;
    --r17-accent: #6d8dc7;
    --r17-accent-deep: #5577b3;
    --r17-light: #ffffff;
    --r17-dark: #a3b1c6;
    --r17-radius: 22px;
    --r17-radius-sm: 14px;

    background: var(--r17-bg);
    color: var(--r17-text);
    font-family: Vazir, IRANYekan, Tahoma, sans-serif;
    direction: rtl;
    line-height: 1.85;
    padding: 38px 20px 90px;
    min-height: 100%;
}

.resume17-shell {
    max-width: 1060px;
    margin: 0 auto;
}

/* ---- extruded (raised) helper ---- */
.resume17-card,
.resume17-hero {
    background: var(--r17-bg);
    border-radius: var(--r17-radius);
    box-shadow: 9px 9px 18px var(--r17-dark), -9px -9px 18px var(--r17-light);
}

/* ===== Hero ===== */
.resume17-hero {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 34px 36px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.resume17-avatar-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 12px;
    background: var(--r17-bg);
    box-shadow: 7px 7px 16px var(--r17-dark), -7px -7px 16px var(--r17-light);
    flex-shrink: 0;
}

.resume17-avatar-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: inset 4px 4px 9px var(--r17-dark), inset -4px -4px 9px var(--r17-light);
    display: block;
}

.resume17-hero-text {
    flex: 1 1 280px;
    min-width: 240px;
}

.resume17-name {
    font-size: 2.05rem;
    font-weight: 800;
    color: var(--r17-text-strong);
    margin: 0 0 6px;
    letter-spacing: -.3px;
}

.resume17-role {
    font-size: 1.12rem;
    color: var(--r17-accent-deep);
    font-weight: 700;
    margin-bottom: 16px;
}

/* pill / chip raised */
.resume17-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--r17-text-soft);
    background: var(--r17-bg);
    box-shadow: inset 3px 3px 6px var(--r17-dark), inset -3px -3px 6px var(--r17-light);
}

.resume17-years {
    margin-bottom: 18px;
}

.resume17-years i { color: var(--r17-accent); }

/* pillowy button */
.resume17-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 50px;
    font-weight: 800;
    font-size: .95rem;
    color: var(--r17-accent-deep);
    text-decoration: none;
    cursor: pointer;
    background: var(--r17-bg);
    box-shadow: 6px 6px 13px var(--r17-dark), -6px -6px 13px var(--r17-light);
    transition: box-shadow .18s ease, transform .18s ease, color .18s ease;
    margin-right: 14px;
}

.resume17-btn:hover {
    color: var(--r17-accent-deep);
    box-shadow: 8px 8px 16px var(--r17-dark), -8px -8px 16px var(--r17-light);
}

.resume17-btn:active {
    box-shadow: inset 5px 5px 10px var(--r17-dark), inset -5px -5px 10px var(--r17-light);
    transform: translateY(1px);
}

/* ===== Contact chips ===== */
.resume17-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.resume17-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--r17-text);
    text-decoration: none;
    background: var(--r17-bg);
    box-shadow: 5px 5px 11px var(--r17-dark), -5px -5px 11px var(--r17-light);
    transition: box-shadow .18s ease, transform .18s ease;
    word-break: break-all;
}

.resume17-chip:hover {
    color: var(--r17-accent-deep);
    transform: translateY(-2px);
}

.resume17-chip-ico {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--r17-accent);
    background: var(--r17-bg);
    box-shadow: inset 2px 2px 4px var(--r17-dark), inset -2px -2px 4px var(--r17-light);
    flex-shrink: 0;
    font-size: .82rem;
}

/* ===== Section heads ===== */
.resume17-sec-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.resume17-sec-ico {
    width: 44px;
    height: 44px;
    border-radius: var(--r17-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--r17-accent);
    font-size: 1.05rem;
    background: var(--r17-bg);
    box-shadow: 4px 4px 9px var(--r17-dark), -4px -4px 9px var(--r17-light);
    flex-shrink: 0;
}

.resume17-sec-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--r17-text-strong);
    margin: 0;
}

/* ===== Cards ===== */
.resume17-card {
    padding: 28px 30px;
    margin-bottom: 26px;
}

.resume17-about { margin-bottom: 26px; }

/* inset well for summary */
.resume17-well {
    border-radius: var(--r17-radius-sm);
    padding: 20px 22px;
    background: var(--r17-bg);
    box-shadow: inset 5px 5px 11px var(--r17-dark), inset -5px -5px 11px var(--r17-light);
}

.resume17-summary {
    color: var(--r17-text);
    font-size: .98rem;
    line-height: 2;
}

.resume17-summary p { margin: 0 0 .7em; }
.resume17-summary p:last-child { margin-bottom: 0; }

/* ===== Body grid ===== */
.resume17-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 26px;
    align-items: start;
}

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

/* ===== Items (experience / education / projects / certs) ===== */
.resume17-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resume17-item {
    border-radius: var(--r17-radius-sm);
    padding: 16px 18px;
    background: var(--r17-bg);
    box-shadow: inset 4px 4px 9px var(--r17-dark), inset -4px -4px 9px var(--r17-light);
}

.resume17-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.resume17-item-title {
    font-weight: 800;
    color: var(--r17-text-strong);
    font-size: 1rem;
}

.resume17-badge {
    font-size: .74rem;
    font-weight: 700;
    color: var(--r17-text-soft);
    padding: 5px 13px;
    border-radius: 50px;
    background: var(--r17-bg);
    box-shadow: 3px 3px 6px var(--r17-dark), -3px -3px 6px var(--r17-light);
    white-space: nowrap;
}

.resume17-item-org {
    color: var(--r17-accent-deep);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 8px;
}

.resume17-item-loc {
    color: var(--r17-text-soft);
    font-weight: 600;
    font-size: .8rem;
    margin-right: 10px;
}

.resume17-item-loc i { margin-left: 4px; color: var(--r17-accent); }

.resume17-item-desc {
    margin: 0;
    color: var(--r17-text);
    font-size: .9rem;
    line-height: 1.95;
}

.resume17-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--r17-accent-deep);
    text-decoration: none;
    padding: 5px 13px;
    border-radius: 50px;
    background: var(--r17-bg);
    box-shadow: 3px 3px 6px var(--r17-dark), -3px -3px 6px var(--r17-light);
    transition: box-shadow .15s ease;
}

.resume17-link:active {
    box-shadow: inset 3px 3px 6px var(--r17-dark), inset -3px -3px 6px var(--r17-light);
}

/* ===== Skills — inset groove with raised fill ===== */
.resume17-skills {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.resume17-skill-lbl {
    display: flex;
    justify-content: space-between;
    font-size: .86rem;
    font-weight: 700;
    color: var(--r17-text-strong);
    margin-bottom: 9px;
}

.resume17-skill-lbl span:last-child { color: var(--r17-accent-deep); }

.resume17-groove {
    height: 16px;
    border-radius: 50px;
    padding: 3px;
    background: var(--r17-bg);
    box-shadow: inset 3px 3px 6px var(--r17-dark), inset -3px -3px 6px var(--r17-light);
}

.resume17-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--r17-accent), var(--r17-accent-deep));
    box-shadow: 2px 2px 5px var(--r17-dark), -1px -1px 3px var(--r17-light);
    transition: width 1s cubic-bezier(.2, .8, .25, 1);
    min-width: 10px;
}

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

.resume17-lang {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--r17-radius-sm);
    background: var(--r17-bg);
    box-shadow: inset 4px 4px 9px var(--r17-dark), inset -4px -4px 9px var(--r17-light);
}

.resume17-lang-name { font-weight: 700; color: var(--r17-text-strong); font-size: .9rem; }

.resume17-lang-level {
    font-size: .76rem;
    font-weight: 700;
    color: var(--r17-accent-deep);
    padding: 4px 13px;
    border-radius: 50px;
    background: var(--r17-bg);
    box-shadow: 3px 3px 6px var(--r17-dark), -3px -3px 6px var(--r17-light);
}

/* ===== Certifications ===== */
.resume17-cert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--r17-radius-sm);
    background: var(--r17-bg);
    box-shadow: inset 4px 4px 9px var(--r17-dark), inset -4px -4px 9px var(--r17-light);
}

.resume17-cert-ico {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--r17-accent);
    background: var(--r17-bg);
    box-shadow: 3px 3px 7px var(--r17-dark), -3px -3px 7px var(--r17-light);
    flex-shrink: 0;
}

.resume17-cert-name { font-weight: 800; color: var(--r17-text-strong); font-size: .92rem; }
.resume17-cert-meta { font-size: .78rem; color: var(--r17-text-soft); font-weight: 600; }

/* ===== Interests tags ===== */
.resume17-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.resume17-tag {
    padding: 9px 18px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--r17-text);
    background: var(--r17-bg);
    box-shadow: 4px 4px 8px var(--r17-dark), -4px -4px 8px var(--r17-light);
}

/* ===== FAB ===== */
.resume17-fab {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--r17-accent-deep);
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    z-index: 999;
    background: var(--r17-bg);
    box-shadow: 6px 6px 14px var(--r17-dark), -6px -6px 14px var(--r17-light);
    transition: box-shadow .18s ease, transform .18s ease;
}

.resume17-fab:hover { color: var(--r17-accent-deep); transform: translateY(-2px); }
.resume17-fab:active { box-shadow: inset 5px 5px 10px var(--r17-dark), inset -5px -5px 10px var(--r17-light); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .resume17-grid { grid-template-columns: 1fr; }
    .resume17-hero { flex-direction: column; text-align: center; padding: 30px 24px; }
    .resume17-hero-text { text-align: center; }
    .resume17-btn { margin-right: 0; }
    .resume17-contacts { justify-content: center; }
}

@media (max-width: 480px) {
    .resume17-root { padding: 24px 12px 80px; }
    .resume17-card { padding: 22px 18px; }
    .resume17-name { font-size: 1.7rem; }
}

/* ===== Print (A4) ===== */
@media print {
    .resume17-root {
        --r17-bg: #ffffff;
        --r17-dark: #d8dde6;
        --r17-light: #ffffff;
        background: #fff;
        padding: 0;
    }
    .resume17-fab,
    .resume17-btn { display: none !important; }
    .resume17-card,
    .resume17-hero {
        box-shadow: none !important;
        border: 1px solid #e2e6ec;
        break-inside: avoid;
    }
    .resume17-grid { gap: 14px; }
    .resume17-chip,
    .resume17-item,
    .resume17-well,
    .resume17-lang,
    .resume17-cert,
    .resume17-tag,
    .resume17-badge {
        box-shadow: none !important;
        border: 1px solid #eceff3;
    }
    .resume17-fill { box-shadow: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Complete resume: narrow screens, long user content and printable output. */
.resume17-root { overflow-wrap: anywhere; }
.resume17-hero-text, .resume17-card, .resume17-cert > div { min-width: 0; }
.resume17-chip { max-width: 100%; }
.resume17-chip > span { min-width: 0; }
.resume17-badge { white-space: normal; }
.resume17-skill-lbl, .resume17-lang { flex-wrap: wrap; gap: 8px; }
.resume17-btn { font-family: inherit; border: 0; white-space: normal; }
.resume17-demo-note { margin: 0 0 20px; color: var(--r17-text-strong); font-size: .85rem; }
.resume17-root a:focus-visible, .resume17-root button:focus-visible { outline: 3px solid var(--r17-accent-deep); outline-offset: 4px; }
@media (max-width: 860px) {
    .resume17-hero-text { flex: 1 1 auto; width: 100%; }
}
@media print {
    @page { size: A4; margin: 14mm; }
    body:has(.resume17-root) > :not(.page-card-shell):not(script):not(style):not(link) { display: none !important; }
    body:has(.resume17-root) .page-card-shell { display: block; border: 0; }
    .resume17-demo-note { display: none; }
    .resume17-grid, .resume17-col, .resume17-items, .resume17-skills, .resume17-langs { display: block; }
    .resume17-card { break-inside: auto; padding: 4mm; margin-bottom: 4mm; }
    .resume17-item, .resume17-cert, .resume17-lang, .resume17-skill { break-inside: avoid; margin-bottom: 3mm; }
    .resume17-sec-head { break-after: avoid; margin-bottom: 3mm; }
    .resume17-hero { flex-direction: row; text-align: right; padding: 4mm; gap: 5mm; margin-bottom: 4mm; }
    .resume17-hero-text { flex: 1; width: auto; text-align: right; }
    .resume17-avatar-frame { width: 25mm; height: 25mm; padding: 2mm; box-shadow: none; }
    .resume17-name { font-size: 22pt; }
    .resume17-summary, .resume17-item-desc { font-size: 10pt; line-height: 1.65; }
    .resume17-well { padding: 3mm; }
}
