@font-face {
    font-family: 'DroidArabicKufi';
    src: url('asset/Droid.Arabic.Kufi_DownloadSoftware.iR_.ttf') format('truetype');
}

:root {
    --main-color: #398138;
}
/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 100px;
}

/* Background of the scrollbar track */
::-webkit-scrollbar-track {
    background: #1e1e1e; /* Dark background */
}

/* Scrollbar handle */
::-webkit-scrollbar-thumb {
    background: #7f9a5b;
    /*Greencolor*/border-radius: 10px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

/* On hover */
::-webkit-scrollbar-thumb:hover {
    background: #7f9a5b; /* Darker green on hover */
}

/* For Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: #7f9a5b #1e1e1e;
}

html{
    scroll-behavior: smooth;
}
body {
    font-family: 'DroidArabicKufi', Arial, sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
    top: 0 !important;
    box-sizing: border-box;
    position: relative;
   
}

header {
    width: 100%;
    position: relative;
    height: 100vh;
    border-radius: 5px;
}



.language-switcher img {
    width: 32px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.language-switcher img:hover {
    transform: scale(1.1);
}







.skiptranslate{
    display: none;
    
}




  

header img{
    width: 100%;
    
}

.bars{
    display: none;
}

aside {
    display: none;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

 /* small screen */
@media (max-width:767px) {
  
    header img{
        height: 45vh;
      
    }
    header{
        height: 40vh;
    }
   .navbar  .links a{
        display: none;
      
    }

    
    
   .navbar .language-switcher{
        display: none;
    }




    .bars{
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        margin-left: 10px;
        position: absolute;
        top: 15px;
        left: 20px;
    }
    .bars .bar1,.bar2,.bar3 {
        width: 30px;
        height: 5px;
        background-color: #b4b1a9;
        border-radius: 5px;
        transition: 0.3s ease;
        
    } 
    
    
    
    .bars:hover{
        cursor: pointer;
    }
    
    
    .bars.active .bar1{
        transform: rotate(50deg);
        -webkit-transform: rotate(50deg);
        -moz-transform: rotate(50deg);
        -ms-transform: rotate(50deg);
        -o-transform: rotate(50deg);
}
    .bars.active .bar2{
        opacity: 0;
       
    }
    .bars.active .bar3{
         transform: translateY(-20px) rotate(-50deg);
    }
    aside.active {
        display: block;
      }
    .aside{
        position: fixed;
        top: 0; /* تثبيته عند أعلى الصفحة */
        
        top: -25px;
        left: -2px;
       background-color:#303539;
        width: 50%;
        height: 150vh;
        z-index: 1;
    }

    .links{
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top:50px ;
        position: absolute;
        top: 100px;
    }
    
    .links a{
        color: black;
    }
    .dropdown {
        position: relative;
        display: inline-block;
        cursor: pointer;
    }
    
    .dropdown .select {
        color: white;
        /* background-color: #333; */
        padding: 10px;
        transition: background-color 0.3s, color 0.3s;
    }
    
  
    
    .dropdown-menu {
        display: none; /* Hidden by default */
        position: absolute;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(255, 255, 255, 0);
        list-style: none;
        margin: 0;
        padding: 0;
        z-index: 1000;
        width: 160px;
    }
    
    .dropdown-menu li {
        padding: 10px;
        text-align: right;
        transition: background-color 0.3s, color 0.3s;
    }
    
    .dropdown-menu li:hover {
        background-color: #f1f1f1;
        color: #000;
    }
    
    .dropdown-menu a {
        text-decoration: none;
        color: #333;
        display: block;
    }
    .Aboutus .img{
        display: none;
    }

    .product{
        display: flex;
        justify-content: center;
  align-items: center;
 
    }

}

@media (max-width:991px) {
    header img{
        height: 45vh;
      
    }
    header{
        height: 40vh;
    }
 

}






.navbar {
    position: fixed;
    top: 0px; /* Start off-screen */
    left: -20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
    transition: top 0.3s ease-in-out;
    z-index: 1000;
}

.navbar.visible {
    top: 0; /* Slide into view */
    background-color: rgb(255, 255, 255);
    
}
.navbar.visible a{
    color: #000;
    
}




  .navbar .img img {
    height: 60px;
  }

  .links {
    display: flex;
    align-items: center;
  }

  .links a {
    text-decoration: none;
    color: white;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
  }

  .links a:hover {
    color: #f90;
  }

  .dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dropdown .select {
    color: white;
    /* background-color: #333; */
    padding: 10px;
    transition: background-color 0.3s, color 0.3s;
}

/* .dropdown .select:hover {
    background-color: #f1f1f1;
    color: #000;
} */

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    width: 160px;
}

.dropdown-menu li {
    padding: 10px;
    text-align: right;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu li:hover {
    background-color: #f1f1f1;
    color: #000;
}

.dropdown-menu a {
    text-decoration: none;
    color: #333;
    display: block;
}

.landing {
    
   position: absolute;
   bottom: 35px;
   right: 39%;
   animation: upDown 2s infinite ease-in-out;

    
}

.menu-item {
    margin-bottom: 10px;
  }

  .menu-title {
    background-color: #303539;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: white;
  }

  .arrow {
    transition: transform 0.3s ease;
  }

  .submenu {
    display: none;
    background-color: rgba(255, 255, 255, 0.1);
  }

  .submenu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-align: right;
  }

  .submenu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  /* حالة تفعيل القائمة */
  .menu-item.active .submenu {
    display: block;
  }

  .menu-item.active .arrow {
    transform: rotate(180deg);
  }


.landing img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain; /* Ensures the image scales properly */
}
@keyframes upDown {
    0%, 100% {
        transform: translateY(10px); /* Start and end 10px below the original position */
    }
    50% {
        transform: translateY(-20px); /* Move up by 30px at the midpoint */
    }
}
@media (max-width: 500px){
    .imgabout img{
        width: 65%;
        height: 100%;
        margin-right: 10px;
     }
     .certificate img{
        width: 58%;
        height: 100%;
        margin-right: 10px;
     }
}
/* Styles for screens smaller than 768px */
 @media (min-width: 500px) and (max-width: 767px) {
    .landing img {
        max-width: 52%;
        max-height: 52%;
        object-fit: contain;
    }

    .landing {
        position: absolute;
        bottom: -70px;
        right:  25%;
        transform: translateX(-40%);
        text-align: center;
        -webkit-transform: translateX(-40%);
        -moz-transform: translateX(-40%);
        -ms-transform: translateX(-40%);
        -o-transform: translateX(-40%);
}
}
@media (max-width: 500px) {
    .landing img {
        max-width: 52%;
        max-height: 52%;
        object-fit: contain;
    }

    .landing {
        position: absolute;
        bottom: -70px;
        right:  20%;
        transform: translateX(-40%);
        text-align: center;
        -webkit-transform: translateX(-40%);
        -moz-transform: translateX(-40%);
        -ms-transform: translateX(-40%);
        -o-transform: translateX(-40%);
}
}



/* Styles for screens between 768px and 991px */
@media (min-width: 767px) and (max-width: 991px) {
    .landing img {
        width: 50%;
        height: 50%;
        object-fit: contain; /* Ensures the image scales properly */
    }

    .landing {
    
        position: absolute;
        bottom: 10px;
        right: 39%;
       
     
         
     }
}

/*AboutUs*/
.Aboutus{
    margin-right: 10%;
    margin-left: 10%;
    margin-top: 10%;
    padding: 20px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    

}
.Aboutus h1{
    text-align: center;
}
.Aboutinfo{
    display: flex;
    justify-content: space-between;
    
}
.Aboutus .text{
    margin-top: 5%;
    margin-left: 5%;
    margin-right: 5%;
}
.Aboutus img{
    max-width: 100%;
}

.imgabout{
display: grid;
grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
gap: 50px;
margin-bottom: 10px;


}

.imgabout img{
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    padding: 5px;
    transition: .5s ease-in-out;
}

.imgabout img:hover{

    transform: scale(1.1) ;
   
}

/*section*/
.info{
  margin-top: 15%;
  margin-bottom: 10%;
  text-align: center;
}
.product{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
    gap:20px;
    margin-right: 5%;
    margin-left: 5%;
    
}
.box{
   
   
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}

.product img:hover{
    transform: scale(1.1);
    transition:  0.3s ease-in-out;
    cursor: pointer;
}


section{
    padding-bottom: 10px;
    margin-bottom: 50px;
}

   

/*button Up*/
.h-top-link {
    display: none;
    
    width: 30px;
    height: 30px;
    text-align: center;
    background: #7f9a5b;
   
    color: #000000;
    position: fixed;
    right: 30px;
    bottom: 30px;
    padding: 5px;
    /* border-radius: 50%; */
}


.h-top-link:hover{
    cursor: pointer;
}

.h-top-link i{
    color: white;
}

.h-top-link i {
    margin-top: 10px;
}

.h-top-link:hover i {
   color: #A0C878;
}

.up{
display: block;
}

.certificate{
   
    margin-right: 10%;
    margin-left: 10%;
    padding: 20px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}

.certificateimg{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(400px,1fr));
   
gap: 50px;
margin-bottom: 10px;
width: 100%;

}
.texth1 h1{
    text-align: center;
}
.certificate img{
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    padding: 5px;
    transition: .5s ease-in-out;
    
}
.certificateimg img:hover{
    transform: scale(1.1) ;
}
/* WhatsApp Button Styling */
#whatsapp-button {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;  /* WhatsApp Green */
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

#whatsapp-button img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    
}

#whatsapp-button a {
    text-decoration: none;
    color: white;
    font-size: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

#whatsapp-button:hover {
    transform: scale(1.1);
}

#whatsapp-button:active {
    transform: scale(0.9);
}


.map-container {
    width: 100%; 
    height: 400px; /* ارتفاع ثابت على الديسكتوب */
}

.map-container iframe {
    width: 100%; 
    height: 100%; 
    border: 0;
}

/* ارتفاع مختلف حسب حجم الشاشة */
@media (max-width: 768px) {
    .map-container {
        height: 100vh;
        margin-top: 20%; /* ارتفاع أصغر على الأجهزة اللوحية */
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 100vh;
        margin-top: 20%; /* ارتفاع أصغر على الموبايل */
    }
}

.contactus{
    
    display: grid;
grid-template-columns: repeat(auto-fill,minmax(400px,1fr));
gap: 20px;
align-items: center;
margin-right:15% ;
margin-left: 15%;

}

.contactus img{
    width: 50px;
}

.contactus p{
    
    margin-bottom: -10px;
}

/*Footer*/
footer{
   
    /* background-color: #7f9a5b; */
    background-color: #212429;
    color: white;
    text-align: center;
    font-size: 15px;
    
    width: 100%;
    
  
}
.footer{
   
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(400px,1fr));
    gap: 5px;
    align-items: center;
    
}
.footer .footerLinks{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة */
    gap: 10px; /* مسافة بين العناصر */
    text-align: center; /* توسيط النص */
}
.footer .footerLinks a{
    
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: color 0.3s ease;
}



.footer .footerLinks a:hover{
    color: #f90;
}
.footer .footerLinks2 a:hover{
    color: #f90;
}

.footer img{
    height: 200px; 
    width: 200px;
}

footer p{
    padding: 0;
    margin: 0;
}

@media (max-width:767px){
    .footer img{
        width: 100px;
        height: 100px;   
    }
    .footer .footerLinks a{
        font-size: 15px;
      
    }
    .footer{
   
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(350px,1fr));
        gap: 5px;
        align-items: center;
        
    }
}