@font-face {
    font-family: 'MyCustomFont';
    /* نام دلخواه فونت */
    src: url('../font/AriaWeb-Black.woff') format('woff2'),
        url('font/') format('woff');
    /* آدرس فایل‌های فونت */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyCustomFont2';
    /* نام دلخواه فونت */
    src: url('../font/AriaWeb-Black.woff') format('woff2'),
        url('font/') format('woff');
    /* آدرس فایل‌های فونت */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyCustomFont3';
    /* نام دلخواه فونت */
    src: url('../font/AriaWeb-Regular.woff') format('woff2'),
        url('font/') format('woff');
    /* آدرس فایل‌های فونت */
    font-weight: normal;
    font-style: normal;
}


body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    direction: rtl;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Georgia', serif;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

p {
    text-align: justify;
    margin-bottom: 20px;
}

a {
    color: #bb86fc;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #bb86fc;
}

hr {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 25px 0;
}

.Mkhat {
    margin: 5px 0 15px 0;
}

nav {
    background-color: #222;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'MyCustomFont3';

}

nav .main-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-page a.active {
    color: #bb86fc;
}

nav .main-page p {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
    font-family: 'MyCustomFont2';
    text-align: center;
}

nav .main-page a {
    color: #ffffff;
}

nav .main-page a:hover {
    color: #bb86fc;
    text-decoration: none;
}

nav .page {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav .menu li {
    margin: 0 25px;
}

nav .menu li a {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav .menu li a:hover {
    color: #bb86fc;
    text-decoration: none;
}

header {
    text-align: center;
    padding: 60px 20px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    font-family: 'MyCustomFont2';
}

.me p,
.meA p {
    font-size: 1.5rem;
    margin: 5px 0;
    color: #ffffff;
    text-align: center;
}

.meA p {
    color: #bbb;
    font-size: 1.3rem;
}

main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 40px 0;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

article {
    flex: 2;
    min-width: 300px;
    background-color: #222;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    margin-left: auto;
    margin-right: auto;
    font-family: 'MyCustomFont3';

}

.Mbio p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 25px;
    text-align: justify;
}

.Mbio p+p {
    margin-top: 25px;
}

aside {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding-top: 10px;
    margin-left: auto;
    margin-right: auto;
}

.icon {
    max-width: 200px;
    border-radius: 12px;
    border: 4px solid #333;
    box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
}

footer {
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    background-color: #222;
    border-top: 1px solid #333;
    font-size: 1rem;
    color: #bbb;
}

.Ffoot p {
    margin: 0;
    text-align: center;
    font-family: 'MyCustomFont2';
    font-size: large;

}



/* ریسپانسیو لپتاپ */

@media (max-width: 1024px) {
    nav .menu li {
        margin: 0 20px;
    }

    nav .menu li a {
        font-size: 1.05rem;
    }

    main {
        flex-direction: column;
        align-items: center;
    }

    article,
    aside {
        width: 90%;
        flex: none;
        margin-left: auto;
        margin-right: auto;
    }

    aside {
        margin-top: 30px;
    }

    .icon {
        max-width: 180px;
    }
}

/* ریسپانسیو تبلت */

@media (max-width: 767px) {
    nav {
        padding: 12px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    nav .main-page p {
        font-size: 1.3rem;
    }

    nav .page {
        margin-top: 8px;
    }

    nav .menu li {
        margin: 0 15px;
    }

    nav .menu li a {
        font-size: 1rem;
    }

    header {
        padding: 40px 15px;
    }

    .me p,
    .meA p {
        font-size: 1.3rem;
    }

    .meA p {
        font-size: 1.1rem;
    }

    article {
        width: 95%;
        padding: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    }

    .Mbio p {
        font-size: 1rem;
    }

    aside {
        width: 95%;
    }

    .icon {
        max-width: 150px;
    }

    footer {
        padding: 20px 0;
        font-size: 0.95rem;
    }
}

/* ریسپانسیو گوشی */

@media (max-width: 480px) {
    * {
        overflow-x: hidden;
    }

    nav {
        padding: 10px 0;
    }

    nav .main-page p {
        font-size: 1.1rem;
    }

    nav .page {
        margin-top: 5px;
    }

    nav .menu li {
        margin: 0 8px;
    }

    nav .menu li a {
        font-size: 0.95rem;
        padding-bottom: 3px;
    }

    nav .menu li a::after {
        height: 1.5px;
    }

    header {
        padding: 30px 10px;
    }

    .me p,
    .meA p {
        font-size: 1.2rem;
    }

    .meA p {
        font-size: 1.1rem;
    }

    main {
        padding: 20px 0;
        width: 100%;
    }

    article,
    aside {
        width: 80%;
        padding: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    article {
        background-color: #282828;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(187, 134, 252, 0.2);
        border-radius: 12px;
    }

    .Mbio p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .icon {
        max-width: 120px;
    }

    footer {
        padding: 15px 0;
    }
}