* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    direction: rtl;
    font-family: 'danal';
}

body {
    background-color: #f3f4f6;
    color: #464646;
    padding: 2rem;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-family: 'danab';
    font-size: 2.5rem;
}

.top-menu-item a.active {
    font-family: 'danam';
    color: #40a2e3;
}

.a-btn {
    width: 30px;
    height: 30px;
    background-color: #40a2e3;
    color: #ffffff;
    border-radius: 4px;
    font-family: 'cr';
    display: flex;
    align-items: center;
    justify-content: center;
}

.a-btn:hover {
    background-color: #464646;
}

.a-btn-2 {
    width: 30px;
    height: 30px;
    background-color: #f0eeee;
    color: #464646;
    border-radius: 4px;
    font-family: 'cr';
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.a-btn-2:hover {
    background-color: #ffffff;
}

.icon-2 {
    width: 20px;
    height: 20px;
}

.icon {
    width: 30px;
    height: 30px;
}

#top-logo {
    width: 64px;
}

.top-menu {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.top-menu-logo {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.top-menu-empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
}

.top-menu-item {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.top-menu-item a:hover {
    color: #40a2e3;
}

.mobile-menu {
    display: none;
}

.opened-mobile-menu {
    display: none;
}

.overlay {
    display: none;
}

.container {
    width: 100%;
    height: 85%;
    display: flex;
    justify-content: center;

}

.container-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
}

.container-details-title {
    display: flex;
    flex-direction: column;
}

.container-details-title-name {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.container-design {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.container-design-circle {
    position: relative;
    width: 270px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.container-design-circle img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 270px;
    max-width: 350px;
    /* height: 450px; */
    transform: translate(-50%, -50%);
    object-fit: fill;
    border-radius: 50%;
    z-index: 1;
}



.container-end {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
    align-items: flex-end;
}


.about-container h1 {
    font-size: 2rem;
}

.about-container h2 {
    font-size: 2rem;
    font-family: 'danab';

}

.about-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    text-align: right;
    padding-top: 4rem;
    margin-bottom: 4rem;
    gap: 32px;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

}

.p-container {
    display: flex;
    width: 100%;
    height: 95%;
    flex-direction: column;
}

.p-container1 {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: row;
}

.p-container2 {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: row;
}

.p-container3 {
    display: flex;
    width: 100%;
    height: auto;
    flex-direction: row;
}

.p-container-descriptopn {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
}


.p-container-descriptopn-div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p-container-descriptopn h2 {
    font-family: 'danab';
    font-size: 1.5rem;
}

.p-container-mockup {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.p-container-mockup img {
    width: 90%;
}

.p-container-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 16px;
    margin-top: auto;
    padding-bottom: 4px;
}

.p-container-counter-d {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background-color: #d5d5d5;
}

.p-container-counter-active {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background-color: #959595;
}






@media (max-width: 992px) {

    body {
        padding: 1rem;

    }

    button {
        all: unset;
    }

    .top-menu {
        display: none;
    }

    .mobile-menu {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    #mobile-menu-icon-close {
        display: none;
    }

    .opened-mobile-menu a[role="menuitem"].active {
        font-family: 'danab';
        color: #40a2e3;
    }


    .opened-mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background: #f3f4f6;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 60px 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .opened-mobile-menu a:hover {
        color: #40a2e3;
    }

    .overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.703);
        z-index: 999;
        display: none;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-buttons {
        display: flex;
        flex-direction: row;
        gap: 4px;
    }

    .container {
        display: flex;
        height: 100%;
        flex-direction: column;
    }

    .container-end {
        display: none;
    }

    .container-details {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .container-design {
        margin-top: auto;
    }

    .ctrl {
        display: flex;
        flex-direction: row;
        height: 100%;
        align-items: flex-end;
        justify-content: flex-end;
        gap: 8px;
    }

    .about-container {
        padding-top: 2rem;
    }

    .p-container {
        padding-top: 24px;
    }

    .p-container1 {
        flex-direction: column;
        height: auto;
    }


    .p-container2 {
        flex-direction: column;
        height: auto;
    }


    .p-container3 {
        flex-direction: column;
        height: auto;
    }

    .p-container-descriptopn {

        align-items: center;
        text-align: center;

    }

    .p-container-mockup {
        align-items: center;
        justify-content: center;

    }




}


@font-face {
    font-family: 'danab';
    src: url('fonts/db.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'danam';
    src: url('fonts/dm.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'danal';
    src: url('fonts/dl.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cr';
    src: url('fonts/cr.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.p-container1 {
    display: flex;
    transition: opacity 0.5s ease;
}

.p-container2,
.p-container3 {
    display: none;
    /* ابتدا فقط دیو فعال نمایش داده شود */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.p-container1.show,
.p-container2.show,
.p-container3.show {
    display: flex;
    opacity: 1;
}