/* استایل پیش‌فرض برای دسکتاپ */
.name{font-family:'Source Code Pro'}.nameFa{font-family:'Noto Naskh Arabic'}.nameSkill{font-family:'Noto Kufi Arabic'}.nameSkill a{text-decoration: none!important;}.background{position:fixed;bottom:10px;right:10px;opacity:.02;width:250px}
.img-hor-vert {
    border-radius:20%;background-color:#fffaf1;border-color:#000;color:#fff;
}.img-hor-vert-fa {
     -webkit-transform: scaleX(1);
     transform: scaleX(1);
     border-radius:20%;background-color:#fffaf1;border-color:#000;color:#fff;
 }
.detailColor{
    color: rgba(33, 89, 164, 0.5)
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    height: 100vh;
}

/* بخش چپ ثابت */
.sidebar {
    width: 50%;
    position: fixed;
    overflow-y: auto;
}

/* بخش راست با اسکرول */
.content {
    margin-left: 50%;
    width: 50%;
    overflow-y: scroll;
    height: 100vh;
}

.footer {
    position: fixed;       /* فوتر همیشه ثابت بماند */
    bottom: 0;             /* در پایین صفحه نمایش داده شود */
    left: 0;               /* از سمت چپ شروع شود */
    width: 100%;           /* کل عرض صفحه را بگیرد */
    background-color: #333; /* رنگ پس‌زمینه */
    color: white;          /* رنگ متن */
    text-align: center;    /* متن در وسط قرار بگیرد */
    padding: 10px 0;       /* فاصله داخلی برای زیبایی */
    font-size: 14px;       /* اندازه فونت */
    z-index: 1000;         /* فوتر بالاتر از سایر عناصر قرار بگیرد */
}

.footer a {
    color: #f4f4f4;
    margin: 0 10px;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.experience {
    margin-bottom: 20px;
}

h2 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

/* ریسپانسیو برای موبایل */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .content {
        margin-left: 0;
        width: 100%;
        height: auto;
        overflow-y: visible;
    }

    .footer {
        font-size: 12px;   /* کاهش اندازه فونت در دستگاه‌های کوچک */
        padding: 8px 0;    /* کاهش فاصله داخلی */
    }

    body {
        padding-bottom: 50px;  /* کاهش فضای خالی برای موبایل */
    }


    h1 {
        font-size: 24px;
        text-align: center;
    }

    .nameSkill {
        font-size: 14px;
        text-align: center;
    }

    .experience {
        padding: 10px;
    }

    .sidebar .m-1 {
        text-align: center;
    }

    .footer a {
        margin: 0 5px;
    }
}
