@font-face {
    font-family: 'myIranYekan';
    font-weight: normal;
    src: url("my_fonts/iranyekan/ttf/iranyekanwebregular.ttf") format('truetype'),
    url("my_fonts/iranyekan/woff/iranyekanwebregular.woff") format('woff'),
    url("my_fonts/iranyekan/woff2/iranyekanwebregular.woff2") format('woff2');
}

@font-face {
    font-family: 'myIranYekan';
    font-weight: bold;
    src: url("my_fonts/iranyekan/ttf/iranyekanwebbold.ttf") format('truetype'),
    url("my_fonts/iranyekan/woff/iranyekanwebbold.woff") format('woff'),
    url("my_fonts/iranyekan/woff2/iranyekanwebbold.woff2") format('woff2');
}

@font-face {
    font-family: 'myPinar';
    font-weight: bold;
    src: url("my_fonts/pinar/Pinar-Bold.ttf") format('truetype'),
    url("my_fonts/pinar/Pinar-Bold.woff2") format('woff2');
}
@keyframes larg-small{
    form{
          transform: scale(1);
    }
    to{
        transform: scale(1.05);
    }
}


:root{
    --primaryColor : #cb79e1;
    --secondaryColor: rgba(119, 87, 183, 0.78);
}
*{
     box-sizing: border-box;
    font-family: 'myIranYekan', "B Yekan", Tahoma, sans-serif;
}
a{
    text-decoration: none;
}

html , body{
            scroll-behavior: smooth;
        }
body{
  direction: rtl;
}
main{
   position: relative;
   overflow: hidden;
}
.overley{
    background-color:white;
   width:100%;
    height: 100%;
    position: absolute;
    bottom: -600px;
    left: 0;
    transition: all 0.4s;
   
}
#logo-overley{
    height: 100px;
}
a.bars-icon:focus .overley{
    bottom: 0px;
}
#header-overley{
    text-align: center;
   
}
#close{
    position: absolute;
    top: 0;
    left: 0;
    background: 0;
    border: 0;

}
#main-overley{
    min-height: 100px;
    display: flex;
  justify-content: center;
  
}

 ul.menu li:hover .fa-solid{
margin-right: 10px;
}


.menu-right,.menu-left{
    padding: 80px 0;
    flex-basis: 50%;
    min-height: 200px;
}
ul.menu .fa-solid{
    font-size: 17px;
   color: white;
   text-align: center;
   border-radius: 50%;
   padding: 3px;
   background-color: rgb(41, 41, 41);
}
#main-overley ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;

}
 #main-overley ul li{
     padding: 10px;
      flex-basis: 80%;
      background-color: rgb(223, 223, 223);
     color: black;
}
#main-overley ul li:hover{ 
    background-color: var(--secondaryColor);
    color: white;

}
    
main::before{
    content:"";
    width: 100%;
    height: 100%;
    background-image: url(../images/main_bg.jpg);
    background-size: cover;
    position: absolute;
    z-index: -5;
    top: 0;
    animation-name: larg-small;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: linear;
    
}
.container{
    width: 80%;
    min-height: 100px;
    margin: 0 auto;
    
}
#main-header{
   min-height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
a#logo-wrapper:link,
a#logo-wrapper:visited {
    
    display: flex;
}

a#logo-wrapper img {
    height: 70px;

}
#top-navigation {
    min-height: 40px;
    display: flex;
    align-items: center;
    column-gap: 1px;
   
}
#top-navigation ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}
#top-navigation ul li {
    display: inline-block;
    margin: 0 20px;
   
}
#top-navigation ul li a:link,
#top-navigation ul li a:visited {
 color: white;
 position: relative;
   font-weight: bold;
    transition: all 0.3s;
} 




#top-navigation ul li a:hover{
    color: var(--secondaryColor);
}
#top-navigation ul li a::after{
    content: "";
    width: 60px;
    height: 2px;
    display: inline-block;
   position: absolute;
   right: -90px;
   left: 70px;
   top: 30px;
   opacity: 0;
    background-color: var(--secondaryColor);
    transition: all 0.5s;
}
#top-navigation ul li a:hover::after{
   right: 0px;
   left: 0px;
   opacity: 1;
}
a.bars-icon:link,
a.bars-icon:visited {
    color: white;
    
}

#main-content{
    margin-top: 100px;
    text-align: center;
   
   
}
main h1{
    color: white;
    font-family: myPinar;
 
}
main span{
    color: var(--secondaryColor);
    font-family: myPinar;
}
main h2{
    color: white;
  
}
main p{
    color: gray;

}
#search-form{
     background-color:rgba(54, 53, 53, 0.8);
      margin: 50px auto;
      margin-bottom: 150px;
    padding: 10px;
    width: 60%;
    border-radius: 10px;
}

#search-text{
    background-color: transparent;
        padding: 10px;
        border: 0;
      width: calc(100% - 100px);
}
#search-text:focus{
    outline: 0;
}
#search-btn{ 
    border-radius:7px ;
    padding: 10px 20px;
    border: 0;
    color:white;
    background-color: var(--secondaryColor);
}
#search-btn:hover{
   background-color: var(--primaryColor);
}
#services{
    margin-top: 10px;
    min-height: 200px;
    position: relative;
}
h2.section-title {
    text-align: center;
    font-family: 'myPinar';
    position: relative;
}
h2.section-title::before{
    content: "";
    
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondaryColor);
}
h2.section-title::after{
    content: "";
    display: inline-block;
   position:absolute;
    top: 39px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--secondaryColor);
}
h3.section-sub-title {
    margin-top: 40px;
    text-align: center;
    color: gray;
}
#services-wrapper{
   
    min-height: 100px;
    display: flex;
    gap: 15px;
    margin: 80px 0;
    justify-content: center;
    
}
.service{
    background-color: white;
    box-shadow: 0 0 10px 5px whitesmoke;
    border-radius: 10px 20px 30px 30px ;
    min-height: 200px;
    flex-basis: 25%;
    padding: 10px;
    transition: all 0.4s;
    
}
.service:hover{
    background-color: var(--secondaryColor);
    color: white;
    transform: translateY(-15px);
}
.icon-wrapper{
    width: 49px;
    height: 60px;
    padding: 35px;
    margin: 10px auto;
    border-radius: 10px 30% 90% 40%;
    background-color: rgb(240, 240, 240);
    display: flex;
    align-items: center;
   justify-content: center;
}
.service:hover .icon-wrapper{
    transform: rotatey(180deg);
}
.icon-wrapper .fa-solid{
    color: var(--secondaryColor);
    font-size: 25px;
}
.service h3{
    text-align: center;
}
.service:hover h3{
    color: white;
}
.service p{
    color: gray;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}
.service:hover p{
    color: white;
}
a.service-link{
  display: block;
  color: var(--secondaryColor);
    text-align: center;
    margin: 20px auto;
    padding: 20px;
}
.service:hover a{
    color: white;
}
#records{
   min-height:380px;
    background-image: url(../images/bg3.jpg);
    background-attachment: fixed;
   display: flex;
   position: relative;
}
#records::after{
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 0;
    right: 0;
}
.record-wrapper{
  min-height: 100px;
  display: flex;
  gap: 20px; 
 margin: 80px auto;
 justify-content: center;
}
.record{
    min-height: 100px;
   flex-basis: 25%;
   position: relative;
}
.record .fa-solid{
    display: block;
    margin: 10px auto;
    font-size: 40px;
    position: absolute;
    top: -5px;
    left: 50px;
    right: 50px;
    z-index: 5;
    color: var(--secondaryColor);
}
.record h1{
  text-align: center;
  font-family: 'myPinar';
  color: white;
   position: absolute;
    top: 40px;
    left:50px ;
    right: 50px;
    z-index: 5;
}
.record p{
    text-align: center;
    color: white;
     position: absolute;
    top: 110px;
    left: 50px;
    right: 50px;
    z-index: 5;
}
#comments{
    min-height: 200px; 
    margin-bottom: 80px;
}
#comments-wrapper{
    min-height: 100px;
    display: flex;
    gap: 15px; 
   margin: 40px auto;
 justify-content: center;

}
.comment{
    flex-basis: 50%;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 12px 12px whitesmoke;
}
.comment p{
    color: gray;
    line-height: 30px;
    font-size: 14px;
}
.comment-header{
    
    min-height: 80px;
    background-image: url(../images/quote.svg);
    background-repeat: no-repeat;
    background-size: 50px;
    display: flex;
}
.customer-image{
    width: 100px;
    height: 100px;
    border-top: 6px solid var(--secondaryColor);
    border-right:6px solid var(--secondaryColor);
    border-bottom:6px solid rgb(236, 228, 243);
    border-left: 6px solid rgb(236, 228, 243);
    border-radius: 50%;
}
.customer-name p{
    color: gray;
    line-height: 2px;
}
.customer-name .fa-solid{
    color: rgb(245, 221, 2);
}
.customer-image img{
    width: 100%;
    border-radius: 50%;
}



ul#filters{
    border: 2px solid var(--primaryColor);
    list-style-type: none;
    display: flex;
    justify-content: center;
    column-gap: 25px;
    padding: 10px;
    margin: 50px auto;
    border-radius: 50px;
  width: 500px;
}
ul#filters li a:link,
ul#filters li a:visited{
    display: inline-block;
    color: var(--primaryColor);
    padding:5px;
}
ul#filters li a:hover,
ul#filters li a.active
{
    background-color: var(--primaryColor);
    color: white;
    border-radius: 50px;
}
#product-wrapper{
    min-height: 200px;
    display: grid;
    grid-template-columns: repeat(4,auto);
}
.product{
    min-height: 100px;
    position: relative;
    overflow: hidden;
}
.product::after{
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    background-color:rgba(238, 180, 240, 0.4);
    position: absolute;
    left: -100%;
    top: 0;
    transition: all 0.3s;
}
.product:hover::after{
    left: 0;
}
.product img{
    width: 100%;
    vertical-align: middle;
    transition: all 0.3s;
}
.product:hover img{
    transform: translate(2px ,2px);
}
.product p{
    position: absolute;
    top: 70px;
    left: 0px;
    opacity: 0;
    color: white;
    z-index: 5;
    transition: all 0.3s;
    text-align: justify;
    font-weight: bold;
}
.product p::after{
    content: "";
    display: block;
    width: 3px;
    height: 50px;
    background-color: white;
    position: absolute;
    right: -5px;
    top: 2px;
}
.product h2{
    position: absolute;
    font-family: 'myPinar';
    opacity: 0;
    z-index: 5;
    bottom: 0;
    right: 20px; 
    transition: all 0.3s;
}
.product:hover h2{
    opacity: 1;
}
.product:hover p{
    opacity: 1;
    left: 70px;
}
#teacher_wrapper{
    min-height: 100px;
    position: relative;
    display: flex;
   gap: 15px;
   justify-content: center;
   text-align: center;
   
}
.teacher{
   
    min-height: 100px;
    flex-basis: 25%;
    border-radius: 10px;
    background-color: rgb(238, 238, 238);
    position: relative;
    overflow: hidden;
}
.teacher::after{
    
    display: block;
    content: "";
    width: 100%;
   min-height: 98px;
    background-color: var(--secondaryColor);
    position: absolute;
    right: -500px;
    bottom: 0;
    transition: all 0.5s;
}
.teacher:hover::after{
    right:0;
}
.teacher img{
    width: 100%;
    border-radius: 10px 10px 0 0;

}
.teacher p{
    color: var(--secondaryColor);
}
.teacher h3{
    font-size: 20px;
}
.teacher:hover h3,
 .teacher:hover p {
   position: relative;
   z-index: 5;
   color: white;
}







ul.social-links{
    list-style-type: none;
    padding: 2px;
    border-radius: 10px;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 5px;
    opacity: 0;
    transform: rotateY(90deg) ; 
    background-color: white;
    transition: all 0.4s;
}
.teacher:hover ul.social-links{
    transform: rotateY(0)  ;
    opacity: 1;
}
ul.social-links li{
    padding: 5px;
}
ul.social-links a:link,
ul.social-links a:visited{
     color: black;
    font-size: 20px;
    transition: all 0.3s;
}
ul.social-links a:hover{
    color: var(--secondaryColor);
}
.slide-wrapper{
    width: 130px;
    min-height: 30px;
    margin: 20px auto;
   text-align: center;
}
.slide:nth-child(2){
    background-color: var(--secondaryColor);
}
.slide{
    width: 20px;
    height: 20px;
    margin: 4px;
    border-radius: 50%;
    display: inline-block;
    background-color:lightgray;
}
#communications{
    min-height: 200px;
}
#communication-wrapper{
   
    min-height: 200px;
    margin: 0 auto;
    display: flex;
    column-gap: 15px;
    justify-content: center;
}
.communication{
    min-height: 100px;
    width: 250px;
    padding: 30px;
}
.communication .fa-solid{
    font-size: 40px;
     color: var(--secondaryColor);
    margin: 20px auto;
    display: block;
}
.communication h4{
    text-align: center;
    color: gray;
}
.communication p{
    text-align: center;
    font-size: 15px;
}
#form-wrapper{
    min-height: 200px;
}
#parent{
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
}
#right,#left{
    flex-basis: 50%;
    vertical-align: top;
    min-height: 100px;
    padding: 15px;
}
.form-control{
    width: 100%;
    background-color: rgb(241, 240, 240);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 0;
}
.form-control:focus{
    
    outline-color: var(--secondaryColor);
}

#message{
  padding: 50px;
  
}
#submit-btn{
    background-color: var(--secondaryColor);
    color: white;
    padding: 10px;
    border-radius: 7px;
    border: 0;
}
#submit-btn:hover{
    background-color: var(--primaryColor);
    color: white
}
#main-footer{
    padding: 40px 0;
     background-color: var(--secondaryColor);
      background-image: url(../images/footer_bg.png);
}
#column-wrapper{
    min-height: 200px;
    display: flex;
    column-gap: 10px;
}
.column{
   
   flex-basis: 25%;

}
#logo-footer{
    width: 170px;
}
.column p{
    color: white;
    font-size: 15px;
    line-height: 30px;
    margin-bottom: 0;
}
#links-social{
    min-height: 70px;
}
ul#links-social{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    column-gap: 5px;
    align-items: center;
    justify-content: center;
}
ul#links-social a:link,
ul#links-social a:visited{
    display: inline-flex;
     border: 1px solid white;
     padding: 7px;
    border-radius: 50%;
    background-color: var(--mainColor);
    color: white;
    transition: all 0.3s;
    font-size: 15px;
     transition: all 0.3s;
}
ul#links-social a:hover{
    background-color: white;
    color: black;
    
}
ul.normal-list{
    list-style-type: none;
    padding: 0 10px;
    margin: 0;
}

.column hr{
    width: 140px;
   display: inline-block;
   margin-top: -10px;
   
}
.column h3{
    color: white;
}
.column h3::after{
      content: "";
    display: block;
    position: absolute;
    width: 70px;
    height: 3px;
    background-color:white;
    margin-top: 9px;
}

ul.normal-list li{
    margin: 10px 0;
    color: white;
}
ul.normal-list a:link,
ul.normal-list a:visited{
    color:white;
     transition: all 0.3s
}
ul.normal-list a:hover{
    color: rgb(80, 28, 129);
}
.img-btn{
    display: flex;
    width: 170px;
    margin: 3px; 
    opacity: 0.8;
     transition: all 0.3s;
}
.img-btn:hover{
   opacity: 1;
}
ul.labels{
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0 10px;
    margin: 0;
   
}
.labels li{
    margin: 3px;
   
}
ul.labels a:link,
ul.labels a:visited{
    display: flex;
    border-radius: 4px;
     padding: 7px;
    background-color: rgb(54, 53, 53);
    color: white;
    font-size: 15px;
    transition: all 0.3s;
}
ul.labels a:hover{
    background-color: rgb(85, 84, 84);
}
#copyright{
     padding: 5px;
    background-color: rgb(54, 54, 54);
    color: rgb(199, 195, 195);
   
   text-align: center;
}
#copyright .container{
   min-height: 40px;
}
#copyright p{
    line-height: 10px;
}
#developer .fa-solid{
    color:red;
}




