@-webkit-keyframes circle {
  0% {
    opacity: 1;
  }

  40% {
    opacity: 1;
  }

  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

@keyframes circle {
  0% {
    opacity: 1;
  }

  40% {
    opacity: 1;
  }

  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

/*font-style*/

@font-face {
  font-family: "Vazirmatn";
  src: url("../../Fonts/vazir/Vazirmatn-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../../Fonts/vazir/Vazirmatn-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../../Fonts/vazir/Vazirmatn-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../../Fonts/vazir/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../../Fonts/vazir/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../../Fonts/vazir/Vazirmatn-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../../Fonts/vazir/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../../Fonts/vazir/Vazirmatn-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../../Fonts/vazir/Vazirmatn-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
}

* {
  scrollbar-color: var(--Primary) transparent !important; /* Firefox */
}

*::-webkit-scrollbar {
  width: 0.25rem;
  height: 0rem;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--Primary);
  border-radius: 1rem;
  border: 2px solid transparent;
  background-clip: content-box;
}

.hover_design {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover_design.scale:hover {
  transform: scale(1.1, 1.1);
}

.hover_design.theme_black::before,
.hover_design.theme_red::before {
  content: "";
  position: absolute;
  inset: -10%;
  margin: auto;
  width: 0px;
  height: 0px;
  border-radius: inherit;
  z-index: -1;
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover_design.theme_black:hover::before,
.hover_design.theme_red:hover::before {
  width: 105%;
  height: 105%;
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover_design.theme_black::before {
  background: var(--theme-black);
}

.hover_design.theme_red::before {
  background: var(--Primary);
}

.logo_box_design {
  position: relative;
  z-index: 1;
}
.logo_box_design::after {
  position: absolute;
  top: 0;
  left: 0px;
  bottom: 0;
  right: 0;
  background: var(--Primary);
  clip-path: polygon(100% 0, 100% 100%, 100% 100%, 5% 100%, 10% 55%, 0 0);
  content: "";
  z-index: -1;
}

.logo_box_design::before {
  position: absolute;
  top: 0;
  inset-inline-start: 0px;
  bottom: 0;
  inset-inline-end: -7px;
  background-color: #8080805c;
  clip-path: polygon(100% 0, 100% 100%, 100% 100%, 5% 100%, 10% 55%, 0 0);
  content: "";
  z-index: -2;
}

.logo_design_after::after {
  position: absolute;
  top: 0;
  inset-inline-start: -3000%;
  inset-inline-end: 50%;
  bottom: 0;
  background: var(--Primary);
  content: "";
}

.hover_design_X {
  position: relative;
}

.hover_design_X::before {
  content: "";
  position: absolute;
  top: 0%;
  right: 0%;
  width: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 0%;
  -webkit-transform: translateX(90%, 90%);
  transform: translateX(90%, 90%);
  opacity: 0.7;
  z-index: 1;
}

.group:hover .hover_design_X::before {
  -webkit-animation: circle 0.95s;
  animation: circle 0.95s;
  opacity: 1;
}

.go-to-top {
  background: var(--Primary);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  position: fixed;
  inset-inline-start: 15px;
  bottom: 0;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  width: 2rem;
  height: 2rem;
  -webkit-transform: translate3d(0, 100px, 0);
  -ms-transform: translate3d(0, 100px, 0);
  transform: translate3d(0, 100px, 0);
  z-index: 9999;
}
.go-to-top.add-class-top {
  -webkit-transform: translate3d(0, -15px, 0);
  -moz-transform: translate3d(0, -15px, 0);
  -ms-transform: translate3d(0, -15px, 0);
  -o-transform: translate3d(0, -15px, 0);
}

@media screen and (min-width: 1280px) {
  .contain {
    width: 80% !important;
    margin: 0 auto;
  }
}
