@font-face {
    font-family: 'Vazir';
    src: url('./src/fonts/Vazir.woff2') format('woff2'),
         url('./src/fonts/Vazir.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('./src/fonts/Vazir-Bold.woff2') format('woff2'),
         url('./src/fonts/Vazir-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
html, body, button, input, textarea, select {
    font-family: 'Vazir', sans-serif;
}
:root {
    --primary-color: #1a237e;
    --secondary-color: #3949ab;
    --accent-color: #5c6bc0;
    --light-accent: #e8eaf6;
    --text-color: #263238;
    --light-text: #546e7a;
    --background: #f5f7fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --header-bg: linear-gradient(135deg, #4e6aff, #00b8d4);
    --senior-color: #4caf50;
    --mid-color: #2196f3;
    --junior-color: #ff9800;
    --learning-color: #9c27b0;
    --english-color: #2196f3;
    --arabic-color: #4caf50;
}

.redesigned-header {
    padding: 18px 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #4e6aff 0%, #00b8d4 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.redesigned-photo {
    width: 92px;
    height: 92px;
    border: 3px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.header-info .name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.35;
}

.header-info .title {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 10px;
    line-height: 1.8;
}

.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.personality-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    backdrop-filter: blur(4px);
}

.role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: #eff6ff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 768px) {
    .redesigned-header {
        padding: 16px;
        border-radius: 18px;
    }

    .header-main {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .redesigned-photo {
        width: 84px;
        height: 84px;
    }

    .header-info .name {
        font-size: 1.25rem;
    }

    .header-info .title {
        font-size: 0.86rem;
        margin-bottom: 8px;
    }

    .header-meta {
        align-items: center;
        gap: 7px;
    }

    .role-badges {
        justify-content: center;
    }

    .personality-pill,
    .role-badge {
        font-size: 0.72rem;
    }
}

.contact-card {
    border-radius: 24px;
    padding: 24px;
}

.contact-box-bg {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.25fr;
    gap: 18px;
    align-items: start;
}

.contact-info-block,
.contact-links-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    min-width: 0;
}

.contact-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.phone-bg {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.location-bg {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-label {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 0.96rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.8;
}

.email-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    min-width: 0;
    transition: all 0.22s ease;
}

.contact-chip:hover,
.contact-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.contact-chip a {
    color: #334155;
    text-decoration: none;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: color 0.2s ease;
}

.contact-chip a:hover {
    color: #2563eb;
}

.resume-cta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid rgba(251, 191, 36, 0.28);
    text-decoration: none;
    transition: all 0.22s ease;
}

.resume-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.12);
}

.resume-cta-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    flex-shrink: 0;
}

.resume-cta-text {
    color: #92400e;
    font-weight: 700;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .redesigned-header {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .header-main {
        flex-direction: column;
        text-align: center;
    }

    .redesigned-photo {
        width: 108px;
        height: 108px;
    }

    .header-badges {
        justify-content: center;
    }

    .contact-card {
        padding: 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .email-row {
        grid-template-columns: 1fr;
    }

    .resume-cta {
        align-items: flex-start;
    }
}


.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.personality-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: #eff6ff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 18px;
    align-items: start;
}

.location-value {
    display: flex;
    flex-direction: column;
    line-height: 1.9;
}

.email-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.contact-chip-wrap {
    align-items: flex-start;
}

.contact-chip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    min-width: 0;
    transition: all 0.22s ease;
}

.contact-chip .fa-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-link-text {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.9;
    text-align: left;
    direction: ltr;
}

.contact-chip a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-chip a:hover {
    color: #2563eb;
}

.skill-level-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.skill-level-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-size: 0.95rem;
    order: 1;
}

.skill-level-badge {
    order: 2;
}

@media (max-width: 768px) {
    .header-meta {
        align-items: center;
    }

    .role-badges {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.fa-icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fa-icon.no-margin {
    margin-right: 0;
}

.fa-icon.small-gap {
    margin-right: 4px;
}

.icon-github {
    color: #181717;
}

.icon-linkedin {
    color: #0A66C2;
}

.icon-instagram {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-phone {
    color: #16a34a;
}

.icon-location {
    color: #dc2626;
}

.icon-email {
    color: #2563eb;
}

.icon-warning {
    color: #f59e0b;
}

.icon-star {
    color: #fbbf24;
}

.icon-check {
    color: #22c55e;
}

.icon-info {
    color: #3b82f6;
}

.icon-trophy {
    color: #eab308;
}

.icon-goal {
    color: #8b5cf6;
}

.icon-tools {
    color: #475569;
}

.icon-briefcase {
    color: #92400e;
}

.icon-school {
    color: #7c3aed;
}

.icon-project {
    color: #0f766e;
}

.icon-doc {
    color: #e2ce16;
}

.icon-play {
    color: #333131;
}

.icon-eye {
    color: #000000;
}

.icon-book {
    color: #7c3aed;
}

.icon-globe {
    color: #0ea5e9;
}

.icon-building {
    color: #6b7280;
}

.icon-laptop {
    color: #334155;
}

.icon-box {
    color: #78716c;
}

.icon-achievement {
    color: #f59e0b;
}

.icon-brain {
    color: #ec4899;
}

.icon-growth {
    color: #10b981;
}

.icon-flag {
    color: #14b8a6;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}


.title-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.goal-box-bg {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.brain-box-bg {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.tools-box-bg {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.fancy-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.fancy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.skills-section-wrap {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.technical-skills-card,
.languages-card {
    width: 100%;
    min-width: 0;
}

.language-box-bg {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.skills-level-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-level-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 16px;
    transition: all 0.22s ease;
}

.skill-level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.skill-level-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.skill-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.senior-badge {
    background: #ecfdf5;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.mid-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.junior-badge {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.learning-badge {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.skill-level-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-size: 0.95rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    direction: ltr;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 500;
    direction: ltr;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.senior-card {
    border-right: 4px solid rgba(34, 197, 94, 0.28);
}

.mid-card {
    border-right: 4px solid rgba(59, 130, 246, 0.28);
}

.junior-card {
    border-right: 4px solid rgba(249, 115, 22, 0.28);
}

.learning-card {
    border-right: 4px solid rgba(168, 85, 247, 0.28);
}

.language-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.language-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 16px;
    transition: all 0.22s ease;
}

.language-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.english-card {
    border-right: 4px solid rgba(59, 130, 246, 0.25);
}

.arabic-card {
    border-right: 4px solid rgba(34, 197, 94, 0.25);
}

.language-card-head {
    margin-bottom: 14px;
}

.language-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    font-size: 1rem;
}

.language-flag-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.language-skill {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.language-skill:last-child {
    margin-bottom: 0;
}

.skill-name {
    width: 58px;
    flex-shrink: 0;
    color: #334155;
    font-weight: 500;
}

.skill-bar {
    flex: 1;
    height: 9px;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 999px;
}

.skill-percent {
    width: 42px;
    text-align: left;
    direction: ltr;
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .skill-tag {
        font-size: 0.82rem;
        padding: 6px 10px;
    }

    .language-card-grid {
        grid-template-columns: 1fr;
    }

    .language-skill {
        gap: 8px;
    }

    .skill-name {
        width: 52px;
        font-size: 12px;
    }
}

.goal-list,
.soft-skill-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fancy-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.22s ease;
    line-height: 1.9;
}

.fancy-list-item:hover {
    transform: translateX(-4px);
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.35);
}

.item-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.growth-icon-bg {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.check-icon-bg {
    background: linear-gradient(135deg, #dcfce7, #d1fae5);
}

.goals-card .fancy-list-item {
    border-right: 4px solid #a78bfa;
}

.goals-card .highlight {
    color: #6d28d9;
    font-weight: 700;
}

.soft-skills-card .fancy-list-item {
    border-right: 4px solid #34d399;
}

.skills-card {
    margin-top: 18px;
}

.hard-skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hard-skill-chip {
    min-height: 72px;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
    border-right: 4px solid #94a3b8;
}

.icon-goal {
    color: #7c3aed;
}

.icon-growth {
    color: #16a34a;
}

.icon-brain {
    color: #ec4899;
}

.icon-tools {
    color: #475569;
}

.icon-check {
    color: #22c55e;
}

.docs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0c54b3, #3070c5);
    color: #f8e805;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.docs-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #15bce6, #2379e2);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

@media (max-width: 900px) {
    .hard-skill-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fancy-list-item {
        padding: 11px 12px;
    }

    .title-icon-box {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .item-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.poster-container {
    width: 720px;
    min-height: 960px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    overflow: hidden;
}
.poster-container::before, .poster-container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    z-index: -1;
}
.poster-container::before {
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
}
.poster-container::after {
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.corporate-category {
    margin-top: 18px;
}

.corporate-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-weight: 700;
}

.category-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12);
}

.corporate-project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.corporate-project-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
    overflow: hidden;
}

.corporate-project-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #0ea5e9, #3b82f6);
    border-radius: 8px 0 0 8px;
}

.corporate-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
}

.corporate-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.corporate-project-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
}

.mini-project-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.corporate-project-card .project-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.9;
    color: #0f172a;
}

.corporate-project-card .project-title a {
    color: inherit;
    text-decoration: none;
}

.corporate-project-card .project-title a:hover {
    color: #2563eb;
}

.corporate-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    white-space: nowrap;
    font-weight: 600;
}

.corporate-project-card .project-description {
    color: #475569;
    line-height: 2;
    font-size: 0.96rem;
    padding-right: 46px;
}

@media (max-width: 768px) {
    .corporate-project-card {
        padding: 16px 14px;
    }

    .corporate-project-card .project-description {
        padding-right: 0;
    }

    .corporate-project-header {
        flex-direction: column;
        align-items: stretch;
    }

    .corporate-badge {
        align-self: flex-start;
    }
}
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.colored-card {
    background: linear-gradient(135deg, #f5f7fa, #e3f2fd);
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title .material-icons { font-size: 20px; }

.header-card {
    background: var(--header-bg);
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.header-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff9800, #ff5722);
}
.photo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.header-info { flex: 1; }
.name { font-size: 28px; font-weight: 700; margin-bottom: 5px; }
.title { font-size: 16px; margin-bottom: 10px; opacity: 0.9; }
.personality {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.contact-group { margin-bottom: 15px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.contact-item .material-icons { color: var(--accent-color); font-size: 18px; }
.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-item a:hover { color: var(--primary-color); text-decoration: underline; }
.contact-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 15px 0;
}
.left-aligned { text-align: left; direction: ltr; }
.online-resume-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d32f2f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.online-resume-link:hover { color: #b71c1c; }

.goals-softskills-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.goals-softskills-wrap > section {
    min-width: 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.full-width {
    grid-column: 1 / -1;
}
.skill-group { margin-bottom: 15px; direction: ltr; }
.skill-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.skill-level { font-weight: 600; font-size: 14px; }
.skill-icon { font-size: 18px; }
.senior-icon { color: var(--senior-color); }
.mid-icon { color: var(--mid-color); }
.junior-icon { color: var(--junior-color); }
.learning-icon { color: var(--learning-color); }
.english-skill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.english-skill-tag {
    background-color: var(--light-accent);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    direction: ltr;
}
.language-item { margin-bottom: 20px; }
.language-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.language-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}
.language-flag {
    font-size: 24px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.language-skill {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}
.skill-name { width: 60px; }
.skill-bar {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}
.skill-progress {
    height: 100%;
    border-radius: 4px;
}
.english-progress { background-color: var(--english-color); }
.arabic-progress { background-color: var(--arabic-color); }
.skill-percent {
    font-size: 12px;
    color: var(--light-text);
}




.category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.project-category { margin-bottom: 20px; }
.project-container {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
.project-container.simple {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.project-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
}
.project-platform {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
}
.project-description {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.project-actions { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
}

.run-btn, .docs-btn, .github-btn {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    line-height: 1; 
    height: auto; 
    white-space: nowrap; 
}
.company-badge-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.company-badge-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}
.run-btn {
    background-color: #4caf50;
    color: white;
}
.run-btn:hover { background-color: #388e3c; }
.docs-btn, .github-btn {
    background-color: var(--secondary-color);
    color: white;
}
.docs-btn:hover, .github-btn:hover { background-color: var(--primary-color); }
.github-btn { background-color: #747272; }
.github-btn:hover { background-color: #000000; }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.tech-tag {
    background-color: var(--light-accent);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.project-gallery {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.gallery-item {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.gallery-item:hover { transform: scale(1.05); }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.project-status {
    display: inline-block;
    background-color: #e3f2fd;
    color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 5px;
}


.achievement-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.achievement-item .material-icons {
    color: var(--accent-color);
    font-size: 16px;
    margin-top: 3px;
}
.high-priority {
    background-color: rgba(255, 193, 7, 0.2);
    border-right: 3px solid #ffc107;
    padding-right: 10px;
}
.medium-priority {
    background-color: rgba(33, 150, 243, 0.1);
    border-right: 3px solid #2196f3;
    padding-right: 10px;
}
.normal-priority {
    background-color: rgba(255, 255, 255, 0.5);
    padding-right: 10px;
}
.goal-item, .soft-skill-item, .hard-skill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.goal-item .material-icons, .soft-skill-item .material-icons, .hard-skill-item .material-icons {
    color: var(--accent-color);
    font-size: 16px;
}
.highlight {
    background: linear-gradient(transparent 60%, rgba(92, 107, 192, 0.2) 40%);
    padding: 0 2px;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.4s;
}
@keyframes fadeIn { from {opacity: 0} to {opacity: 1} }
.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 20px;
    border: none;
    width: 80%;
    max-width: 700px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.4s;
    direction: rtl;
}
@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close:hover, .close:focus { color: var(--primary-color); }
.modal-body {
    font-size: 14px;
    line-height: 1.8;
}
.modal-body h3 {
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}
.modal-body p { margin-bottom: 10px; }
.modal-body ul {
    list-style-type: none;
    padding-right: 20px;
}
.modal-body li {
    position: relative;
    margin-bottom: 8px;
}
.modal-body li::before {
    content: "•";
    position: absolute;
    right: -15px;
    color: var(--accent-color);
    font-weight: bold;
}
.code-block {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 15px 0;
    direction: ltr;
}
.api-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}
.api-link:hover { text-decoration: underline; }


.image-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    animation: fadeIn 0.3s;
}
.image-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    height: 90%;
    max-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 0.3s;
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}
.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1002;
}
.image-modal-close:hover { color: #ccc; }


@media (max-width: 768px) {
    .poster-container { width: 100%; padding: 15px; }
    .grid-container { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .gallery-item { width: calc(50% - 5px); }
    .modal-content { width: 95%; margin: 10% auto; padding: 15px; }
    .image-modal-content { width: 95%; height: 80%; max-height: 80vh; }
    .image-modal-close { top: 10px; right: 15px; font-size: 30px; }
    .project-actions { flex-wrap: wrap; gap: 5px; }
    .run-btn, .docs-btn, .github-btn { padding: 6px 10px; font-size: 12px; }
    .project-title { font-size: 14px; }
    .project-platform { font-size: 12px; }
    .project-description { font-size: 12px; }
    .tech-tag { font-size: 10px; padding: 2px 6px; }
    .category-title { font-size: 14px; }
    .name { font-size: 24px; }
    .title { font-size: 16px; }
    .section-title { font-size: 16px; }
    .contact-item { font-size: 14px; }
    .skill-level { font-size: 12px; }
    .english-skill-tag { font-size: 11px; padding: 3px 8px; }
    .language-name { font-size: 14px; }
    .skill-name { width: 50px; font-size: 12px; }
    .skill-percent { font-size: 10px; }
    .degree, .job-title { font-size: 14px; }
    .university, .company { font-size: 12px; }
    .date { font-size: 11px; }
    .project-status { font-size: 10px; }
    .achievement-item { font-size: 14px; }
    .goal-item, .soft-skill-item, .hard-skill-item { font-size: 14px; }
    .modal-title { font-size: 18px; }
    .modal-body { font-size: 12px; }
    .modal-body h3 { font-size: 14px; }
    .code-block { font-size: 11px; }
}
@media (max-width: 480px) {
    .gallery-item { width: 100%; height: 150px; }
    .image-modal-content { width: 100%; height: 70%; max-height: 70vh; }
    .image-modal-close { top: 5px; right: 10px; font-size: 25px; }
    .header-card { flex-direction: column; text-align: center; }
    .photo-container { width: 100px; height: 100px; }
    .project-actions { flex-direction: column; width: 100%; }
    .run-btn, .docs-btn, .github-btn { width: 100%; justify-content: center; }
}
.achievements-card .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.25s ease;
    line-height: 1.95;
    position: relative;
    overflow: hidden;
}

.achievement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.achievement-item.high-priority {
    border-right: 4px solid #f59e0b;
    background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
}

.achievement-item.medium-priority {
    border-right: 4px solid #fbbf24;
    background: linear-gradient(180deg, #fffef9 0%, #fffdf4 100%);
}

.achievement-item.normal-priority {
    border-right: 4px solid #fde68a;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.achievement-star {
    position: relative;
    color: #fbbf24;
    font-size: 20px;
    min-width: 24px;
    margin-top: 2px;
    animation: starPulse 2.2s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.45))
            drop-shadow(0 0 10px rgba(250, 204, 21, 0.25));
}

.achievement-item.high-priority {
    border-right: 3px solid rgba(239, 68, 68, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.achievement-item.medium-priority {
    border-right: 3px solid rgba(59, 130, 246, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.achievement-item.normal-priority {
    border-right: 3px solid rgba(1, 7, 17, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fffefb 100%);
}.achievement-star::after {
    content: "✦";
    position: absolute;
    top: -6px;
    right: -4px;
    font-size: 10px;
    color: #fff7cc;
    opacity: 0.9;
    animation: sparkleTwinkle 1
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.fancy-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.title-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.company-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    background: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.university a,
.company a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.university a:hover,
.company a:hover {
    color: #2563eb;
}

.icon-school {
    color: #7c3aed;
}

.icon-briefcase {
    color: #d97706;
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .title-icon-box {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .timeline-card {
        padding: 18px;
    }

    .timeline-item {
        padding: 14px 14px 12px;
    }

    .mini-logo {
        width: 20px;
        height: 20px;
    }

    .degree,
    .job-title {
        font-size: 0.98rem;
    }
}
.mini-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.freelance-logo {
    color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.experience-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.experience-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.experience-box-bg {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}


.subsection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #0f172a;
}

.subsection-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.education-header .subsection-icon {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.work-header .subsection-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.experience-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 16px 16px 14px;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.education-item {
    border-right: 4px solid rgba(124, 58, 237, 0.24);
    background: linear-gradient(to left, rgba(245, 243, 255, 0.88), #ffffff 30%);
}

.work-item {
    border-right: 4px solid rgba(245, 158, 11, 0.24);
    background: linear-gradient(to left, rgba(255, 251, 235, 0.9), #ffffff 30%);
}

.experience-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    min-width: 0;
}

.item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.95;
    flex: 1;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.item-date {
    font-size: 0.88rem;
    color: #64748b;
    background: rgba(241, 245, 249, 0.95);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.item-org {
    color: #334155;
    line-height: 1.9;
    min-width: 0;
}

.company-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.company-line a {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.mini-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    background: #ffffff;
    padding: 2px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.mini-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.freelance-logo {
    color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.item-org a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-org a:hover {
    color: #2563eb;
}

.ltr-text {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    white-space: nowrap;
}

.experience-main-title .title-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.work-column .item-title {
    font-size: 0.97rem;
    letter-spacing: -0.1px;
}

.experience-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.experience-main-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.experience-box-bg {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.experience-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.experience-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subsection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 2px;
    color: #0f172a;
}

.subsection-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.education-header .subsection-icon {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.work-header .subsection-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.experience-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 16px 16px 14px;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.education-item {
    border-right: 4px solid rgba(124, 58, 237, 0.24);
    background: linear-gradient(to left, rgba(245, 243, 255, 0.88), #ffffff 30%);
}

.work-item {
    border-right: 4px solid rgba(245, 158, 11, 0.24);
    background: linear-gradient(to left, rgba(255, 251, 235, 0.9), #ffffff 30%);
}

.experience-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    min-width: 0;
}

.item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.95;
    flex: 1;
    min-width: 0;
    word-break: normal;
    overflow-wrap: break-word;
}

.item-date {
    font-size: 0.88rem;
    color: #64748b;
    background: rgba(241, 245, 249, 0.95);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.item-org {
    color: #334155;
    line-height: 1.9;
    min-width: 0;
}

.company-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.company-line a {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.mini-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    background: #ffffff;
    padding: 2px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.mini-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.freelance-logo {
    color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.item-org a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-org a:hover {
    color: #2563eb;
}

.ltr-text {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
    white-space: nowrap;
}

.work-item .item-title {
    font-size: 0.97rem;
    letter-spacing: -0.1px;
}

@media (max-width: 768px) {
    .experience-card {
        padding: 18px;
        border-radius: 20px;
    }

    .experience-stack {
        gap: 20px;
    }

    .experience-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .item-title,
    .work-item .item-title {
        font-size: 0.96rem;
        line-height: 1.9;
    }

    .mini-logo {
        width: 20px;
        height: 20px;
    }

    .company-line {
        flex-wrap: wrap;
    }
}


@media (max-width: 768px) {
    .experience-card {
        padding: 18px;
        border-radius: 20px;
    }

    .experience-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .item-title,
    .work-column .item-title {
        font-size: 0.96rem;
        line-height: 1.9;
    }

    .mini-logo {
        width: 20px;
        height: 20px;
    }

    .experience-main-title .title-icon-box {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .company-line {
        flex-wrap: wrap;
    }
}



.projects-section {
    padding: 24px;
}

.project-category-modern {
    margin-bottom: 40px;
}

.category-header-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-icon-modern {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.corporate-cat-icon { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0284c7; }
.freelance-cat-icon { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #16a34a; }
.edu-cat-icon { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #9333ea; }
.other-cat-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }

.category-title-modern {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.category-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #cbd5e1, transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.modern-project-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 18px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.corporate-card {
    border-right: 4px solid #3b82f6;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.project-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 1.2rem;
}

.project-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    flex: 1;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed #94a3b8;
}

.project-title a:hover {
    color: #2563eb;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
}

.company-logo-small {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e0cb06;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.project-link-btn:hover {
    background: #dbdf03;
    border-color: #cbd5e1;
}


.github-link {
    background-color: #181717;
    color: white;
    border-color: #333;
}
.github-link:hover {
    background-color: #2c2c2c;
    color: white;
}


.run-link {
    background-color: #059669;
    color: white;
    border-color: #047857;
}
.run-link:hover {
    background-color: #047857;
    color: white;
}


.docs-btn-style {
    background-color: #3b82f6;
    color: white;
    border-color: #2563eb;
}
.docs-btn-style:hover {
    background-color: #2563eb;
    color: white;
}

.project-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #334155;
}

.tech-tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tags-modern span {
    background: #eef2ff;
    color: #1e40af;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 500;
}

.project-gallery-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.gallery-item-modern {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    cursor: pointer;
}

.gallery-item-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-modern:hover {
    transform: scale(1.05);
}

.gallery-placeholder {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    width: 100%;
}

.project-status-modern {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 30px;
    align-self: flex-start;
    margin-top: 6px;
}


@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .project-links {
        margin-top: 6px;
    }
    .project-gallery-modern {
        justify-content: center;
    }
}

.last-update {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    margin-top: 20px;
    width: 100%;
}
.last-update i {
    margin-left: 6px;
    color: #94a3b8;
}


/* دکمه جزئیات فنی */
.details-btn {
    background-color: #4f46e5;
    color: white;
    border-color: #4338ca;
}
.details-btn:hover {
    background-color: #4338ca;
    color: white;
}

/* بخش‌های داخل مودال جزئیات فنی */
.project-detail-section {
    margin-bottom: 18px;
}
.project-detail-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-right: 3px solid #3b82f6;
    padding-right: 10px;
}
.project-detail-text {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 10px;
    padding-right: 13px;
}
.project-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.pdf-export-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
}

.pdf-export-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.pdf-export-btn i {
    font-size: 1.2rem;
}

.pdf-export-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.4);
}


