@font-face {
    font-family: "semiBold";
    src: url(../Fonts/cairo/Cairo-SemiBold.ttf);
}
@font-face {
    font-family: "regular";
    src: url(../Fonts/cairo/Cairo-Regular.ttf);
}
@font-face {
    font-family: "bold";
    src: url(../Fonts/cairo/Cairo-Bold.ttf);
}
*{
    margin: 0px;
    box-sizing: border-box;
    direction:rtl;
    text-decoration:none;
    font-family: 'regular';
}

/***************************** Global Style *****************************/
h1 , h2 , h3{
    font-family: "bold";
}
h4 , h5 , h6{
    font-family: "semiBold";
}
p{
    font-size: 12px;
    font-family: 'regular';
}
a{
    transition: all .3s ease-in-out;
    &:hover{
        text-decoration:none
    }
    &:focus{
       outline:0
    }
}
ul{
    list-style-type:none
}
button:active,
button:active:focus,
button:active:hover,
button:focus,
button:hover,
button:not(:disabled):not(.disabled).active,
button:not(:disabled):not(.disabled):active {
    transition: all .5s ease;
    outline: 0
}
.form-control{
    &::placeholder{
        font-size: 12px;
    }
    &:focus{
        border: 1px solid #3a5e79;
        outline-color: transparent;
        box-shadow: none;
    }
}
.scroll-top-btn{
    display: inline-block;
    width: 50px;
    height: 50px;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    background: linear-gradient( #59cfe0, #59cfe0);
    color: #000;
    text-align: center;
    line-height: 50px;
    position: fixed;
    bottom: 0px;
    left: 0px;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease-in-out;
    &:hover {
        background: linear-gradient( #3a5e79, #3a5e79);
        color: #fff;
    }
    i{
        transition: all 0.1s ease;
        position: relative;
        right: 9px;
        top: 10px;
    }
}
//animations
@keyframes third {
    0% {
      width: 0;
    }
    
    50% {
      width: 100%;
      height: 5px;
    }
    
   100% {
      height: 100%;
      width: 100%;
    }
}
@keyframes pulse-border {
    0% {
      transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
      opacity: 1;
    }
    100% {
      transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
      opacity: 0;
    }
}
//start edit navbar

.bg-light {
    background-color: #fff!important;
}
.navbar{
    .navbar-toggler
    {
        width: 40px;
        height: 40px;
        cursor: pointer;
        position: relative;
        right: 10px;
        background-color: transparent;
        border: none;
        &.active{
            .navbar-toggler-icon {
                box-shadow: 0px 0px 0px grey;
                background: rgba(0, 0, 0, 0);
                &::before {
                    top: 0px !important;
                    transform: rotate(45deg);
                }
                &::after {
                    top: 0px !important;
                    transform: rotate(135deg);
                }
            }
        }
        &:focus{
            outline-color: transparent;
        }
        .navbar-toggler-icon
        {
            width: 25px;
            height: 3px;
            background: #3a5e79;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: 0.5s;
            &::after,
            &::before
            {
                content: "";
                position: absolute;
                width: 25px;
                height: 3px;
                background: #3a5e79;
                transition: 0.5s;
            }
            &::after{
                top: -10px;
                right: 0px;
            }
            &::before{
                top: 10px;
                right: 0px;
            }
        }

    }
    .nav-item{
        margin: 0px 8px;
        text-align: center;
        .nav-link{
            position: relative;
            &::before{
                content: '';
                position: absolute;
                bottom: 12px;
                left: 12px;
                width: 12px;
                height: 12px;
                border: 2px solid #3a5e79;
                border-width: 0 0 2px 2px;
                transition: all .5s ease-in-out;
                opacity: 0;
            }
            &::after{
                content: '';
                position: absolute;
                top: 12px;
                right: 12px;
                width: 12px;
                height: 12px;
                border: 2px solid #3a5e79;
                border-width: 2px 2px  0 0;
                transition: all .5s ease-in-out;
                opacity: 0;
            }
            &:hover, &.active{
                background-color: #3a5e79;
                color: #fff;
                &::before{
                    bottom: -5px;
                    left: -5px;
                    opacity: 1;
                }
                &::after{
                    top: -5px;
                    right: -5px;
                    opacity: 1;

                }
            }
        }
    }
}

//start edit header
header{
    position: relative;
    .carousel-item{
        background: url(../images/header.png);
        background-size: cover;
        background-repeat: no-repeat;
        padding: 200px 0px;
        .text-content{
            color: #fff;
            p{
                padding-top: 1rem;
            }
        }
    }
    .select-service{
        position: absolute;
        right: 50%;
        transform: translateX(50%);
        padding: 15px;
        box-shadow: 0px 0px 10px 0px #999;
        bottom: -55px;
        background-color: #fff;
        width: 40%;
        padding-top: 1.375rem;
        .form-inline{
            .form-group{
                position: relative;
                width: 75%;
                .form-control{
                    width: 100%;
                    padding: 0px 10px;
                    border-radius: 0px;

                }
            }
            .btn-primary{
                background-image: linear-gradient(to bottom , #59cfe0 ,  #3a5e79 );
                border-color: #59cfe0;
                border-radius: 0px;
                transition: all .5s ease-in-out;
                &:hover{
                    background-image: linear-gradient(to bottom , #3a5e79 ,  #59cfe0 );
                }
            }
        }
    }
}
//start edit services yatrhrb
.services{
    padding: 140px 0px 50px;
    background-color: #f5f5f5;
    .services-carousel{
        &.owl-theme .owl-nav{
            display: none;
        }
        &.owl-theme .owl-dots {
            padding: 20px 0px;
        }
        &.owl-theme .owl-dots .owl-dot.active span {
            background: #3a5e79;
        }
        .card{
            &::after {
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                height: 5px;
                width: 0px;
                content: '';
                z-index: 1;
                transition: all .5s ease-in-out;
            }
            &:hover{
                &::after{
                    background: #3a5e79;
                    animation: third 1.5s ease-in-out forwards ;
              
                }
                .card-icon{
                    filter: invert(100%) sepia(7%) saturate(19%) hue-rotate(209deg) brightness(225%) contrast(95%);
                }
                h6{
                    color: #fff;
                }
                .card-body{
                    color: #ccc;
                }
            }

  
            .card-header{
                display: inline-flex;
                background-color: transparent;
                border-bottom: none;
                padding: 1.75rem 1.25rem;
                z-index: 9;
                .card-icon{
                    width: 50px;
                    height: 50px;
                    margin-left: 50px;
                    transition: all 1.5s ease-in;
                }
                h6{
                    padding-top: 5px;
                    transition: all 1.5s ease-in;
                }
            }
            .card-body{
                padding: 0rem 1.25rem 1.25rem 1.25rem;
                line-height: 1.8rem;
                color: #666;
                z-index: 9;
                transition: all 1.5s ease-in;

            }
        }
    }
}
//start edit brief section
.brief{
    padding: 50px 0px;
    background-color: #f5f5f5;
    overflow-x: hidden;
    .image-content{
        width: 100%;
        height: 450px;
        box-shadow: -4px 3px 10px 0px #999;
        img{
            width: 100%;
            height: 100%;
            object-fit: cover;

        }
        .overlay{
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background-color: #3a5e79;
            opacity: .4;
        }
    }
    .brief-text{
        padding: 50px;
        background-image: linear-gradient(to left , #3a5e79 ,  #59cfe0 );
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        h6{
            color: #fff;
        }
        p{
            color: #eee;
            line-height: 1.6rem;
            margin: 1.8rem 0px;

        }
        .more-btn{
            color: #fff;
            font-size: 14px;
            border: 1px solid transparent;
            padding: .375rem;
            &:hover{
                border: 1px solid #f5f5f5;;
            }
        }
    }
}
//start edit latest projects section
.latest-projects{
    padding: 50px 0px;
    background-color: #f5f5f5;
    .item{
        margin-bottom: 25px;
        figure{
            width: 100%;
            img{
                width: 100%;
                height: 200px;
                object-fit: cover;
            }
            figcaption{
                .text-content{
                    position: relative;
                    top: 50%;
                    transform: translateY(-50%);
                    p{
                        color: #ccc;
                    }
                }
            }
        }
        [class*=" imghvr-"], [class^=imghvr-] {
            background-color: rgb(75,154,176);
        }
        [class*=" imghvr-"] figcaption, [class^=imghvr-] figcaption {
            background-color: #3a5e79;
        }
 
    }
}
//start edit clients section
.clients{
    padding: 50px 0px;
    background-color: #f5f5f5;
    .clients-carousel{
        &.owl-theme .owl-nav{
            display: none;
        }
        &.owl-theme .owl-dots {
            padding: 20px 0px;
        }
        &.owl-theme .owl-dots .owl-dot.active span {
            background: #3a5e79;
        }
        .item{
            height: 200px;
            position: relative;
            img{
                width: 100%;
                height: 100%;
            }
            .overlay{
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                opacity: .5;
                background-color: #eee;
                transition: all .3s ease-out;
            }
            &:hover{
                .overlay{
                    opacity: 0;
                }
            }
        }
    }
}

//start edit footer
footer{
    padding: 50px 0px;
    background-color: #3E6C85;
    .content{
        display: grid;
        color: #fff;
        margin: 5px;
        h6{
            margin-bottom: 1rem;
        }
        a{
            color: #ccc;
            margin: 2px 0px;
            font-size: 12px;
        }
        .btn-primary{
            background-color: #3a5e79;
            border-color: #3a5e79;
            transition: all .3s ease-in-out;
            &:hover{
                background-color: #59cfe0;
                color: #3a5e79;
            }
        }
    }
}
.copywrite{
    background-color: #3a5e79;
    padding: 10px 0px;
    color: #fff;
    p{
        margin-bottom: 0px;
    }
    a{
        margin: 0px 10px;
        transition: all .1s ease-in-out;
        color: #fff;
        &:hover{
            color: #59cfe0;
        }
    }

}
/************************* Start edit page of IT ***************************/
//start edit it header
.it-header{
    .carousel-item{
        background: url(../images/it-header.jpg);
        background-repeat: no-repeat ;
        background-size: cover;
        background-attachment: fixed;
    }
}
.control-system .image-content .overlay {
    background-color: #000;
}
.video{
    padding: 50px 0px;
    .video-inner{
        background: url(../images/access-control-1.jpg);
        height: 60vh;
        background-size: cover ;
        background-repeat: no-repeat;
        position: relative;
        .overlay{
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background-color: #333;
            opacity: .4;
        }
        .play-video{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            color: #fff;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: transparent;
            display: block;
            text-align: center;
            &::before {
                content: "";
                position: absolute;
                z-index: 0;
                left: 50%;
                top: 50%;
                transform: translateX(-50%) translateY(-50%);
                display: block;
                width: 60px;
                height: 60px;
                background: #3E6C85;
                border-radius: 50%;
                border: 2px solid #fff;
                animation: pulse-border 1500ms ease-out infinite;
              }
            i{
                position: relative;
                top: 13px;
            }
            &:hover{
                background-color: #fff;
                color: #3a5e79;
            }
        }
    }
}
/************************* Start edit page of Sensors ***************************/
//start edit sensor header
.sensors-header{
    position: relative;
    padding: 130px 0px;
    background: url(../images/sensors-header.png);
    background-repeat: no-repeat ;
    background-size: cover;
    background-attachment: fixed;
    background-position: bottom;
    .overlay{
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: #eee;
        opacity: .3;
        z-index: 9;
    }
    .sensors-carousel{
        position: relative;
        z-index: 99;
        &.owl-theme .owl-nav{
            display: none;
        }
        &.owl-theme .owl-dots {
            padding: 20px 0px;
        }
        &.owl-theme .owl-dots .owl-dot.active span {
            background: #3a5e79;
        }
       .card{
           background-color: #fff;
        .image-content{
            width: 100%;
            height: 200px;
            img{
                width: 100%;
                height: 100%;
                object-fit: contain;

            }
        }
       }
    }
}
.lg-video{
    height: 50vh; 
    background-size: cover !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow-x: hidden !important;
    .overlay{
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: #333;
        opacity: .3;
    }
    .play-video{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        color: #3a5e79;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #fff;
        display: block;
        text-align: center;
        &::before {
            content: "";
            position: absolute;
            z-index: 0;
            left: 50%;
            top: 50%;
            transform: translateX(-50%) translateY(-50%);
            display: block;
            width: 60px;
            height: 60px;
            background: #fff;
            border-radius: 50%;
            animation: pulse-border 1500ms ease-out infinite;

          }
        i{
            position: relative;
            top: 13px;

        }
        &:hover{
            background-color: #3a5e79;
            color: #fff;
        }
    }
}
.sensor-description{
    padding: 50px 0px;
    overflow-x: hidden;
    .image-content{
        width: 100%;
        height: 420px;
        img{
            width: inherit;
            height: inherit;
            object-fit: contain;
        }
    }
}
.tasks{
    .brief-text{
        background-image: linear-gradient(to left, #fff, #fff);
        h6{
            color: #000;
        }
        p{
            color: #555;
        }
    }
    .image-content {
        box-shadow: none;
    }
}