:root {
  --bg-color: #f9fafb;
  --text-color: #1e1e1e;
  --purple-color: #7c3aed;
  --blue-color: #1d4ed8;
  --blue-light-color: #225bf7;
  /* #6c63ff */
}

body.dark {
  --bg-color: #202020;
  --text-color: #f9fafb;
}

.allTrans{
  transition: background-color .2s ease-in-out;
}

/* *{
    transition: background-color .2s ease-in-out;
} */

header,
section,
footer,
body {
  background-color: var(--bg-color);
}

/* header */

header > a > img {
  width: 40px;
  height: 40px;
}

@media screen and (max-width: 993px) {
  header > a > img {
    width: 30px;
    height: 30px;
  }

  header nav li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

header > a > p {
  font-size: 14px;
  color: var(--text-color);
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s;
}

nav a:not(.active) {
  position: relative;
}

nav a:not(.active)::before {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0px;
  height: 2.5px;
  border-radius: 10000px;
  background-color: var(--blue-color);
  transition: width 0.2s;
}

nav a:not(.active):hover::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 10000px;
  background-color: var(--blue-color);
}

nav a.active {
  color: var(--purple-color);
  font-weight: bold;
  position: relative;
}

nav a.active::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 10000px;
  background-color: var(--purple-color);
}

@media screen and (max-width: 768px) {
  nav a.active::before {
    display: none !important;
  }
}

.themeSwitch {
  background-color: var(--text-color);
  border-radius: 100000000px;
  width: 45px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.switch {
  width: 15px;
  height: 15px;
  border-radius: 10000000px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10%;
  background-color: rgb(255, 196, 0);
  transition: left 0.2s;
}

.switch.dark {
  left: 60%;
  background-color: var(--blue-light-color);
}

.sidebarBtn {
  background-color: transparent;
  border: 0px;
  outline: 0px;
}

.sidebarBtn svg {
  color: var(--text-color);
}

/* aside */
aside {
  height: 100svh;
  position: fixed;
  right: -100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  width: 70svw;
  top: 0px;
  transition: right 0.2s ease-in-out;
  z-index: 10000000000;
}

body.dark aside {
  background-color: rgb(37, 37, 37);
}

aside.active {
  right: 0px;
}

div.antiAside {
  position: fixed;
  height: 100svh;
  width: 100svw;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000000000;
  display: none;
  top: 0px;
}

div.antiAside.active {
  display: block;
}

aside a {
  max-width: fit-content;
}

.container {
  max-width: 1280px;
}

.headerParagraph {
  text-align: center;
  line-height: 1.7rem;
}

.row-gap > div {
  margin-bottom: 4rem !important;
}

.row-gap {
  margin-top: 70px;
}

.ff-Vazirmatn-Medium {
  line-height: 1.7rem;
}

.line {
  width: 50%;
  height: 3.5px;
  background-color: #7c3aed;
  margin: 50px auto;
  border-radius: 100%;
}

.pageTitle {
  color: var(--text-color);
}

h2{
  color: var(--text-color)
}

/* footer */

footer {
  border-top: 2px solid var(--blue-color);
  position: relative;
}

footer div:nth-child(1) p {
  color: var(--purple-color);
}

footer div:nth-child(1) img {
  width: 67px;
  height: 67px;
}

footer div:nth-child(2) p {
  color: var(--text-color);
}

footer div:nth-child(3) a img {
  width: 24px;
  height: 24px;
  padding: 0px !important;
}

body.dark footer div:nth-child(3) img {
  filter: invert(1);
}

.footerText {
  position: absolute;
  bottom: 0px;
  font-size: 10px;
  color: var(--text-color);
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 50px;
}