*{
    box-sizing: border-box;
}

@font-face {
    font-family: 'yekan';
    src: url(img/Yekan.woff2) format('woff2'),;
}

body{
    margin: 0;
    padding: 0;
    font-family: 'yekan';
}

a{
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.container{
    width: 90%;
    margin: auto;
}

header{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(5, 0, 78, 1);
    color: white;
    padding: 20px;
}

#two{
    display: none;
}

.logo{
    width: 50%;
}

.logo img{
    width: 15%;
    margin-left: 100px;
}

nav{
    width: 50%;
}

nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
}

nav ul li{
    list-style: none;
    margin: 0 20px 0 20px;
}

nav a{
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
    overflow: hidden;
}

nav a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 0, 0, 1);
    transition: 0.5s;
}

nav a:hover::after{
    left: 0;
}

#drop-p{
    position: relative;
}

#dropdown{
    position: absolute;
    top: 60%;
    right: 13%;
    background-color: rgba(5, 0, 78, 1);
    z-index: 10;
    padding: 10px;
    text-align: right;
    border-radius: 10px;
    display: none;
    border: 2px solid white;
    color: white;
}

#dropdown a{
    display: block;
    margin-top: 10px;
}

#two-drop{
    position: absolute;
    top: 60%;
    right: 13%;
    background-color: rgba(5, 0, 78, 1);
    z-index: 10;
    padding: 10px;
    text-align: right;
    border-radius: 10px;
    display: none;
    border: 2px solid white;
    color: white;
}

#two-drop a{
    display: block;
    margin-top: 10px;

}  

.show{
    display: block !important;
}

.hide{
    display: none !important;
}

.down{
    position: absolute;
    top: 37%;
    right: 17%;
}

.banner{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(5, 0, 78, 1);
    width: 100%;
    padding-bottom: 20px;
}

.banner img{
    margin-right: 200px;
    width: 20%;
}

.banner div{
    margin-left: 200px;
    text-align: right;
}

.banner h1{
    font-size: 50px;
}

.banner p{
    font-size: 20px;
}

.aboutus{
    margin-top: 400px;
    text-align: right;
}

.aboutus h2{
    font-size: 40px;
    position: relative;
}

.aboutus h2::after{
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 125px;
    height: 3px;
    background-color: rgba(255, 0, 0, 1);
}

.aboutus h3{
    font-size: 30px;
}

.aboutus p{
    font-size: 20px;
    opacity: 70%;
}

.product-title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    margin-top: 100px;
}

.product-title h3{
    font-size: 40px;
    position: relative;
}

.product-title h3::after{
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 0, 0, 1);
}

.product-title a{
    font-size: 20px;
    padding-left: 20px;
    position: relative;
}

.arrow{
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.products{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    margin-top: 50px;
}

.products h3{
    cursor: pointer;
}

.product-card{
    width: 30%;
    text-align: center;
}

.product-card img{
    width: 100%;
    box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.75);
    border-radius: 20px;
}

.product-card img:hover{
    transform: scale(1.1);
    transition: .5s;
}

.product-card a{
    font-size: 20px;
    font-weight: 600;
    background-color: rgba(255, 0, 0, 1);
    width: 70%;
    padding: 7px;
    border-radius: 10px;
    margin-top: 20px;
}

.product-card a:hover{
    background-color: rgba(5, 0, 78, 1);
    color: white;
    transition: .5s;
}

.product-card2{
    width: 30%;
    text-align: center;
    background-color: rgba(5, 0, 78, 1);
    padding-bottom: 20px;
    border-radius: 20px;
    box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.75);
}

.product-card2 img{
    width: 100%;
    height: 300px;
    border-radius: 20px 20px 0 0;
}

.product-card2 h3{
    color: white;
    font-size: 25px;
    margin-bottom: 0;
}

.product-card2 a{
    font-size: 20px;
    font-weight: 600;
    background-color: rgba(255, 0, 0, 1);
    color: black;
    width: 70%;
    padding: 7px;
    border-radius: 10px;
    margin-top: 20px;
}

#mid{
    background-color: white;
}

#mid h3{
    color: black;
}

#mid a{
    background-color: white;
    border: 2px solid rgba(255, 0, 0, 1);
}

footer{
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: row-reverse;
    margin-top: 100px;
    padding: 50px;
    background-color: rgba(5, 0, 78, 1);
    color: white;
    text-align: right;
}

.footer-item{
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-item h3{
    font-size: 30px;
}

.footer-item p{
    font-size: 20px;
}

.footer-item a{
    font-size: 20px;
    margin-top: 10px;
    padding-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.footer-item a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 0, 0, 1);
}

.footer-item a:hover::after{
    left: 0;
    transition: .5s;
}

.footer-item img {
    width: 70%;
    display: block;
    text-align: center;
    margin-left: 50px;
}

@media (min-width: 1600px){
    .down{
        top: 40%;
        right: 20.2%;
    }

    .aboutus{
        margin-top: 600px;
    }

    .product-card2 img{
        height: 375px;
    }
}


@media (max-width: 768px) {
    header{
        display: none;
    }

    #two{
        display: flex;
        justify-content: space-between;
        align-items: top;
        text-align: right;
    }

    #two nav{
        width: 100%;
        display: none;
        position: absolute;
        top: 120px;
        right: 0px;
        z-index: 1000;
        background-color: rgba(5, 0, 78, 1);
    }

    #two ul{
        display: block;
    }

    #two li{
        display: block;
    }

    #two .logo{
        width: 50%;
        text-align: center;
        padding-top: 20px;
    }

    #two .logo img{
        margin: 0;
        width: 25%;
    }

    #two-down{
        position: absolute;
        top: 45%;
        right: 15%;
    }

    #two-drop{
        top: 0%;
        right: 20%;
    }
    
    #hamburger{
        width: 50%;
    }

    #close{
        width: 50%;
        display: none;
    }

    /* .banner{
        padding-top: 100px;
    }

    .banner img{
        width: 30%;
        margin: 0;
    }

    .banner div{
        margin: 0;
        margin-left: 50px;
    }

    .banner h1{
        font-size: 40px;
    }

    .banner p{
        font-size: 16px;
    } */

    .aboutus{
        margin-top: 0;
    }

    .products{
        display: block;
        text-align: right;
    }

    .product-card{
        display: inline-block;
        width: 48%;
        margin-bottom: 50px;
        margin-left: 10px;
    }

    .product-card2{
        display: inline-block;
        width: 48%;
        margin-bottom: 50px;
        margin-left: 10px;
    }

    .product-card2 img{
        height: 200px;
    }

    .product-card2 h3{
        font-size: 20px;
    }

    .footer-item a{
        font-size: 14px !important;
    }

    #contactus p{
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    #two nav {
        width: 100%;
        display: none;
        position: absolute;
        top: 80px;
        /* right: 10px; */
        z-index: 1000;
        background-color: rgba(5, 0, 78, 1);
    }

    #two-down{
        position: absolute;
        top: 46%;
        right: 22.5%;
    }

    #two-drop {
        top: 10%;
        right: 30%;
    }

    /* .banner{
        display: block;
        padding-top: 100px;
    }

    .banner img{
        width: 40%;
        margin: auto;
    }

    .banner div{
        width: 100%;
        margin: 0;
    }

    .banner h1{
        font-size: 40px;
    } */

    .aboutus{
        margin-top: 0px;
    }

    .aboutus p{
        font-size: 22px;
        text-align: justify;
        direction: rtl;
    }

    .product-title h3{
        font-size: 30px;
    }

    .products{
        display: block;
    }

    .product-card{
        width: 100%;
        margin-bottom: 50px;
    }

    .product-card2{
        width: 100%;
        margin-bottom: 50px;
    }

    .product-card2 img{
        height: 250px;
    }

    footer{
        display: block;
    }

    .footer-item{
        width: 100%;
        margin-bottom: 50px;
        align-items: center;
    }

    .footer-item img{
        width: 50%;
    }

    .footer-item a{
        font-size: 20px !important;
    }

    #contactus p{
        font-size: 20px !important;
    }
}