
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root{
    --black:#272d3b;
    --bleu:#ed176f;
    --coral:#f7817f;
    --blue:#304c98;
    --red:#578cd6;
    --white:#ffffffee;
    --gradient:linear-gradient(90deg, var(--blue),var(--red));
   
}

*{
    font-family: "Noto Sans Arabic", sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;  border: none;
    text-transform: capitalize;
    text-align: center;
    
}



html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

section{
    padding: 3rem 9%;
    overflow-x: hidden;
}


.color{
    width: 400px;
    height: 300px;
    content: '';
    background-image: linear-gradient(
      45deg, #dc422a, blue
    );
    position: absolute;
    z-index: -1;
    border-radius: 20% 30% 80% 10%;
    filter: blur(150px);
    top: 68%;
    left: 10%;
    transform: translate(-10%, -50%);
    transition: 1s;
  }



  header{
    position: fixed;
    top: 0; left: 0; right: 0;
    background:var(--white);
    z-index: 100;
    padding-left: 1rem ;
    padding-right: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
   
    
    
}

header .logo{
    font-weight: bolder;
    color: #000000;
    font-size: 2.5rem;
    padding-left: 11.5rem ;
    font-family: "Nunito", sans-serif;  
    
}

header .flag{
  
 
  position: fixed;
}
 header .flag img{
  width: 35px;
}

header .navbar a{
  
    font-size: 2rem;
    margin-left: 2.5rem;
    color: #000000;


}

header .navbar a:hover{
    color: var(--blue);
}






#categories{
    
    font-size: 1.5rem;
    padding-bottom: 10rem;
   
}

.about{
    padding-top: 11rem;
   font-size: 1.5rem;
 
  width: 80%;
   margin-right: auto;
  margin-left: auto;

 
}

.about h2{
    padding-top: 20px;
    font-size: 36px;
  font-weight: 500;

    text-align: center;
  
}

.about p{
    padding: 20px 0;
   
    text-align: justify;
    width: 100%;
    

    
}

#categories h2{
    font-size: 4rem;
   text-align: center;
   
} 




.grid{
    margin-top: 4rem;
    display: grid;
    gap: 4rem;
}

.card{
    display: grid;
    gap: 2rem;
    overflow: hidden;
}

.card img{
    height: 200px;
    object-fit: cover;
}



.card h4{
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3c60;
    text-align: center;
}


.about h2{
    opacity: 0;
    animation: showContent 0.5s 0.2s ease-in-out 1 forwards;
}

.about p{
    opacity: 0;
    animation: showContent 0.5s 0.4s ease-in-out 1 forwards;}


@keyframes showContent{
    from{
        transform: translateY(50px);
        filter: blur(30px);
    }to{
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }}



    .grid img{
        opacity: 0;
        animation: itemshow 0.5s 0.6s ease-in-out 1 forwards;
    }
    .grid .cardcontent{
        opacity: 0;
        animation: itemshow 0.5s 0.6s ease-in-out 1 forwards;
    }
    
    

    @keyframes itemshow{
        from{
            transform: translatey(50px);
            filter: blur(30px);
        }to{
            transform: translatey(0);
            opacity: 1;
            filter: blur(0);
        }}


    
 










        @media screen and (max-width:400px){


            .carousel .list .item{
              width: 90%;
            }
        
           
            .carousel .list .detail .specifications{
              overflow: auto;
            }
        
        
        
        
            html{
              overflow-x: hidden;
            }
          
          header .navbar{
            position: absolute;
            left: 70%;
            
            
          
          }
          
            header .navbar a{
              margin: 3px;
          
              font-size: 1.1rem;
          
              
          
          
          }
          
            
          
          
            header .logo{
              
              
              font-size: 15px;
              padding-left: 8.5rem;
              position: absolute;
              
              
          }
          
          
          
          
          
           header .flag img{
            padding-left: 0;
            width: 25px;
          }
          
          
          
          
          
          
          
          
          
          
            .carousel .list .item{
              width: 100%;
              font-size: 10px;
            }
          
            .carousel{
              height: 600px;
            }
            .carousel .list{
              height: 100%;
            }
          
            .carousel .list .item .intro{
              width: 50%;
            }
          
            .carousel .list .item img{
              width: 55%;
            }
          
             .carousel.showDetail .list .item .detail .title{
              font-size: 2em;
            }
          
            .carousel .list .item .intro .title{
              font-size: 1.5em;
            }
          
            .carousel.showDetail .list .item .detail .des{
              height: 100px;
              overflow: auto;
            }
            .carousel .list .item .intro .topic{
              font-size: 1.8em;
              font-weight: 400;
              
            }
          
        
           
          
         
          
          
        
          }









    

@media (width > 540px) {
 
    section{
        overflow-x: hidden;
      }




.card{
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.card img{
   
    height: 350px;
}
.card:nth-child(2) .cardcontent {
    order: -1;
}



}

@media (width < 995px) {
 
    html{
        overflow-x: hidden;
      }

.card{
    display: block;
}
   
    }


@media screen and (max-width:991px){

   
    html{
        overflow-x: hidden;
      }
    

    

}



@media screen and (min-width:410px) and (max-width:767px) {
    html{
      overflow-x: hidden;
    }
  
  header .navbar{
    position: absolute;
    left: 70%;
    
    
  
  }
  
    header .navbar a{
      margin: 3.5px;
  
      font-size: 1.5rem;
  
      
  
  
  }
  
      
        .color{
        top: 95%;
        filter: blur(170px);

      }
    
      
      
        header .logo{
          
          
          font-size: 15px;
          padding-left: 8.5rem;
          position: absolute;
          
          
      }
      
      
      
      
      
       header .flag img{
        padding-left: 0;
        width: 25px;
      }

  

  
}





