/*
Theme Name: Hadi Portfolio
Theme URI: https://hadionlines.ir/
Author: Hadi Hosseini
Description: قالب شخصی و رزومه‌ای فارسی، RTL و واکنش‌گرا برای سید محمد هادی حسینی.
Version: 4.1.0
Text Domain: hadi-portfolio
*/


/* =========================================================
   فونت
   ========================================================= */

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   متغیرهای اصلی قالب
   ========================================================= */

:root {

    --bg: #080b0f;
    --panel: #10151a;
    --panel2: #151b21;

    --gold: #d9ad5a;
    --gold2: #f4d083;
    --gold3: #b98a36;

    --text: #f7f8fa;
    --muted: #aeb6bf;

    --light: #f6f3ed;
    --ink: #17191d;

    --border: rgba(255,255,255,.10);
    --border-light: rgba(0,0,0,.08);

    --gold-border: rgba(217,173,90,.22);
    --gold-glow: rgba(217,173,90,.12);

    --radius: 22px;

    --shadow:
        0 18px 55px rgba(0,0,0,.18);

    --font-body: 15px;
    --font-menu: 13px;

    --font-hero-name:
        clamp(40px, 5vw, 70px);

    --font-hero-title:
        clamp(18px, 2.2vw, 27px);

    --font-hero-text: 15px;

    --font-section-title: 36px;
    --font-section-text: 14px;

    --font-card-title: 18px;
    --font-card-text: 13px;

    --font-logo: 15px;
}


/* =========================================================
   تنظیمات پایه و حذف فاصله‌های پیش‌فرض
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {

    margin: 0;

    font-family:
        'Vazirmatn',
        Tahoma,
        Arial,
        sans-serif;

    background:
        var(--bg);

    color:
        var(--text);

    direction:
        rtl;

    line-height:
        1.95;

    font-size:
        var(--font-body);
}

body,
button,
input,
textarea,
select {

    font-family:
        'Vazirmatn',
        Tahoma,
        Arial,
        sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {

    max-width: 100%;

    height: auto;

    display: block;
}

button,
input,
textarea,
select {
    font-size: inherit;
}

ul,
ol {

    margin: 0;

    padding: 0;
}

.container {

    width:
        min(1180px, 92%);

    margin-left:
        auto;

    margin-right:
        auto;
}


/* =========================================================
   هدر سایت
   ========================================================= */

.site-header {

    position:
        absolute;

    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    border-bottom:
        1px solid rgba(255,255,255,.08);

    background:
        rgba(7,10,13,.55);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}

.site-header .nav {

    min-height:
        82px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        35px;
}


/* =========================================================
   لوگوی سایت
   ========================================================= */

.logo {

    flex:
        0 0 auto;

    display:
        inline-flex;

    align-items:
        center;

    white-space:
        nowrap;

    font-size:
        var(--font-logo);

    font-weight:
        900;

    letter-spacing:
        .8px;

    color:
        #fff;

    position:
        relative;

    top:
        5px;

    transition:
        color .25s ease,
        transform .25s ease;
}

.logo span {

    color:
        var(--gold2);

    margin-right:
        4px;
}

.logo:hover {

    color:
        var(--gold2);

    transform:
        translateY(-1px);
}


/* =========================================================
   منوی اصلی سایت
   ========================================================= */

.main-navigation {

    margin-right:
        auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    min-width:
        0;
}

.main-navigation .menu-list {

    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        12px;

    margin:
        0;

    padding:
        0;

    list-style:
        none;
}

.main-navigation .menu-list li {

    position:
        relative;

    margin:
        0;

    padding:
        0;

    list-style:
        none;
}

.main-navigation .menu-list li a {

    position:
        relative;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        44px;

    padding:
        0 18px;

    white-space:
        nowrap;

    color:
        #e9edf1;

    font-size:
        var(--font-menu);

    font-weight:
        500;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius:
        12px;

    background:
        rgba(255,255,255,.025);

    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.main-navigation .menu-list li a:hover {

    color:
        var(--gold2);

    background:
        rgba(217,173,90,.08);

    border-color:
        rgba(217,173,90,.38);

    box-shadow:
        0 7px 20px rgba(0,0,0,.18);

    transform:
        translateY(-2px);
}

.main-navigation .menu-list li.active a,
.main-navigation .menu-list li.current-menu-item a {

    color:
        #151515;

    background:
        linear-gradient(
            135deg,
            var(--gold2),
            var(--gold)
        );

    border-color:
        var(--gold2);

    font-weight:
        700;

    box-shadow:
        0 7px 22px rgba(217,173,90,.20);
}

.main-navigation .menu-list li.active a:hover,
.main-navigation .menu-list li.current-menu-item a:hover {

    color:
        #151515;

    background:
        linear-gradient(
            135deg,
            var(--gold2),
            var(--gold)
        );

    border-color:
        var(--gold2);

    transform:
        translateY(-2px);

    box-shadow:
        0 11px 28px rgba(217,173,90,.28);
}


/* =========================================================
   بخش معرفی اصلی سایت
   ========================================================= */

.hero {

    min-height:
        790px;

    display:
        flex;

    align-items:
        center;

    position:
        relative;

    overflow:
        hidden;

    background:

        radial-gradient(
            circle at 78% 32%,
            rgba(217,173,90,.16),
            transparent 25%
        ),

        radial-gradient(
            circle at 20% 80%,
            rgba(70,110,150,.08),
            transparent 28%
        ),

        #080b0f;
}

.hero::before {

    content:
        "";

    position:
        absolute;

    width:
        520px;

    height:
        520px;

    border:
        1px solid rgba(217,173,90,.10);

    border-radius:
        50%;

    left:
        -230px;

    bottom:
        -250px;

    box-shadow:

        0 0 0 55px
        rgba(217,173,90,.025),

        0 0 0 110px
        rgba(217,173,90,.018);
}

.hero::after {

    content:
        "";

    position:
        absolute;

    inset:
        0;

    background:

        linear-gradient(
            90deg,
            rgba(5,7,8,.99) 0%,
            rgba(5,7,8,.86) 43%,
            rgba(5,7,8,.20) 100%
        );

    pointer-events:
        none;
}

.hero-grid {

    position:
        relative;

    z-index:
        1;

    display:
        grid;

    grid-template-columns:
        1.05fr .95fr;

    align-items:
        center;

    gap:
        65px;

    padding-top:
        80px;
}


/* =========================================================
   برچسب بالای عنوان
   ========================================================= */

.eyebrow {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        9px;

    color:
        var(--gold2);

    font-size:
        15px;

    font-weight:
        800;

    margin-bottom:
        12px;

    padding:
        7px 13px;

    border:
        1px solid rgba(217,173,90,.24);

    background:
        rgba(217,173,90,.06);

    border-radius:
        999px;
}

.eyebrow::before {

    content:
        "";

    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        var(--gold2);

    box-shadow:
        0 0 14px rgba(244,208,131,.8);
}


/* =========================================================
   تایپوگرافی بخش معرفی اصلی
   ========================================================= */

.hero h1 {

    font-size:
        var(--font-hero-name);

    line-height:
        1.2;

    margin:
        0 0 12px;

    font-weight:
        900;

    letter-spacing:
        -1.4px;
}

.hero h2 {

    font-size:
        var(--font-hero-title);

    font-weight:
        500;

    color:
        var(--gold2);

    margin:
        0 0 20px;

    line-height:
        1.7;
}

.hero p {

    color:
        #c9d0d6;

    max-width:
        650px;

    font-size:
        var(--font-hero-text);

    line-height:
        2.15;
}


/* =========================================================
   دکمه‌های سایت
   ========================================================= */

.buttons {

    display:
        flex;

    gap:
        12px;

    flex-wrap:
        wrap;

    margin-top:
        40px;
}

.btn {

    position:
        relative;

    overflow:
        hidden;

    min-width:
        135px;

    padding:
        12px 24px;

    text-align:
        center;

    border-radius:
        12px;

    border:
        1px solid rgba(217,173,90,.8);

    font-weight:
        800;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    transition:
        .28s;
}

.btn::before {

    content:
        "";

    position:
        absolute;

    inset:
        0;

    background:

        linear-gradient(
            120deg,
            transparent 25%,
            rgba(255,255,255,.16),
            transparent 70%
        );

    transform:
        translateX(-120%);

    transition:
        .5s;
}

.btn:hover::before {

    transform:
        translateX(120%);
}

.btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 28px rgba(0,0,0,.22);
}

.btn.primary {

    background:

        linear-gradient(
            135deg,
            var(--gold2),
            var(--gold)
        );

    color:
        #151515;

    box-shadow:
        0 9px 25px
        rgba(217,173,90,.17);
}

.btn.primary:hover {

    box-shadow:
        0 14px 32px
        rgba(217,173,90,.28);
}

.btn.secondary {

    color:
        #fff;

    background:
        rgba(255,255,255,.025);

    border-color:
        rgba(255,255,255,.20);
}

.btn.secondary:hover {

    border-color:
        rgba(217,173,90,.7);

    color:
        var(--gold2);

    background:
        rgba(217,173,90,.06);
}


/* =========================================================
   تصویر بخش معرفی اصلی
   ========================================================= */

.hero-image {

    position:
        relative;
}

.hero-image::before {

    content:
        "";

    position:
        absolute;

    inset:
        -14px;

    border:
        1px solid rgba(217,173,90,.16);

    border-radius:
        34px;

    transform:
        rotate(2deg);

    z-index:
        -1;
}

.hero-image::after {

    content:
        "";

    position:
        absolute;

    inset:
        14px;

    background:

        linear-gradient(
            135deg,
            rgba(217,173,90,.15),
            transparent 35%,
            rgba(255,255,255,.03)
        );

    border-radius:
        24px;

    pointer-events:
        none;
}

.hero-image img {

    width:
        100%;

    border-radius:
        26px;

    box-shadow:
        0 30px 90px rgba(0,0,0,.55);

    border:
        1px solid rgba(255,255,255,.12);
}


/* =========================================================
   آمار صفحه اصلی
   کادرهای آمار با ظاهر شیشه‌ای طلایی و اندازه جمع‌وجور نمایش داده می‌شوند.
   ========================================================= */

.stats {

    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        14px;

    margin-top:
        28px;

    max-width:
        680px;

    width:
        100%;
}


/* =========================================================
   کادر آمار
   این بخش اندازه، فاصله داخلی و چیدمان هر کادر آماری را کنترل می‌کند.
   ========================================================= */

.stat {

    position:
        relative;

    min-width:
        0;

    min-height:
        128px;

    padding:
        20px 22px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    overflow:
        hidden;

    text-align:
        right;

    border:
        1px solid
        rgba(217,173,90,.18);

    border-radius:
        18px;

    background:

        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    box-shadow:

        0 12px 30px
        rgba(0,0,0,.20),

        inset 0 1px 0
        rgba(255,255,255,.06);

    transition:

        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}


/* =========================================================
   افکت نور طلایی
   ========================================================= */

.stat::before {

    content:
        "";

    position:
        absolute;

    width:
        150px;

    height:
        150px;

    top:
        -90px;

    right:
        -70px;

    border-radius:
        50%;

    background:

        radial-gradient(
            circle,
            rgba(217,173,90,.12),
            transparent 70%
        );

    pointer-events:
        none;
}


/* =========================================================
   خط طلایی بالای بخش
   ========================================================= */

.stat::after {

    content:
        "";

    position:
        absolute;

    top:
        0;

    right:
        24px;

    left:
        24px;

    height:
        1px;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(244,208,131,.55),
            transparent
        );

    opacity:
        .7;
}


/* =========================================================
   افکت حرکت روی کادر آمار
   ========================================================= */

.stat:hover {

    transform:
        translateY(-4px);

    border-color:
        rgba(217,173,90,.38);

    background:

        linear-gradient(
            145deg,
            rgba(217,173,90,.09),
            rgba(255,255,255,.025)
        );

    box-shadow:

        0 18px 38px
        rgba(0,0,0,.28),

        0 0 25px
        rgba(217,173,90,.06),

        inset 0 1px 0
        rgba(255,255,255,.10);
}


/* =========================================================
   عنوان مقدار آماری
   مقدار اصلی مانند ۱۰۰۰+ با رنگ طلایی و وزن بیشتر نمایش داده می‌شود.
   ========================================================= */

.stat strong {

    position:
        relative;

    z-index:
        2;

    display:
        block;

    margin:
        0 0 3px;

    color:
        var(--gold2);

    font-size:
        19px;

    font-weight:
        900;

    line-height:
        1.5;

    white-space:
        normal;

    word-break:
        normal;

    transition:
        color .25s ease,
        text-shadow .25s ease;
}

.stat:hover strong {

    color:
        #fff;

    text-shadow:
        0 0 15px
        rgba(244,208,131,.22);
}


/* =========================================================
   توضیحات کادر آمار
   ========================================================= */

.stat small {

    position:
        relative;

    z-index:
        2;

    display:
        block;

    color:
        #b9c0c7;

    font-size:
        11px;

    font-weight:
        500;

    line-height:
        1.8;

    white-space:
        normal;

    word-break:
        normal;

    transition:
        color .25s ease;
}

.stat:hover small {

    color:
        #e3e6e9;
}


/* =========================================================
   سال کادر آمار
   ========================================================= */

.stat .stat-year {

    position:
        relative;

    z-index:
        2;

    display:
        inline-flex;

    align-items:
        center;

    width:
        fit-content;

    margin-top:
        6px;

    padding:
        2px 8px;

    border-radius:
        999px;

    border:
        1px solid
        rgba(217,173,90,.20);

    background:
        rgba(217,173,90,.055);

    color:
        var(--gold2);

    font-size:
        9px;

    font-weight:
        700;

    line-height:
        1.6;
}


/* =========================================================
   آیکن کادر آمار
   ========================================================= */

.stat .stat-icon {

    position:
        absolute;

    top:
        50%;

    left:
        20px;

    transform:
        translateY(-50%);

    width:
        44px;

    height:
        44px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    border:
        1px solid
        rgba(217,173,90,.24);

    background:
        rgba(217,173,90,.055);

    color:
        var(--gold2);

    font-size:
        18px;

    box-shadow:
        0 0 18px
        rgba(217,173,90,.05);

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.stat:hover .stat-icon {

    transform:
        translateY(-50%)
        scale(1.05);

    background:
        rgba(217,173,90,.10);

    box-shadow:
        0 0 24px
        rgba(217,173,90,.10);
}


/* =========================================================
   بخش‌های اصلی صفحه
   ========================================================= */

.section {

    padding:
        100px 0;
}

.section.light {

    position:
        relative;

    background:
        var(--light);

    color:
        var(--ink);
}

.section.light::before {

    content:
        "";

    position:
        absolute;

    top:
        0;

    left:
        0;

    right:
        0;

    height:
        1px;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(0,0,0,.12),
            transparent
        );
}


/* =========================================================
   عنوان بخش‌ها
   ========================================================= */

.section-title {

    text-align:
        center;

    margin-bottom:
        48px;
}

.section-title span {

    display:
        inline-block;

    color:
        var(--gold3);

    font-size:
        11px;

    font-weight:
        900;

    letter-spacing:
        1.5px;

    border:
        1px solid
        rgba(185,138,54,.25);

    padding:
        4px 11px;

    border-radius:
        999px;

    background:
        rgba(185,138,54,.06);
}

.section-title h2 {

    font-size:
        var(--font-section-title);

    margin:
        10px 0 7px;

    font-weight:
        900;

    letter-spacing:
        -.5px;
}

.section-title p {

    color:
        #73777b;

    max-width:
        650px;

    margin:
        auto;

    font-size:
        var(--font-section-text);
}


/* =========================================================
   بخش درباره من
   ========================================================= */

.about {

    display:
        grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap:
        55px;

    align-items:
        center;
}

.about-box {

    position:
        relative;

    overflow:
        hidden;

    background:

        linear-gradient(
            145deg,
            #11161b,
            #0c1014
        );

    border:
        1px solid
        var(--border);

    border-radius:
        24px;

    padding:
        36px;

    box-shadow:
        var(--shadow);

    color:
        #f5f6f7;
}

.about-box::before {

    content:
        "";

    position:
        absolute;

    top:
        0;

    right:
        0;

    width:
        110px;

    height:
        4px;

    background:

        linear-gradient(
            90deg,
            transparent,
            var(--gold2)
        );

    border-radius:
        0 0 0 8px;
}

.about-box h2 {

    font-size:
        32px;

    margin-top:
        0;

    font-weight:
        900;
}

.about-box p {

    color:
        #c4cbd1;
}

.about > div:last-child {

    font-size:
        var(--font-section-text);

    line-height:
        2.25;
}


/* =========================================================
   برچسب‌های مهارت
   ========================================================= */

.tags {

    display:
        flex;

    gap:
        8px;

    flex-wrap:
        wrap;

    margin-top:
        22px;
}

.tag {

    border:
        1px solid #3a4148;

    border-radius:
        999px;

    padding:
        5px 12px;

    color:
        #e3e6e9;

    font-size:
        12px;

    background:
        rgba(255,255,255,.025);

    transition:
        .2s;
}

.tag:hover {

    border-color:
        var(--gold);

    color:
        var(--gold2);

    transform:
        translateY(-2px);
}


/* =========================================================
   کارت‌های خدمات و مهارت
   ========================================================= */

.cards {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:
        18px;
}

.card {

    position:
        relative;

    overflow:
        hidden;

    background:
        rgba(255,255,255,.88);

    border:
        1px solid #e4e0d8;

    border-radius:
        20px;

    padding:
        28px;

    transition:
        .3s;
}

.card::before {

    content:
        "";

    position:
        absolute;

    top:
        0;

    right:
        0;

    left:
        0;

    height:
        3px;

    background:

        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );

    transform:
        scaleX(.25);

    transition:
        .3s;
}

.card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 18px 45px
        rgba(0,0,0,.11);

    border-color:
        rgba(185,138,54,.35);
}

.card:hover::before {

    transform:
        scaleX(1);
}

.card .icon {

    width:
        52px;

    height:
        52px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        25px;

    color:
        var(--gold3);

    margin-bottom:
        16px;

    border-radius:
        15px;

    background:
        rgba(185,138,54,.08);

    border:
        1px solid
        rgba(185,138,54,.18);
}

.card h3 {

    margin:
        0 0 8px;

    font-size:
        var(--font-card-title);

    font-weight:
        900;
}

.card p {

    margin:
        0;

    color:
        #6d7277;

    font-size:
        var(--font-card-text);

    line-height:
        2;
}


/* =========================================================
   بخش تماس
   ========================================================= */

.contact {

    text-align:
        center;

    background:

        radial-gradient(
            circle at 50% 0,
            rgba(217,173,90,.10),
            transparent 34%
        ),

        linear-gradient(
            135deg,
            #11161a,
            #080b0f
        );
}

.contact h2 {

    font-size:
        var(--font-section-title);

    font-weight:
        900;
}

.contact .section-title p {

    color:
        #aeb6bf;
}


/* =========================================================
   فوتر سایت
   ========================================================= */

.site-footer {

    padding:
        30px 0;

    border-top:
        1px solid
        var(--border);

    color:
        #929aa2;

    text-align:
        center;

    font-size:
        12px;

    background:
        #07090c;
}


/* =========================================================
   تنظیمات تبلت
   ========================================================= */

@media (max-width: 900px) {

    .site-header .nav {

        min-height:
            76px;

        gap:
            20px;
    }

    .main-navigation .menu-list {

        gap:
            7px;
    }

    .main-navigation .menu-list li a {

        min-height:
            40px;

        padding:
            0 12px;

        font-size:
            12px;

        border-radius:
            10px;
    }

    .hero-grid,
    .about {

        grid-template-columns:
            1fr;
    }

    .hero {

        min-height:
            auto;

        padding-bottom:
            70px;
    }

    .hero-image {

        order:
            -1;

        padding-top:
            42px;

        max-width:
            650px;

        margin-left:
            auto;

        margin-right:
            auto;
    }

    .cards {

        grid-template-columns:
            repeat(2,1fr);
    }

    /* تحصیلات و آمار */

    .stats {

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap:
            12px;

        max-width:
            620px;

        margin-top:
            26px;
    }

    .stat {

        min-height:
            120px;

        padding:
            18px 19px;

        border-radius:
            17px;
    }

    .stat strong {

        font-size:
            18px;
    }

    .stat small {

        font-size:
            10.5px;
    }

    .stat .stat-year {

        font-size:
            9px;
    }
}


/* =========================================================
   تنظیمات موبایل
   ========================================================= */

@media (max-width: 600px) {

    .site-header .nav {

        min-height:
            66px;

        gap:
            10px;

        padding-top:
            8px;

        padding-bottom:
            8px;
    }

    .logo {

        font-size:
            12px;

        letter-spacing:
            .2px;
    }

    .main-navigation {

        flex:
            1;

        min-width:
            0;

        margin-right:
            0;

        overflow:
            visible;
    }

    .main-navigation .menu-list {

        width:
            100%;

        display:
            flex;

        align-items:
            center;

        justify-content:
            flex-end;

        gap:
            4px;

        flex-wrap:
            nowrap;
    }

    .main-navigation .menu-list li {

        flex:
            0 0 auto;
    }

    .main-navigation .menu-list li a {

        min-height:
            34px;

        padding:
            0 6px;

        font-size:
            13px;

        border-radius:
            8px;
    }

    .hero-grid {

        padding-top:
            92px;

        gap:
            38px;
    }

    .hero-image {

        padding-top:
            28px;
    }

    .hero-image::before {

        inset:
            -7px;

        border-radius:
            24px;
    }

    .hero-image img {

        border-radius:
            20px;
    }

    .hero h1 {

        font-size:
            38px;

        letter-spacing:
            -.8px;
    }

    .hero h2 {

        font-size:
            18px;
    }

    .hero p {

        font-size:
            14px;
    }

    .buttons {

        gap:
            9px;
    }

    .btn {

        min-width:
            125px;

        padding:
            11px 18px;

        font-size:
            13px;
    }


    /* تحصیلات و آمار */

    .stats {

        grid-template-columns:
            1fr;

        gap:
            10px;

        margin-top:
            24px;

        max-width:
            100%;
    }

    .stat {

        min-height:
            108px;

        padding:
            17px 18px;

        border-radius:
            16px;
    }

    .stat strong {

        font-size:
            18px;

        line-height:
            1.5;
    }

    .stat small {

        font-size:
            11px;

        line-height:
            1.75;

        max-width:
            82%;
    }

    .stat .stat-year {

        margin-top:
            4px;

        font-size:
            9px;
    }

    .stat .stat-icon {

        left:
            16px;

        width:
            42px;

        height:
            42px;

        font-size:
            17px;
    }


    /* بخش‌های اصلی صفحه */

    .section {

        padding:
            70px 0;
    }

    .section-title h2,
    .contact h2 {

        font-size:
            27px;
    }

    .about {

        gap:
            30px;
    }

    .about-box {

        padding:
            27px;
    }

    .about-box h2 {

        font-size:
            27px;
    }

    .cards {

        grid-template-columns:
            1fr;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   320px - 420px
   ========================================================= */

@media (max-width: 420px) {

    .site-header .nav {

        min-height:
            62px;

        gap:
            6px;

        padding-top:
            7px;

        padding-bottom:
            7px;

        position:
            relative;
    }

    .logo {

        position:
            absolute;

        left:
            50%;

        top:
            5px;

        transform:
            translateX(-50%);

        display:
            inline-flex;

        align-items:
            center;

        justify-content:
            center;

        min-width:
            230px;

        height:
            38px;

        padding:
            0 24px;

        border-radius:
            8px;

        background:

            linear-gradient(
                135deg,
                rgba(255,255,255,0.16),
                rgba(255,255,255,0.05)
            );

        border:
            1px solid
            rgba(255,255,255,0.28);

        box-shadow:

            0 6px 20px
            rgba(0,0,0,0.18),

            inset 0 1px 0
            rgba(255,255,255,0.18);

        backdrop-filter:
            blur(10px);

        -webkit-backdrop-filter:
            blur(10px);

        color:
            #ffffff;

        font-size:
            14px;

        font-weight:
            700;

        letter-spacing:
            .2px;

        text-decoration:
            none;

        white-space:
            nowrap;

        z-index:
            20;
    }

    .logo::before {

        content:
            "";

        position:
            absolute;

        top:
            -1px;

        left:
            18px;

        right:
            18px;

        height:
            3px;

        border-radius:
            0 0 6px 6px;

        background:

            linear-gradient(
                90deg,
                var(--gold3),
                var(--gold2),
                var(--gold3)
            );
    }

    .logo::after {

        content:
            "";

        width:
            7px;

        height:
            7px;

        margin-right:
            9px;

        border-radius:
            50%;

        background:
            var(--gold2);

        box-shadow:
            0 0 8px
            rgba(244,208,131,.75);
    }

    .logo:hover {

        transform:
            translateX(-50%)
            translateY(-2px);

        background:

            linear-gradient(
                135deg,
                rgba(255,255,255,0.22),
                rgba(255,255,255,0.08)
            );

        box-shadow:

            0 9px 26px
            rgba(0,0,0,0.24),

            0 0 18px
            rgba(217,173,90,.12);
    }

    .main-navigation {

        flex:
            1;

        min-width:
            0;
    }

    .main-navigation .menu-list {

        display:
            flex;

        align-items:
            center;

        justify-content:
            flex-end;

        gap:
            4px;

        width:
            100%;

        margin:
            0;

        padding:
            0;

        list-style:
            none;
    }

    .main-navigation .menu-list li {

        flex:
            0 0 auto;

        margin:
            0;

        padding:
            0;

        list-style:
            none;

        top:
            27px;
    }

    .main-navigation .menu-list li a {

        display:
            inline-flex;

        align-items:
            center;

        justify-content:
            center;

        min-height:
            34px;

        padding:
            0 6px;

        font-size:
            13px;

        font-weight:
            500;

        line-height:
            1.4;

        white-space:
            nowrap;

        border-radius:
            8px;

        border:
            1px solid transparent;
    }

    .main-navigation .menu-list li.active a,
    .main-navigation .menu-list li.current-menu-item a {

        font-weight:
            700;

        color:
            #151515;

        background:

            linear-gradient(
                135deg,
                var(--gold2),
                var(--gold)
            );

        border-color:
            var(--gold2);
    }

    .main-navigation .menu-list li a:hover {

        color:
            var(--gold2);

        background:
            rgba(217,173,90,.08);

        border-color:
            rgba(217,173,90,.25);
    }


    /* بخش معرفی اصلی */

    .hero-grid {

        padding-top:
            95px;

        gap:
            30px;
    }

    .hero-image {

        padding-top:
            22px;
    }

    .hero h1 {

        font-size:
            32px ;

        line-height:
            1.3;

        letter-spacing:
            -.5px;
    }

    .hero h2 {

        font-size:
            14px !important;

        line-height:
            1.7;
    }

    .hero p {

        font-size:
            13px;

        line-height:
            2;
    }


    /* دکمه‌ها */

    .buttons {

        gap:
            8px;

        margin-top:
            40px;
    }

    .btn {

        min-width:
            115px;

        padding:
            10px 15px;

        font-size:
            12px;

        border-radius:
            10px;
    }


    /* تحصیلات و آمار */

    .stats {

        grid-template-columns:
            1fr;

        gap:
            9px;

        margin-top:
            20px;
    }

    .stat {

        min-height:
            102px;

        padding:
            16px 16px;

        border-radius:
            15px;
    }

    .stat strong {

        font-size:
            17px;

        line-height:
            1.45;
    }

    .stat small {

        font-size:
            10px;

        line-height:
            1.75;

        max-width:
            80%;
    }

    .stat .stat-year {

        font-size:
            8px;

        padding:
            2px 7px;
    }

    .stat .stat-icon {

        left:
            13px;

        width:
            38px;

        height:
            38px;

        font-size:
            15px;
    }


    /* بخش‌های اصلی صفحه */

    .section {

        padding:
            60px 0;
    }

    .section-title {

        margin-bottom:
            32px;
    }
    .section-title h2,
    .contact h2 {

        font-size:
            27px;

        line-height:
            1.5;
    }

    .section-title p {

        font-size:
            12px;

        line-height:
            2;
    }


    /* درباره من */

    .about {

        gap:
            25px;
    }

    .about-box {

        padding:
            23px;

        border-radius:
            20px;
    }

    .about-box h2 {

        font-size:
            24px;
    }

    .about-box p {

        font-size:
            13px;

        line-height:
            2.1;
    }


    /* کارت‌های خدمات و مهارت */

    .cards {

        grid-template-columns:
            1fr;

        gap:
            14px;
    }

    .card {

        padding:
            22px;

        border-radius:
            18px;
    }

    .card h3 {

        font-size:
            16px;
    }

    .card p {

        font-size:
            12px;

        line-height:
            2;
    }


    /* فوتر سایت */

    .site-footer {

        padding:
            25px 0;

        font-size:
            11px;
    }
}


/* =========================================================
   دسترس‌پذیری
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;
    }
}

/* =========================================================
   رزومه، سوابق تحصیلی و سوابق شغلی؛ تایم‌لاین راست‌چین
   ========================================================= */
.resume-section {
    background: var(--light);
    color: var(--ink);
    padding-top: 78px;
    padding-bottom: 78px;

}

.resume-section-title {
    margin-bottom: 30px;

}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.resume-column {
    background: #fff;
    border: 1px solid rgba(23,25,29,.08);
    border-radius: 20px;
    padding: 24px 22px 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,.055);
    min-width: 0;
}

.resume-column-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 17px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(23,25,29,.07);
}

.resume-column-head h3 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

.resume-column-head > div > span {
    display: block;
    color: #8a9198;
    font-size: 11.5px;
    line-height: 1.8;
}

.resume-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(217,173,90,.11);
    color: var(--gold3);
    border: 1px solid rgba(217,173,90,.24);
    font-size: 20px;
}

.resume-timeline {
    position: relative;
    margin-top: 8px;
}

.resume-timeline::before {
    content: "";
    position: absolute;
    top: 27px;
    bottom: 27px;
    right: 39px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(217,173,90,.42), rgba(217,173,90,.12));
}

.resume-item {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    align-items: start;
}

.resume-year-wrap {
    position: relative;
    z-index: 2;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
}

.resume-dot {
    width: 11px;
    height: 11px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--gold3);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(217,173,90,.45);
}

.resume-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 7px;
    border-radius: 8px;
    background: #fffaf0;
    color: var(--gold3);
    border: 1px solid rgba(217,173,90,.22);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
}

.resume-item-body {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(23,25,29,.07);
    border-radius: 14px;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.resume-item-body:hover {
    transform: translateY(-2px);
    border-color: rgba(217,173,90,.35);
    box-shadow: 0 8px 22px rgba(0,0,0,.055);
}

.resume-item-body h4 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 800;
}

.resume-item-body p,
.resume-item-body small {
    display: block;
    margin: 0;
    color: #6f7780;
    font-size: 12px;
    line-height: 1.9;
}

.resume-item-body .resume-field {
    color: var(--gold3);
    font-weight: 700;
}

/* =========================================================
   تصویر بنر مهارت‌های تخصصی
   تصویر اصلی بخش مهارت‌های تخصصی باید در دسکتاپ بزرگ و در موبایل متناسب با کادر باشد.
   ========================================================= */
.expertise-feature-image {
    margin: 0 auto 24px;
    max-width: 980px;
    overflow: hidden;
    border: 1px solid rgba(217,173,90,.18);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
}


.expertise-feature-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .resume-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .resume-section { padding-top: 52px; padding-bottom: 52px; }
    .resume-column { padding: 16px; border-radius: 15px; }
    .resume-item { grid-template-columns: 64px minmax(0,1fr); gap: 10px; }
    .resume-timeline::before { right: 32px; }
    .resume-item-body { padding: 11px 12px; }
    .resume-item-body h4 { font-size: 14px; }
    .resume-year { font-size: 11px; padding: 4px 5px; }
    .expertise-feature-image img { aspect-ratio: 16 / 8; }
}

/* =========================================================
   لینک‌های شبکه‌های اجتماعی فوتر
   آیکن‌های شبکه‌های اجتماعی در پایین سایت به صورت منظم و واکنش‌گرا نمایش داده می‌شوند.
   ========================================================= */

.footer-socials {
    margin: 0 0 18px;
}

.footer-socials-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid rgba(217,173,90,.18);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.footer-social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    border-color: rgba(217,173,90,.50);
    background: rgba(217,173,90,.07);
    box-shadow: 0 8px 20px rgba(0,0,0,.20);
}

@media (max-width: 600px) {
    .footer-socials-list {
        gap: 8px;
    }

    .footer-social-link {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }
}

/* =========================================================
   مهارت‌ها و تخصص‌ها / طراحی شیشه‌ای
   این بخش ظاهر کارت‌ها، تصاویر، برچسب‌ها و نوارهای درصد مهارت را کنترل می‌کند.
   ========================================================= */

.skill-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 22px 0 18px;
}

.skill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0 11px;
    border: 1px solid rgba(217,173,90,.22);
    border-radius: 999px;
    background: rgba(217,173,90,.055);
    color: var(--gold2);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.7;
    white-space: nowrap;
}

.skill-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
}

.skill-item {
    display: block;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(217,173,90,.14);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
    border-color: rgba(217,173,90,.34);
    box-shadow: 0 10px 25px rgba(0,0,0,.16);
}

.skill-main {
    width: 100%;
    min-width: 0;
}

.skill-head {
    display: block;
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
    text-align: center;
}

.skill-head span {
    display: block;
    overflow-wrap: anywhere;
}

/* درصد بیرون از نوار نمایش داده نمی‌شود؛ مقدار نهایی داخل نوار پیشرفت قرار دارد. */
.skill-head strong {
    display: none;
}

.skill-track {
    margin-top: 9px;
}

/* کارت‌های تخصصی و مهارت‌های متفرقه */
.service-card {
    overflow: hidden;
    padding: 0 !important;
}

.service-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1217;
}

.service-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.035);
}

.service-card-content {
    min-width: 0;
    padding: 20px 24px 24px;
    direction: rtl;
}

.service-card-content h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: var(--font-card-title);
    font-weight: 800;
    line-height: 1.9;
    text-align: center;
    overflow-wrap: anywhere;
}

.service-card-content p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: var(--font-card-text);
    font-weight: 400;
    line-height: 2;
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: anywhere;
}

.service-level-label {
    margin: 0 0 7px;
    color: var(--gold2);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.7;
    text-align: right;
}

.service-skill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 5px 12px;
    border: 1px solid rgba(217,173,90,.28);
    border-radius: 999px;
    background: rgba(217,173,90,.09);
    color: var(--gold2);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* =========================================================
   نوار پیشرفت شیشه‌ای طلایی
   زمینه نوار با رنگ طلایی سایت هماهنگ شده است.
   اندازه، درصد، انیمیشن و عملکرد نوار حفظ می‌شوند.
   ========================================================= */

.glass-progress {
    position: relative;
    width: 100%;
    height: 26px;
    margin-top: 10px;
    overflow: hidden;

    border: 1px solid rgba(217,173,90,.30);
    border-radius: 999px;

    /* زمینه طلایی شیشه‌ای به جای زمینه مشکی */
    background:
        linear-gradient(
            180deg,
            rgba(244,208,131,.16),
            rgba(217,173,90,.07)
        ),
        rgba(217,173,90,.10);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        inset 0 -1px 0 rgba(217,173,90,.12),
        0 5px 18px rgba(0,0,0,.12),
        0 0 16px rgba(217,173,90,.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    direction: rtl;
}


/* =========================================================
   قسمت پرشده نوار پیشرفت
   رنگ طلایی اصلی نوار حفظ شده است.
   ========================================================= */

.glass-progress-fill {
    position: absolute;
    inset: 0 0 0 auto;
    display: block;
    height: 100%;
    border-radius: inherit;

    background:
        linear-gradient(
            180deg,
            rgba(244,208,131,.98),
            rgba(217,173,90,.90) 52%,
            rgba(185,138,54,.96)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.30),
        inset 0 -1px 0 rgba(88,58,12,.25),
        0 0 14px rgba(217,173,90,.22);

    transition: width .5s ease;
}


/* =========================================================
   درصد داخل نوار پیشرفت
   درصد سفید باقی می‌ماند تا خوانایی آن حفظ شود.
   ========================================================= */

.glass-progress strong {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: grid;
    place-items: center;

    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;

    direction: ltr;

    text-shadow:
        0 1px 3px rgba(0,0,0,.65);

    pointer-events: none;
}


/* =========================================================
   نوار مهارت تخصصی
   اندازه پایه نوار حفظ می‌شود.
   ========================================================= */

.skill-track.glass-progress {
    height: 26px;
    margin-top: 9px;
}


/* =========================================================
   قسمت پرشده نوار مهارت تخصصی
   ========================================================= */

.skill-track.glass-progress > span {
    position: absolute;
    inset: 0 0 0 auto;
    height: 100%;
}


/* =========================================================
   درصد نوار مهارت تخصصی
   ========================================================= */

.skill-track.glass-progress > strong {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: grid;
    place-items: center;

    color: #fff;
    font-size: 10px;
    font-weight: 900;

    direction: ltr;

    text-shadow:
        0 1px 3px rgba(0,0,0,.65);

    pointer-events: none;
}


/* =========================================================
   ارتفاع نوار در تبلت
   فقط اندازه تغییر می‌کند؛ رنگ طلایی ثابت می‌ماند.
   ========================================================= */

@media (max-width: 900px) {

    .glass-progress,
    .skill-track.glass-progress {
        height: 28px;
    }

    .glass-progress strong,
    .skill-track.glass-progress > strong {
        font-size: 11px;
    }
}


/* =========================================================
   ارتفاع نوار در موبایل
   نوار برای صفحه کوچک کمی باریک‌تر می‌شود.
   ========================================================= */

@media (max-width: 600px) {

    .glass-progress,
    .skill-track.glass-progress {
        height: 22px;
    }

    .glass-progress strong,
    .skill-track.glass-progress > strong {
        font-size: 10px;
    }
}


/* =========================================================
   ارتفاع نوار در گوشی‌های خیلی کوچک
   ========================================================= */

@media (max-width: 420px) {

    .glass-progress,
    .skill-track.glass-progress {
        height: 21px;
    }
}

@media (min-width: 901px) {
    .skill-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cards,
    .skill-list {
        grid-template-columns: 1fr;
    }

    .skill-item {
        padding: 12px;
    }

    .skill-head {
        font-size: 12.5px;
    }

    .skill-buttons {
        gap: 6px;
        margin-top: 18px;
        margin-bottom: 14px;
    }

    .skill-button {
        min-height: 29px;
        padding: 0 9px;
        font-size: 9.5px;
    }

    .service-card-content {
        padding: 18px 16px 20px;
    }

    .service-card-content h3 {
        margin-bottom: 10px;
        font-size: max(16px, var(--font-card-title));
    }

    .service-card-content p {
        margin-bottom: 14px;
        font-size: max(12px, var(--font-card-text));
        line-height: 1.95;
    }

    .glass-progress,
    .skill-track.glass-progress {
        height: 25px;
    }

    .glass-progress strong,
    .skill-track.glass-progress > strong {
        font-size: 10px;
    }

    .hero-socials {
        margin-top: 17px;
    }

    .hero-socials-title {
        font-size: 10px;
    }

    .hero-socials-list {
        gap: 6px;
    }

    .social-link {
        min-height: 34px;
        padding: 0 8px;
        border-radius: 9px;
        font-size: 10px;
    }

    .social-link > span {
        width: 21px;
        height: 21px;
        border-radius: 7px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .service-card-image {
        aspect-ratio: 16 / 9;
    }
}

/* =========================================================
   پرداخت نهایی رابط کاربری نسخه ۴.۱.۰
   فاصله‌ها، تایپوگرافی، اندازه کارت‌ها و ناوبری موبایل در این بخش تنظیم می‌شوند.
   ========================================================= */

/* =========================================================
   هم‌ترازی هدر در دسکتاپ
   موقعیت نسبی هدر برای قرارگیری صحیح عناصر داخلی استفاده می‌شود.
   ========================================================= */
.site-header .nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    border: 1px solid rgba(217,173,90,.30);
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    color: var(--gold2);
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.18);
    z-index: 1201;
}

.mobile-menu-toggle span {
    width: 23px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform .22s ease, opacity .22s ease;
}

/* =========================================================
   تراز کادر درباره من در حالت بدون توضیحات طولانی
   اگر توضیح طولانی وجود نداشته باشد، کادر در مرکز صفحه قرار می‌گیرد.
   ========================================================= */
.about:not(:has(.about-description)) {
    grid-template-columns: minmax(0, 680px);
    justify-content: center;
}

.about-box {
    width: 100%;
}

/* =========================================================
   هم‌ارتفاع کردن کارت‌های مهارت
   ارتفاع کارت‌ها هماهنگ می‌شود تا نوار درصد در یک خط منظم قرار بگیرد.
   ========================================================= */
.cards {
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.service-card-content p {
    flex: 1 1 auto;
}

.service-card-content .glass-progress {
    margin-top: auto;
}

/* =========================================================
   فاصله‌گذاری و خوانایی کارت‌های مهارت
   فاصله‌ها و اندازه نوشته‌ها برای خوانایی بهتر تنظیم می‌شوند.
   ========================================================= */
.section {
    padding-top: 78px;
    padding-bottom: 78px;
}

.skill-button {
    font-size: 11.5px;
}

.service-card-content p {
    font-size: 14px;
    line-height: 2.05;
}

.service-level-label {
    color: #8e733e;
}

.glass-progress,
.skill-track.glass-progress {
    height: 30px;
}

.glass-progress strong,
.skill-track.glass-progress > strong {
    font-size: 11px;
}

.expertise-feature-image {
    max-width: 820px;
}

/* =========================================================
   ناوبری موبایل
   منوی موبایل به صورت کشویی و جمع‌وجور نمایش داده می‌شود.
   ========================================================= */
@media (max-width: 900px) {

    /* =========================================================
       دکمه باز و بسته کردن منوی موبایل
       دکمه همبرگری در سمت چپ هدر قرار می‌گیرد.
       ========================================================= */
    .mobile-menu-toggle {
        display: inline-flex;
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* =========================================================
       وضعیت باز بودن دکمه منوی موبایل
       هنگام باز بودن منو، رنگ و حاشیه دکمه طلایی می‌شود.
       ========================================================= */
    .mobile-menu-toggle.is-open {
        color: var(--gold2);
        border-color: rgba(244,208,131,.55);
    }

    /* =========================================================
       تبدیل خط اول دکمه همبرگری به علامت ضربدر
       ========================================================= */
    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    /* =========================================================
       مخفی کردن خط وسط دکمه همبرگری هنگام باز بودن منو
       ========================================================= */
    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    /* =========================================================
       تبدیل خط سوم دکمه همبرگری به علامت ضربدر
       ========================================================= */
    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* =========================================================
       ارتفاع و فاصله داخلی هدر موبایل
       ========================================================= */
    .site-header .nav {
        min-height: 70px;
        padding: 8px 14px;
        justify-content: center;
    }

    /* =========================================================
       لوگوی سایت در موبایل
       لوگو در مرکز هدر قرار می‌گیرد.
       ========================================================= */
    .logo {
        position: relative;
        top: 0;
        margin: 0 auto;
        font-size: 13px;
        z-index: 1200;
    }

    /* =========================================================
       منوی کشویی موبایل
       عرض منو کاهش داده شده تا بخش زیادی از صفحه را اشغال نکند.
       ساختار، رنگ، انیمیشن و عملکرد اصلی منو حفظ شده است.
       ========================================================= */
    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;

        /* عرض جمع‌وجور منوی موبایل */
        width: min(70vw, 290px);

        height: 100dvh;
        margin: 0;

        /* فاصله داخلی کمتر برای جمع‌وجور شدن منو */
        padding: 78px 14px 20px;

        display: block;
        visibility: hidden;
        opacity: 0;

        transform: translateX(105%);

        background: linear-gradient(
            160deg,
            rgba(16,21,26,.98),
            rgba(7,10,13,.985)
        );

        border-left: 1px solid rgba(217,173,90,.22);

        box-shadow: -20px 0 60px rgba(0,0,0,.42);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        transition:
            transform .28s ease,
            opacity .22s ease,
            visibility .28s ease;

        z-index: 1200;
        overflow-y: auto;
    }

    /* =========================================================
       عنوان منوی سایت
       اندازه و فاصله عنوان کاهش داده شده تا منو جمع‌وجورتر باشد.
       ========================================================= */
    .main-navigation::before {
        content: "منوی سایت";
        display: block;
        margin-bottom: 12px;
        color: var(--gold2);
        font-size: 14px;
        font-weight: 900;
        text-align: right;
    }

    /* =========================================================
       وضعیت باز بودن منوی کشویی
       منو هنگام باز شدن از سمت راست وارد صفحه می‌شود.
       ========================================================= */
    .main-navigation.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    /* =========================================================
       فهرست گزینه‌های منوی موبایل
       فاصله بین گزینه‌ها کمتر شده تا منو ارتفاع کمتری داشته باشد.
       ========================================================= */
    .main-navigation .menu-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 6px;
    }

    /* =========================================================
       عرض هر گزینه منوی موبایل
       هر گزینه تمام عرض داخلی منو را استفاده می‌کند.
       ========================================================= */
    .main-navigation .menu-list li {
        width: 100%;
        flex: 0 0 auto;
    }

    /* =========================================================
       اندازه گزینه‌های منوی موبایل
       ارتفاع، فاصله داخلی و فونت کاهش داده شده تا منو ظریف‌تر شود.
       ========================================================= */
    .main-navigation .menu-list li a {
        width: 100%;
        min-height: 42px;
        padding: 0 13px;
        justify-content: flex-start;
        font-size: 12.5px;
        border-radius: 10px;
    }

    /* =========================================================
       گزینه فعال منوی موبایل
       تراز متن گزینه فعال مانند سایر گزینه‌ها حفظ می‌شود.
       ========================================================= */
    .main-navigation .menu-list li.active a,
    .main-navigation .menu-list li.current-menu-item a {
        justify-content: flex-start;
    }

    /* =========================================================
       جلوگیری از اسکرول صفحه اصلی هنگام باز بودن منوی موبایل
       ========================================================= */
    body.mobile-menu-open {
        overflow: hidden;
    }

    /* =========================================================
       فاصله بالای بخش Hero در موبایل
       ========================================================= */
    .hero-grid {
        padding-top: 55px;
        gap: 30px;
    }

    /* =========================================================
       اندازه عنوان اصلی Hero در موبایل
       ========================================================= */
    .hero h1 {
        font-size: clamp(32px, 8vw, 44px) ;
        line-height: 1.45;
    }

    /* =========================================================
       اندازه عنوان دوم Hero در موبایل
       ========================================================= */
    .hero h2 {
        font-size: 16px ;
        line-height: 1.8;
    }

    /* =========================================================
       متن توضیحات Hero در موبایل
       ========================================================= */
    .hero p {
        font-size: 14px;
        line-height: 2.1;
    }

    /* =========================================================
       فاصله عمودی بخش‌های سایت در موبایل
       ========================================================= */
    .section {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    /* =========================================================
       اندازه عنوان بخش‌ها در موبایل
       ========================================================= */
    .section-title h2,
    .contact h2 {
        font-size: clamp(25px, 7vw, 30px);
    }

    /* =========================================================
       اندازه متن دکمه‌های مهارت در موبایل
       ========================================================= */
    .skill-button {
        font-size: 11px;
    }

    /* =========================================================
       اندازه متن توضیحات کارت‌های تخصصی در موبایل
       ========================================================= */
    .service-card-content p {
        font-size: 13.5px;
        line-height: 2.05;
    }

    /* =========================================================
       ارتفاع نوار درصد مهارت در موبایل
       ========================================================= */
    .glass-progress,
    .skill-track.glass-progress {
        height: 28px;
    }

    /* =========================================================
       اندازه درصد داخل نوار مهارت
       ========================================================= */
    .glass-progress strong,
    .skill-track.glass-progress > strong {
        font-size: 11px;
    }

    /* =========================================================
       چیدمان کادر درباره من در صورت نبود توضیحات
       ========================================================= */
    .about:not(:has(.about-description)) {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* =========================================================
   تنظیمات موبایل‌های خیلی کوچک
   این بخش برای صفحه‌هایی با عرض حداکثر 420 پیکسل است.
   ========================================================= */
@media (max-width: 420px) {

    /* =========================================================
       ارتفاع هدر در گوشی‌های کوچک
       ========================================================= */
    .site-header .nav {
        min-height: 64px;
        padding: 7px 14px;
    }

    /* =========================================================
       اندازه دکمه منوی موبایل در گوشی‌های کوچک
       ========================================================= */
    .mobile-menu-toggle {
        left: 14px;
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }

    /* =========================================================
       ظاهر لوگو در گوشی‌های کوچک
       ========================================================= */
    .logo {
		position: absolute !important;
		right: 14px !important;
        left: auto !important;
        top: 30px !important;
		transform: translateY(-50%) !important;
		min-width: 0 !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        font-size: 15px !important;
        font-weight: 800;
        z-index: 1200;
    }

    /* =========================================================
       حذف تزئینات اطراف لوگو در گوشی‌های کوچک
       ========================================================= */
    .logo::before,
    .logo::after {
        display: none !important;
    }

    /* =========================================================
       منوی موبایل در گوشی‌های خیلی کوچک
       عرض منو بیشتر محدود می‌شود تا فضای زیادی از صفحه نگیرد.
       ========================================================= */
    .main-navigation {
        width: min(72vw, 260px);
        padding: 72px 12px 18px;
    }

    /* =========================================================
       عنوان منوی موبایل در گوشی‌های خیلی کوچک
       ========================================================= */
    .main-navigation::before {
        margin-bottom: 10px;
        font-size: 13px;
    }

    /* =========================================================
       فاصله گزینه‌های منو در گوشی‌های خیلی کوچک
       ========================================================= */
    .main-navigation .menu-list {
        gap: 5px;
    }

    /* =========================================================
       گزینه‌های منو در گوشی‌های خیلی کوچک
       ارتفاع و اندازه فونت برای صفحه کوچک‌تر کاهش داده می‌شود.
       ========================================================= */
    .main-navigation .menu-list li a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 9px;
    }

    /* =========================================================
       فاصله بالای Hero در گوشی‌های کوچک
       ========================================================= */
    .hero-grid {
        padding-top: 42px;
        gap: 26px;
    }

    /* =========================================================
       عنوان اصلی Hero *****S21*****  متن نام در گوشی‌های کوچک
       ========================================================= */
    .hero h1 {
        font-size: 30px !important;
        line-height: 1.5;
		    padding-right: 13px;


    }
	
	.resume-section-title h2 {
        font-size: 30px !important;
        line-height: 1.5;

}


    /* =========================================================
       عنوان دوم Hero    متن خراسان رضوی در s21 در گوشی‌های کوچک
       ========================================================= */
    .hero h2 {
        font-size: 15px !important;
    }

    /* ========================================================
     متن بالای صفحه مربوط به متخصص زیر ساخت های ... برای گوشی
	========================================================= */
	.eyebrow {
        font-size: 12px;
        line-height: 1.8;
    }
	
	
	
	
    /* =========================================================
       متن Hero در گوشی‌های کوچک
       ========================================================= */
    .hero p {
        font-size: 13.5px;
    }

    /* =========================================================
       فاصله بخش‌های سایت در گوشی‌های کوچک
       ========================================================= */
    .section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    /* =========================================================
       فاصله داخلی کادر درباره من در گوشی‌های کوچک
       ========================================================= */
    .about-box {
        padding: 22px;
    }

    /* =========================================================
       اندازه دکمه مهارت در گوشی‌های کوچک
       ========================================================= */
    .skill-button {
        font-size: 10.5px;
    }

    /* =========================================================
       فاصله داخلی محتوای کارت‌های تخصصی
       ========================================================= */
    .service-card-content {
        padding: 18px 16px 20px;
    }

    /* =========================================================
       اندازه عنوان کارت‌های تخصصی
       ========================================================= */
    .service-card-content h3 {
        font-size: 17px;
    }

    /* =========================================================
       اندازه متن توضیحات کارت‌های تخصصی
       ========================================================= */
    .service-card-content p {
        font-size: 13px;
    }
}


/* =========================================================
   اصلاحات نهایی ظاهر و ریسپانسیو — بدون حذف هیچ قابلیت
   این قوانین در انتهای فایل قرار گرفته‌اند تا فقط ایرادات مشخص‌شده
   را با رعایت ترتیب اجرای CSS اصلاح کنند.
   ========================================================= */

/* =========================================================
   رنگ عنوان کارت‌های مهارت و تخصص
   کارت‌ها روی زمینه روشن قرار دارند؛ بنابراین عنوان باید تیره و خوانا باشد.
   ========================================================= */
.service-card-content h3 {
    color: var(--ink);
}

/* =========================================================
   جمع‌وجور کردن کادرهای آمار
   کادرهای آماری مانند ۱۰۰۰+ و ۱۸+ نباید نسبت به مقدار داخل خود بیش از حد بزرگ باشند.
   ========================================================= */
.stats {
    max-width: 560px;
    gap: 10px;
    margin-top: 22px;
}

.stat {
    min-height: 92px;
    padding: 14px 16px;
}

.stat strong {
    font-size: 16px;
}

.stat small {
    font-size: 13px;
}

/* =========================================================
   تصویر بنر مهارت‌های تخصصی در تبلت
   در عرض‌های متوسط ارتفاع ثابت کاهش می‌یابد تا بنر فضای غیرضروری نگیرد.
   ========================================================= */
@media (max-width: 900px) {
    .expertise-feature-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }

    .stats {
        max-width: 560px;
    }

    .stat {
        min-height: 88px;
        padding: 13px 15px;
    }

    .stat strong {
        font-size: 16px;
    }
}

/* =========================================================
   تصویر بنر مهارت‌های تخصصی در موبایل
   ارتفاع ثابت ۴۵۰ پیکسل در موبایل حذف می‌شود تا تصویر متناسب با عرض کادر جمع شود.
   تصویر بدون برش و با نسبت ۱۶ به ۹ نمایش داده می‌شود.
   ========================================================= */
@media (max-width: 600px) {
    .expertise-feature-image {
        width: 100%;
        max-width: 100%;
        margin-bottom: 18px;
        border-radius: 15px;
    }

    .expertise-feature-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }

    .stats {
        max-width: 100%;
        gap: 8px;
        margin-top: 18px;
    }

    .stat {
        min-height: 82px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .stat strong {
        font-size: 15px;
        line-height: 1.45;
    }

    .stat small {
        font-size: 10px;
        line-height: 1.65;
    }

    /* =========================================================
       متن توضیحات کارت در موبایل
       در عرض کم، راست‌چین بودن متن فارسی خواناتر از حالت تراز دوطرفه است.
       ========================================================= */
    .service-card-content p {
        text-align: right;
    }

    /* =========================================================
       نوار درصد مهارت در موبایل
       ارتفاع نوار کمی کاهش می‌یابد تا کارت‌های مهارت بیش از حد بلند نشوند.
       ========================================================= */
    .glass-progress,
    .skill-track.glass-progress {
        height: 22px;
    }

    .glass-progress strong,
    .skill-track.glass-progress > strong {
        font-size: 10px;
    }
}

/* =========================================================
   تنظیم نهایی برای گوشی‌های خیلی باریک
   کادرهای آمار و نوار درصد در صفحه‌های کوچک‌تر نیز متناسب باقی می‌مانند.
   ========================================================= */
@media (max-width: 420px) {
    .stat {
        min-height: 78px;
        padding: 11px 13px;
    }

    .stat strong {
        font-size: 14px;
    }

    .stat small {
        font-size: 9.5px;
    }

    .glass-progress,
    .skill-track.glass-progress {
        height: 21px;
    }

    .expertise-feature-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }
}
/* =========================================================
   تراز دوطرفه متن‌های محتوایی سایت
   متن‌های توضیحی از هر دو طرف کادر هم‌تراز می‌شوند.
   عنوان‌ها، منوها، دکمه‌ها و برچسب‌ها تغییر نمی‌کنند.
   ========================================================= */
.about-box p,
.hero p,
.card p,
.service-card-content p,
.resume-item-body p,
.resume-item-body small,
.section-title p {
    text-align: justify;
    text-justify: inter-word;
	}
}
/* =========================================================
   اصلاح نهایی CSS قالب Hadi Portfolio
   این بخش فقط قوانین دارای Overrideهای تکراری را یکپارچه می‌کند.
   هیچ محتوایی از قالب حذف نمی‌شود.
   ========================================================= */


/* =========================================================
   1. کادرهای آمار Hero
   مقدارهایی مثل 18+ و متن‌هایی مثل سال تجربه
   ========================================================= */

.stats {
    width: 100%;
    max-width: 560px;
    gap: 10px;
    margin-top: 40px;
}

.stat {
    min-height: 92px;
    padding: 14px 16px;

}

/* مقدار اصلی آمار مانند 18+ */
.stat strong {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
}

/* توضیح آمار مانند سال تجربه */
.stat small {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.75;
}


/* =========================================================
   2. آمار در تبلت
   ========================================================= */

@media (max-width: 900px) {

    .stats {
        max-width: 560px;
        gap: 10px;
    }

    .stat {
        min-height: 88px;
        padding: 13px 15px;
    }

    .stat strong {
        font-size: 15px;
    }

    .stat small {
        font-size: 10px;
    }
}


/* =========================================================
   3. آمار در موبایل
   اندازه 18+ و متن توضیحی کاملاً مشخص و ثابت می‌شود.
   ========================================================= */

@media (max-width: 600px) {

    .stats {
        max-width: 100%;
        gap: 8px;
        margin-top: 18px;
    }

    .stat {
        min-height: 82px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .stat strong {
        font-size: 15px !important;
        line-height: 1.45;
    }

    .stat small {
        font-size: 10px !important;
        line-height: 1.65;
    }
}


/* =========================================================
   4.  ******S21**** آمار در گوشی‌های خیلی کوچک
   ========================================================= */

@media (max-width: 420px) {

    .stat {
        min-height: 78px;
        padding: 11px 13px;
    }

    .stat strong {
        font-size: 20px !important;
    }

    .stat small {
        font-size: 15px !important;
    }
}


/* =========================================================
   5. متن اصلی Hero
   متن توضیحات زیر عنوان تخصصی
   ========================================================= */

.hero p {
    font-size: var(--font-hero-text);
    line-height: 2.15;
    color: #c9d0d6;
    max-width: 650px;
}


/* =========================================================
   6. متن Hero در موبایل
   ========================================================= */

@media (max-width: 600px) {

    .hero p {
        font-size: 14px;
        line-height: 2.05;
    }
}


/* =========================================================
   7. عنوان اصلی Hero
   ========================================================= */

.hero h1 {
    font-size: var(--font-hero-name);
    line-height: 1.2;
    font-weight: 900;
}


/* =========================================================
   8. عنوان Hero در موبایل
   ========================================================= */

@media (max-width: 600px) {

    .hero h1 {
        font-size: 30px !important;
        line-height: 1.5;
        padding-right: 12px;
    }
}


/* =========================================================
   9. عنوان Hero در گوشی‌های خیلی کوچک
   ========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 30px !important;
        line-height: 1.4;
        padding-right: 12px;
    }
}


/* =========================================================
   10. متن اطلاعات بالای Hero
   محل و تاریخ تولد با کلاس eyebrow
   ========================================================= */

.eyebrow {
    font-size: 15px;
    line-height: 1.8;
    font-weight: 800;
}


/* =========================================================
   11. eyebrow در موبایل
   ========================================================= */

@media (max-width: 600px) {

    .eyebrow {
        font-size: 12px !important;
        line-height: 1.8;
    }
}


/* =========================================================
   12. eyebrow در گوشی‌های خیلی کوچک
   ========================================================= */

@media (max-width: 420px) {

    .eyebrow {
        font-size: 11px !important;
    }
}


/* =========================================================
   13. عنوان کارت‌های مهارت و تخصص
   رنگ عنوان روی زمینه روشن تیره و خوانا باقی می‌ماند.
   ========================================================= */

.service-card-content h3 {
    color: var(--ink);
    font-size: var(--font-card-title);
    line-height: 1.9;
    text-align: center;
}


/* =========================================================
   14. عنوان کارت‌ها در موبایل
   ========================================================= */

@media (max-width: 600px) {

    .service-card-content h3 {
        font-size: 16px !important;
        line-height: 1.8;
    }
}


/* =========================================================
   15. متن توضیحات کارت‌ها
   متن فارسی در حالت دوطرفه قرار می‌گیرد.
   ========================================================= */

.service-card-content p {
    text-align: justify;
    text-justify: inter-word;
}


/* =========================================================
   16. تراز متن‌های محتوایی سایت
   فقط متن‌های توضیحی Justify می‌شوند.
   ========================================================= */

.about-box p,
.hero p,
.card p,
.resume-item-body p,
.resume-item-body small,
.section-title p {
    text-align: justify;
    text-justify: inter-word;
}


/* =========================================================
   17. نوار پیشرفت شیشه‌ای
   زمینه طلایی و شیشه‌ای؛ بدون زمینه مشکی.
   ========================================================= */

.glass-progress {
    position: relative;
    width: 100%;
    height: 26px;
    margin-top: 10px;
    overflow: hidden;

    border: 1px solid rgba(217,173,90,.30);
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(244,208,131,.16),
            rgba(217,173,90,.07)
        ),
        rgba(217,173,90,.10);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.10),
        inset 0 -1px 0 rgba(217,173,90,.12),
        0 5px 18px rgba(0,0,0,.12),
        0 0 16px rgba(217,173,90,.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    direction: rtl;
}


/* =========================================================
   18. نوار مهارت تخصصی
   ========================================================= */

.skill-track.glass-progress {
    height: 26px;
    margin-top: 9px;
}


/* =========================================================
   19. قسمت پرشده نوار درصد
   ========================================================= */

.glass-progress-fill {
    position: absolute;
    inset: 0 0 0 auto;
    display: block;
    height: 100%;
    border-radius: inherit;

    background:
        linear-gradient(
            180deg,
            rgba(244,208,131,.98),
            rgba(217,173,90,.90) 52%,
            rgba(185,138,54,.96)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.30),
        inset 0 -1px 0 rgba(88,58,12,.25),
        0 0 14px rgba(217,173,90,.22);

    transition: width .5s ease;
}


/* =========================================================
   20. درصد داخل نوار
   ========================================================= */

.glass-progress strong,
.skill-track.glass-progress > strong {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: grid;
    place-items: center;

    color: #fff;
    font-size: 10px;
    font-weight: 900;

    direction: ltr;

    text-shadow:
        0 1px 3px rgba(0,0,0,.65);

    pointer-events: none;
}


/* =========================================================
   21. نوار Progress در تبلت
   ========================================================= */

@media (max-width: 900px) {

    .glass-progress,
    .skill-track.glass-progress {
        height: 26px;
    }
}


/* =========================================================
   22. نوار Progress در موبایل
   ========================================================= */

@media (max-width: 600px) {

    .glass-progress,
    .skill-track.glass-progress {
        height: 22px;
    }

    .glass-progress strong,
    .skill-track.glass-progress > strong {
        font-size: 10px;
    }
}


/* =========================================================
   23. نوار Progress در گوشی‌های خیلی کوچک
   ========================================================= */

@media (max-width: 420px) {

    .glass-progress,
    .skill-track.glass-progress {
        height: 21px;
    }
}


/* =========================================================
   24. بنر مهارت‌های تخصصی
   در دسکتاپ بزرگ و در موبایل متناسب با کادر نمایش داده می‌شود.
   ========================================================= */

.expertise-feature-image {
    width: 100%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}


/* =========================================================
   25. تصویر بنر مهارت تخصصی در دسکتاپ
   ========================================================= */

.expertise-feature-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* =========================================================
   26. بنر مهارت تخصصی در تبلت
   ========================================================= */

@media (max-width: 900px) {

    .expertise-feature-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }
}


/* =========================================================
   27. بنر مهارت تخصصی در موبایل
   ارتفاع ثابت حذف می‌شود تا تصویر بزرگ و کشیده نشود.
   ========================================================= */

@media (max-width: 600px) {

    .expertise-feature-image {
        width: 100%;
        max-width: 100%;
        border-radius: 15px;
    }

    .expertise-feature-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }
}


/* =========================================================
   28. بنر مهارت تخصصی در گوشی‌های خیلی کوچک
   ========================================================= */

@media (max-width: 420px) {

    .expertise-feature-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }
}


/* =========================================================
   29. منوی کشویی موبایل
   عرض و ابعاد منو یکپارچه شده تا قوانین قبلی Override نشوند.
   ========================================================= */

@media (max-width: 900px) {

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;

        width: min(70vw, 290px);
        height: 100dvh;

        margin: 0;
        padding: 78px 14px 20px;

        display: block;

        visibility: hidden;
        opacity: 0;

        transform: translateX(105%);

        background:
            linear-gradient(
                160deg,
                rgba(16,21,26,.98),
                rgba(7,10,13,.985)
            );

        border-left: 1px solid rgba(217,173,90,.22);

        box-shadow:
            -20px 0 60px rgba(0,0,0,.42);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        transition:
            transform .28s ease,
            opacity .22s ease,
            visibility .28s ease;

        z-index: 1200;
        overflow-y: auto;
    }

    .main-navigation.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .main-navigation::before {
        content: "منوی سایت";
        display: block;

        margin-bottom: 12px;

        color: var(--gold2);
        font-size: 14px;
        font-weight: 900;

        text-align: right;
    }

    .main-navigation .menu-list {
        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: stretch;
        justify-content: flex-start;

        gap: 6px;
    }

    .main-navigation .menu-list li {
        width: 100%;
        flex: 0 0 auto;
    }

    .main-navigation .menu-list li a {
        width: 100%;
        min-height: 42px;

        padding: 0 13px;

        justify-content: flex-start;

        font-size: 12.5px;
        border-radius: 10px;
    }

    .main-navigation .menu-list li.active a,
    .main-navigation .menu-list li.current-menu-item a {
        justify-content: flex-start;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}


/* =========================================================
   30. منوی موبایل در گوشی‌های خیلی کوچک
   ========================================================= */

@media (max-width: 420px) {

    .main-navigation {
        width: min(72vw, 260px);
        padding: 72px 12px 18px;
    }

    .main-navigation::before {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .main-navigation .menu-list {
        gap: 5px;
    }

    .main-navigation .menu-list li a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 9px;
    }
}

/* =========================================================
   هایلایت متحرک متن Hero
   ========================================================= */

.hero-highlight-text {
    display: inline;
    line-height: 2;
    background-image: linear-gradient(
        to left,
        rgba(212, 175, 55, 0.35),
        rgba(212, 175, 55, 0.35)
    );
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: right center;
    animation: heroTextHighlight 20s ease-out 0.4s forwards;
}

@keyframes heroTextHighlight {
    from {
        background-size: 0% 100%;
    }

    to {
        background-size: 100% 100%;
    }
}

/* UI enhancements */
.reveal{opacity:0;transform:translateY(25px);transition:opacity .7s ease,transform .7s ease}
.reveal.is-visible{opacity:1;transform:none}
.card{transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease}
.card:hover{transform:translateY(-8px);box-shadow:0 18px 45px rgba(0,0,0,.12);border-color:rgba(212,175,55,.45)}
.skill-button{transition:all .25s ease}
.skill-button:hover{transform:translateY(-3px);background:#d4af37;color:#111}
.skill-track span,.glass-progress-fill{transition:width 1.2s cubic-bezier(.2,.8,.2,1)}
.service-card h3:before{content:'◆';font-size:10px;margin-left:8px;color:#d4af37}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
