* {
    box-sizing: border-box;
}



body {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, sans-serif;
    background-color: #a9b3b9;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
}

main {
    padding: 25px;
}

.brand {
    position: relative;
    width: 100%;
    height: 70%;
    text-align: center;
    margin: 0;
    padding: 0;
}

.brand img {
width: 170px;
margin-right: 35px;
height: 125px;
position: absolute;
right: 0
}

.brand span {
    color: #f3f2f8;
    font-size: 50px;
    margin-bottom: 50px;
    font-family: "Nastaliq";
    font-weight: bold;
    position: relative;
    top: 15px;
}

@font-face {
    font-family: "Nastaliq";
    src: url("fonts/IranNastaliq.ttf");
}

header  {
   
    background-color: #3a256fcf;
    width: 100%;
    border: 2px solid whitesmoke;
    border-radius: 10px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    
}

div {
    margin-right: 30px;
}

footer {
    background-color: #3c1b8f;
    
    color: #f3f2f8 !important;
    text-decoration: none !important;
    margin-top: auto;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px  25px;

}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 70px;
}

.footer-social img  {
    width: 30px;
    height: 30px;
}


 
footer img {
    width: 30px;
}


h3 a {
    color: #f3f2f8 ;
    text-decoration: none !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.5s;
}

h3 a:hover {
    color: #ffb20b;
    transform: scale(1.3);
}

    

span {
     direction: rtl;
    text-align: right;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}

nav  {
   
    background-color: #8588f5;
    padding: 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    border: 2px solid whitesmoke;
    opacity: 1;

}

nav a{
    color: aliceblue;
    margin-right: 50px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: 0.5s;
    
}

nav a:hover {
    color: #ffb20b;
    transform: scale(1.1);
}

h1  {
    padding: 20px;
    
}

.service {
    background-color: rgb(196, 239, 239);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.service h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service p {
    line-height: 2;
    margin: 25px;
}

.service-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    padding: 0;
    margin 0;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
    
}

.service-images img:hover {
    transform: scale(1.1);
}

.service-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;

}

.menu-toggle {
    display: none;
}

#about > h2 {
    transform: translateX(-50px);
}

@media (max-width: 768px)  {

    .menu-toggle {
        display: block;
        font-size: 28px;
        background: none;
        border: none;
        color: beige;
        cursor: pointer;
    }

    nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px  5px;
    }
    nav a {
        margin-right: 0;
        font-size: 14px;
        display: none;
    }

    nav.open a {
        display: block;
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }

    nav.open {
        flex-direction: column;
        height: auto;
    }

    .brand {
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .brand span {
        font-size: 26px;
        position: static;
        margin: 0;
        text-align: center;
    }
    .brand img {
        width: 85px;
        height: auto;
        position: static;
        margin: 0 10px;
        transform: translateX(10px);
    }
    .service-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service img {
        width: 140px;
        height: 140px;
        object-fit: cover;
        border-radius: 50%;
        margin: 0 auto;
        display: block;
    }

    .service {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .service p {
        margin: 10px;
        line-height: 2;
        font-size: 15px;
        text-align: justify;
    }
    .service h3 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 15px;
    }

    #about > h2 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 25px;
        transform: none;
    }

    body {
        width: 100%;
    }
    main {
        width: 100%;
        padding: 10px;
    }
    .about p {
        width: 100%;
        margin: 0;
        text-align: justify;
        line-height: 2;
        padding: 10px;
    }
    
    #about {
        width: 100%;
        
    }

    #about p {
        width: 100%;
        margin: 0;
        padding: 10px;
        text-align: justify;
        line-height: 2;
    }
    .about {
        width: 100%;
        margin-right: 0;

    }
    .about h2 {
        text-align: center;
    }


    footer {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 120px;
        flex-wrap: wrap;
        padding: 15px;

    }

    footer > div {
        width: 100%;
        margin: 0;
        text-align: center;

    }
    .footer-social {
        width: 80px;
        margin: 15px auto;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .footer-social img {
        width: 40px;
        height: 40px;
    }


    div {
        margin-right: 0;
    }

    header {
        height: auto;
    }
}








