/*general*/

html{
  --main-color: #6a00e0;
  --secondary-color: #0ab3f4;
  --gradient-bg: linear-gradient(to right, #6a00e0, #0ab3f4);
  scroll-behavior: smooth;
}

html[dir="rtl"]{
  --gradient-bg: linear-gradient(to left, #6a00e0, #0ab3f4);
}

body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
  z-index: 1;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-image: linear-gradient(to bottom, var(--secondary-color), var(--main-color));
  border-radius: 25px;
}

::-webkit-scrollbar-track {
  background-color: #fff;
}

::selection {
  color: #fff;
  background-color: var(--secondary-color);
}

@keyframes preloader {
  0% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(-50px) scale(1);
  }
  50% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transform: translateX(0) scale(1.2);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(50px) scale(1);
  }
}

section{
  margin-bottom: 6rem !important;
}

h1,
h2 {
  font-size: 1.8rem;
}

h1,
h2,
h3,
h3 {
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.2rem;
}

ol,
ul {
  padding-left: unset;
  padding-inline-start: 2rem;
}

.color-main {
  color: var(--main-color);
}

.bg-main {
  background-color: var(--main-color);
}

.bg-main-gradient {
  background-image: var(--gradient-bg);
}

.text-gradient{
  background: var(--gradient-bg);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.color-secondary {
  color: var(--secondary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-light-gray{
  background-color: #EDEDED;
}

.w-fit-content {
  width: fit-content;
}

.cursor-pointer {
  cursor: pointer;
}

.outline-none {
  outline: none;
}

.radius-12 {
  border-radius: 12px;
}

.shadow-md {
  box-shadow: rgba(0, 0, 0, 0.08) 0px 3px 12px;
}

.btn {
  border-radius: 8px;
  transition: 0.25s linear;
}

.btn:hover {
  transform: scale(1.01);
}

.btn-main {
  color: #fff !important;
  background: var(--gradient-bg);
  border: 1px solid transparent;
}

.btn-main:hover {
  color: var(--main-color) !important;
  background: #fff !important;
  border: 1px solid var(--main-color);
}

.btn-outline-main {
  color: var(--main-color) !important;
  background: transparent;
  border: 1px solid var(--main-color);
}

.btn-outline-main:hover {
  color: #fff !important;
  border: 1px solid transparent;
  background: var(--gradient-bg);
}

.btn-purple {
  color: #fff !important;
  background: var(--main-color);
  border: 1px solid var(--main-color);
}

.btn-purple:hover {
  color: var(--main-color) !important;
  background: #fff !important;
  border: 1px solid var(--main-color);
}

.btn-blue {
  color: #fff !important;
  background: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.btn-blue:hover {
  color: var(--secondary-color) !important;
  background: #fff !important;
  border: 1px solid var(--secondary-color);
}

.overlay{
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
}

.list-style-none{
  list-style: none;
}

.flex-1{
  flex: 1;
}

input, textarea{
  border: 1px solid #999;
}

.navbar-brand img{
  width: 120px;
}

.logo img {
  width: 200px;
}

.search-box{
  border: 1px solid var(--main-color);
}

.search-box input {
  background-color: transparent;
}

.nav-link {
  position: relative;
}

.nav-link.active::before,
.nav-link:hover::before {
  content: "";
  background-color: var(--secondary-color);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  border-radius: 12px 12px 0 0;
}

.nav-link.active {
  font-weight: bold;
}

.nav-item .dropdown-menu.show {
  width: 100%;
  top: 100%;
  left: 0;
  right: 0;
  text-align: start;
  animation: menu 0.2s ease-out 0s alternate none running;
}

.nav-item .dropdown-menu.show ul {
  padding: 0;
}

/* back to top button */

.top-button {
  text-align: center;
  position: fixed;
  bottom: 75px;
  left: 50px;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

:root[dir="ltr"] .top-button{
    left: unset;
    right: 50px;
}

.top-button.show {
  opacity: 1;
  visibility: visible;
}

.owl-carousel.header .owl-stage-outer {
  border-radius: 20px;
  overflow: hidden;
}

.owl-carousel.header .playpause {
  display: none;
  font-size: 4rem;
}

.owl-carousel.header .playpause.shown {
  display: block;
}

.owl-carousel.header .owl-nav{
  position: absolute;
  bottom: 40px;
  left: 18%;
  right: 18%;
  transform: translateY(50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;  
}

.owl-carousel.header .owl-nav button{
  display: flex;
  justify-content: center;
  align-items: center;
}

.owl-carousel.header .owl-nav span{
  display: none;
}

.owl-carousel.header .owl-nav button::after{
  width: 35px;
  height: 35px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  font-size: 20px;
  transition: .2s linear;
}

.owl-carousel.header .owl-nav button.owl-prev::after{
  content: "\2190";
}

.owl-carousel.header .owl-nav button.owl-next::after{
  content: "\2192";
}

.owl-carousel.header .owl-nav button:hover::after{
  color: #FFF;
  background-image: var(--gradient-bg);
  border: none;
}

.owl-carousel.header .owl-dots {
  position: absolute;
  bottom: 40px;
  left: 15%;
  right: 15%;
  transform: translateY(50%);
  height: 45px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;  
}

.owl-carousel.header .owl-dots .owl-dot {
  width: 9px;
  height: 9px;
  margin: 0 10px;
  border: 3px solid var(--main-color);
  border-radius: 50%;
}

.owl-carousel.header .owl-dots .owl-dot.active {
  border: none;
  width: 65px;
  background-image: var(--gradient-bg);
  border-radius: 8px;
}

.home-card .card-header .overlay{
  background: transparent url('../images/s-background.png') calc( 100% - 10px) / auto 100% no-repeat;
}

:root[dir="rtl"] .home-card .card-header .overlay{
  background: transparent url('../images/s-background.png') -10px / auto 100% no-repeat;
}

.title{
  min-height: 50px;
}

.title .bg-secondary{
  left: 10px;
  border-radius: 12px 12px 0 0;
}

:root[dir="rtl"] .title .bg-secondary{
  left: unset;
  right: 10px;
}

.ss4it-img-container .overlay{
  background: transparent url('../images/l-colorfull-s-background.png') -10px / auto 100% no-repeat;
}

.services-carousel{
  width: 98%;
}

:root[dir="rtl"] .services-carousel .row{
  direction: rtl;
} 

.services-carousel .owl-dots{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: absolute;
  top: 0;
  left: -30px;
}

:root[dir="rtl"] .services-carousel .owl-dots{
  left: unset;
  right: -30px;
}

.services-carousel .owl-dots .owl-dot{
  width: 7px;
  height: 50px;
  background-color: rgba(106, 0, 224, .2);
  border-radius: 12px;
}

.services-carousel .owl-dots .owl-dot.active{
  background-color: var(--main-color);
}

.cards-section .icon{
  border: 10px solid #FFF;
  border-radius: 18px;
}

.cards-section h3{
  font-size: 3.5em;
  font-family: 'Londrina Outline';
  font-weight: bold;
}

.clients-carousel .owl-stage-outer{
  padding: 50px 0;
}

.clients-carousel .owl-item{
  display: block;
}

:root[dir="rtl"] .clients-carousel .carousel-item{
  direction: rtl;
}

.clients-carousel img{
  height: 75px;
}

.clients-carousel .s-bg,
.thin-s-bg{
  background-image: linear-gradient(to bottom, var(--secondary-color), var(--main-color));
}

.clients-carousel .s-bg .overlay,
.thin-s-bg .overlay{
  background: transparent url('../images/l-colorfull-s-background.png') -10px / auto 100% no-repeat;
}

.secondary-s-bg{
  background: var(--secondary-color);
}

.secondary-s-bg h2{
  font-family: 'Londrina Outline';
}

.secondary-s-bg .overlay{
  background: transparent url('../images/s-background.png') 45% / auto 170% no-repeat;
}

.clients-carousel .owl-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
}

.clients-carousel .owl-dots .owl-dot{
  width: 50px;
  height: 7px;
  background-color: rgba(106, 0, 224, .2);
  border-radius: 12px;
}

.clients-carousel .owl-dots .owl-dot.active{
  background-color: var(--main-color);
}

/*contact*/

.dashed-title::before{
  content: '';
  width: 5px;
  background-image: linear-gradient(to bottom, var(--secondary-color), var(--main-color));
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 12px;
}

:root[dir="rtl"] .dashed-title::before{
  left: unset;
  right: 0;
}

.branches-section{
  background-image: url('../images/map.png');
  background-size: cover;
}

.branches-section .container{
  position: relative;
}

.ss-message .s-bg{
  background-image: linear-gradient(to bottom, var(--secondary-color), var(--main-color));
}

.ss-message .s-bg .overlay{
  background: transparent url('../images/s-background.png') -35px / auto 100% no-repeat;
}

:root[dir="rtl"] .ss-message .s-bg .overlay{
  background-attachment: transparent url('../images/s-background.png') 100% / auto 100% no-repeat;
}

.card-section .icon{
  box-shadow: rgba(106, 0, 224,0.3) 0px 7px 0px;
}

.hosting-card .overlay{
  background: transparent url('../images/s-background.png') 100% / auto 180% no-repeat;
}

:root[dir="rtl"] .hosting-card .overlay{
  background: transparent url('../images/s-background.png') 0 / auto 180% no-repeat;
}

.plans-table tbody th{
  text-align: start;
  padding: 0 20px;
}

.product-btns .btn{
  border-radius: 0px;
}

.product-btns .btn:first-child{
  border-radius: 8px 0 0 8px;
}

.product-btns .btn:last-child{
  border-radius: 0 8px 8px 0;
}

:root[dir="rtl"] .product-btns .btn:first-child{
  border-radius: 0 8px 8px 0;
}

:root[dir="rtl"] .product-btns .btn:last-child{
  border-radius: 8px 0 0 8px;
}

.customers-cards .overlay{
  background: transparent url('../images/l-colorfull-s-background.png') -40PX / auto 100% no-repeat;
}


/* hover style */

.hover-zoom img,
.hover-scale,
.hover-translate{
  transition: .3s linear;
}

.hover-zoom:hover img{
  transform: scale(1.1);
}

.hover-scale:hover{
  transform: scale(1.03);
}

.hover-translate:hover{
  transform: translateY(-10px);
}

/* media query*/

@media screen and (max-width: 1400px) {
  .nav-link::before,
  .nav-link::before {
    display: none;
  }
  
  .nav-link.active,
  .nav-link:hover{
    background-color: var(--secondary-color);
  }
}
