﻿@font-face {
    font-family: "IRANSansX";
    src: url("/font/IRANSansXFaNum-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "IRANSansX";
    src: url("/font/IRANSansXFaNum-Black.woff") format("woff");
    font-weight: 900;
    font-style: normal;
}

html, body {
    font-family: "IRANSansX" !important;
    font-size: 16px;
}

p {
    line-height: 2;
    margin-bottom: 0;
}

.tag {
    display: inline-block;
    border-radius: 5px;
    padding: 0.2em 0.5em 0.2em;
    background: #808080;
    color: white;
    font-size: 14px;
}

.button-normal {
    color: white;
    background: #1e3799;
    font-family: "IRANSansX" !important;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.h_iframe-aparat_embed_frame {
    position: relative;
}

    .h_iframe-aparat_embed_frame .ratio {
        display: block;
        width: 100%;
        height: auto;
    }

    .h_iframe-aparat_embed_frame iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

pre code.ltr {
    direction: ltr;
    text-align: left;
}

pre code.hljs {
    direction: ltr;
    text-align: left;
}

.badge-project {
    font-size: 12px;
    background-color: #cfe2ff;
    border-color: #9ec5fe;
    color: black;
    direction: ltr;
}

.list-group {
    padding-right: 0;
}

.list-group-item {
    font-size: 12px;
}

.h_iframe-aparat_embed_frame {
    position: relative;
}

    .h_iframe-aparat_embed_frame .ratio {
        display: block;
        width: 100%;
        height: auto;
    }

    .h_iframe-aparat_embed_frame iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.skills-animation {
    padding: 10px 0;
}

.skill-item {
    margin-bottom: 1.2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 5px;
}

.skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333; /* رنگ متن نام مهارت */
}

/* استایل لیبل سطح (متخصص، پیشرفته و...) */
.skill-level-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* رنگ‌بندی سطوح مختلف */
.level-expert {
    background-color: #6f42c1; /* بنفش تیره - متخصص */
}

.level-advanced {
    background-color: #20c997; /* سبز آبی - پیشرفته */
}

.level-intermediate {
    background-color: #fd7e14; /* نارنجی - متوسط */
}

.level-basic {
    background-color: #6c757d; /* خاکستری - مقدماتی */
}

.skill-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
    position: relative;
}

    .progress-bar.expert-bar {
        background: linear-gradient(90deg, #6f42c1, #a66efa);
    }

    .progress-bar.advanced-bar {
        background: linear-gradient(90deg, #20c997, #6ee7b9);
    }

    .progress-bar.intermediate-bar {
        background: linear-gradient(90deg, #fd7e14, #ffad60);
    }

    .progress-bar.basic-bar {
        background: linear-gradient(90deg, #6c757d, #adb5bd);
    }

.progress-bar {
    width: 0;
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    to {
        width: var(--target-width);
    }
}
