* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ff-poppins: "Poppins", sans-serif;
  --ff-roboto: "Roboto", sans-serif;
  --ff-barlow: "Barlow", sans-serif;
  --ff-opensans: "Open San", sans-serif;

  /* --primary-clr: #2b9e76; */
  --bg: #f5f5f5;
  --primary-clr: #972adb;
  --flash-white: #eff0f0;
  --pale-purple: #e7dcea;
  --veronica: #9743e3;
  --secondary-clr: #36c694;
  --white: #fff;
  --black: #000;
  --vampire-black: #03020c;
  --vampire-black-2: #05020e;
  --vampire-black-3: #03020c;
  --jungle-green: #1b1e25;
  --ch-green: #23272f;
  --onyx: #333a45;
  --border: 1px solid rgba(0, 0, 0, 0.1);
  --border-2: 1px solid rgba(0, 0, 0, 0.2);

  --btn-hover-clr: #217e5e;
  --btn-hover-clr-2: #f8e8ff;
  --btn-hover-clr-3: #f3f2f1;
  --icon-clr: #8a8886;
}

body[theme-dark] {
  --ff-poppins: "Poppins", sans-serif;
  --ff-roboto: "Roboto", sans-serif;
  --ff-barlow: "Barlow", sans-serif;
  --ff-opensans: "Open San", sans-serif;
  --ff-inter: "Inter", sans-serif;

  --bg: #f5f5f5;
  --primary-clr: #1b1e25;
  --flash-white: #eff0f0;
  --pale-purple: #e7dcea;
  --veronica: #1b1e25;
  --white: #000;
  --black: #fff;
  --vampire-black: #03020c;
  --vampire-black-2: #05020e;
  --vampire-black-3: #03020c;

  --btn-clr: #edebe9;
  --btn-hover-clr: #217e5e;
  --btn-hover-clr-2: #f8e8ff;
  --btn-hover-clr-3: #1b1e25;
  --icon-clr: #8a8886;
  --bottom-btns-clr: "";

  --sahih-hadith: #013220;
  --hasan-hadith: #90ee90;
  --daif-hadith: #ffa500;
  --maudu-hadith: #ff0000;

  --border: 1px solid rgba(255, 255, 255, 0.1);
  --border-2: 1px solid rgba(255, 255, 255, 0.2);
  --hover-dark: #16181d;
}

@font-face {
  font-family: "Quranic";
  src: url("/assets/fonts/MUHAMMADI\ QURANIC\ FONT.ttf");
}

body {
  background: var(--bg);
  transition: 0.5s ease-in-out;
  overflow-x: hidden;
}

body[theme-dark] {
  background-color: var(--vampire-black);
}

button {
  background-color: transparent;
  outline: none;
  border: none;
}

li {
  list-style-type: none;
}

a {
  text-decoration: none;
  font-family: inherit;
  color: inherit;
}

.btn {
  width: 100%;
  background-color: var(--primary-clr);
  padding: 0.85rem;
  border-radius: 7px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-roboto);
  user-select: none;
}

.main {
  width: 100%;
}

.hero__text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--black);
  max-width: 20rem;
  width: 95%;
  isolation: isolate;
  transition: 0.5s ease-in-out;
  user-select: none;
  z-index: 90;
}

[theme-dark] .hero__text {
  top: 29%;
}

.logo__text {
  font-size: 4.5rem;
  font-weight: 600;
  font-family: var(--ff-poppins);
  color: var(--veronica);
  transition: 200ms ease-in-out;
}

[theme-dark] .logo__text {
  color: var(--black);
}

.sub__title {
  font-size: 1rem;
  font-family: var(--ff-poppins);
  margin-top: -1rem;
  display: none;
}

.lang__container .title {
  font-size: 1.2rem;
  font-family: var(--ff-barlow);
  font-weight: 500;
  padding-bottom: 1rem;
  transition: 200ms ease-in-out;
}

[theme-dark] .lang__container .title {
  padding-bottom: 1.5rem;
}

.lang__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: 200ms ease-in-out;
}

.lang__list .lang__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: 200ms ease;
}

.lang__item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  transition: 200ms ease-in-out;
  overflow: hidden;
  border: 2px solid transparent;
  transition: 200ms ease-in-out;
}

[theme-dark] .lang__item img {
  box-shadow: none;
}

.lang__item .lang__name {
  font-family: var(--ff-barlow);
  font-weight: 500;
  opacity: 0;
  transition: transform 200ms ease-in-out;
}

.lang__item:hover .lang__name {
  opacity: 1;
  transform: translateY(7px);
}

.lang__list:hover > .lang__item:not(:hover) {
  -webkit-filter: blur(3px);
  filter: blur(3px);
}

.lang__list.selected > .lang__item:not(.active) {
  -webkit-filter: blur(3px);
  filter: blur(3px);
}

.lang__list.selected > .lang__item:not(.active):hover {
  -webkit-filter: blur(0);
  filter: blur(0);
}

.lang__item.active {
  -webkit-filter: blur(0);
  filter: blur(0);
}

.lang__item.active img {
  border: 2px solid var(--primary-clr);
}

[theme-dark] .lang__item.active img {
  border: 2px solid var(--black);
}

.lang__item.active .lang__name {
  opacity: 1;
  transform: translateY(7px);
}

.btn__explore {
  background-color: var(--veronica);
  cursor: pointer;
  padding: 0.8rem 0;
  max-width: 17rem;
  font-size: 1rem;
  width: 95%;
  border-radius: 4px;
  margin-top: 2rem;
  color: var(--white);
  transition: 200ms ease;
  cursor: not-allowed;
}

.btn__explore:hover {
  background-color: var(--primary-clr);
}

[theme-dark] .btn__explore {
  margin-top: 1rem;
  color: var(--black);
}

.hero__bg-container {
  position: fixed;
  bottom: 0%;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
}

.hero-bg {
  position: relative;
  max-width: 1440px;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  place-content: center;
  overflow: hidden;
}

.hero-bg img {
  position: relative;
  bottom: -30%;
  transition: 0.5s ease-in-out;
}

[theme-dark] .hero-bg img {
  bottom: -20%;
}

/* greet */
.greet {
  background-color: var(--white);
  max-width: 25rem;
  width: 95%;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 7px;
  padding: 0.5rem 1rem;
  user-select: none;
  display: none;
}

.greet .msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.greet .msg__text {
  font-family: var(--ff-barlow);
  font-size: 1.2rem;
  font-weight: 500;
}

.greet .wave {
  font-size: 1.3rem;
  margin-top: -5px;
  background-position: 70% 70%;
  display: inline-block;
  animation: wave-animation 2.5s infinite;
  display: none;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  } /* The following five values can be played with to make the waving more or less extreme */
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  } /* Reset for the last half to pause */
  100% {
    transform: rotate(0deg);
  }
}

/* nav__menu */
.nav__menu {
  position: fixed;
  /* bottom: 1rem; */
  /* left: 50%;
  transform: translateX(-50%); */
  left: 0.7rem;
  top: 50%;
  /* bottom: 0.7rem; */
  width: fit-content;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 1rem; */
  gap: 0.5rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 103;
}

.nav__menu div {
  background-color: var(--white);
  color: var(--black);
  display: grid;
  place-content: center;
  border-radius: 50%;
  overflow: hidden;
  transition: 0.5s ease-in-out;
}

.nav__menu button {
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
}

.nav__menu button:active {
  transform: scale(0.9);
}

.theme__toggler button {
  display: none;
}
.theme__toggler button:last-child {
  display: block;
}

[theme-dark] .nav__menu div {
  background-color: var(--jungle-green);
}

[theme-dark] .nav__menu button {
  color: var(--black);
}

/* .lang__list.selected ~ .nav__menu:nth-child(2) {
  background-color: red;
} */

#curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#curtain span {
  position: absolute;
  top: 0;
  left: 0;
  width: 250%;
  height: 100%;
  display: block;
  transform-origin: bottom left;
  transition: 0.5s ease-in-out;
  transform: rotate(-90deg);
}

#curtain span:nth-child(1) {
  background-color: #ff1f6b;
  transform: rotate(-90deg);
  transition-delay: 0.3s;
}

#curtain span:nth-child(2) {
  background-color: #219dff;
  transform: rotate(-90deg);
  transition-delay: 0.2s;
}

#curtain span:nth-child(3) {
  background-color: #972adb;
  transform: rotate(-90deg);
  transition-delay: 0.1s;
}

#curtain span:nth-child(4) {
  background-color: var(--bg);
  transform: rotate(-90deg);
  transition-delay: 0s;
}

body[theme-dark] #curtain span:nth-child(4) {
  background-color: var(--ch-green);
}

#curtain.active span {
  transform: rotate(0deg);
}

#curtain.active span:nth-child(1) {
  transition-delay: 0s;
}

#curtain.active span:nth-child(2) {
  transition-delay: 0.1s;
}

#curtain.active span:nth-child(3) {
  transition-delay: 0.2s;
}

#curtain.active span:nth-child(4) {
  transition-delay: 0.3s;
}

#curtain .team__container {
  position: relative;
  top: -8%;
  left: 0%;
  max-width: 95%;
  transform: scale(0);
  opacity: 0;
  transition: 300ms ease-in-out;
  z-index: 101;
}

#curtain.active .team__container {
  transform: scale(1);
  opacity: 1;
  transition-delay: 500ms;
}

.team__container .title {
  font-family: var(--ff-barlow);
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--black);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  user-select: none;
  transition: 200ms ease-in-out;
  line-height: 1.5;
}

.team__container .title small {
  font-size: 1.4rem;
  color: var(--veronica);
  transition: 200ms ease-in-out;
  text-decoration: underline;
  text-underline-offset: 5px;
}

body[theme-dark] .team__container .title small {
  color: #f5f5f5;
}

.team__container .title::before,
.team__container .title::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(50%);
  width: 12%;
  height: 3px;
  background-color: #1877f2;
  display: none;
}

.team__container .title::before {
  left: -2.5rem;
}

.team__container .title::after {
  right: -2.5rem;
}

.team__container .team__list {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team__member {
  width: 12rem;
  height: 15rem;
  overflow: hidden;
  border: 4px solid var(--white);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: 200ms ease-in-out;
}

[theme-dark] .team__member {
  border: 2px solid var(--black);
}

.team__member:nth-child(2),
.team__member:nth-child(3) {
  height: 18rem;
}

.team__member .card {
  width: 100%;
  height: 100%;
  transition: 350ms ease-in-out;
}

.card .img-box {
  width: 100%;
  height: 100%;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: 200ms ease-in-out;
}

.card .info {
  width: 100%;
  height: 100%;
  font-family: var(--ff-barlow);
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.card .info .name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--black);
}

.card .info .pos {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--black);
}

.info .links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.info .links .link {
  font-size: 1rem;
  color: var(--white);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
}

[theme-dark] .info .links .link,
[theme-dark] .card .info .name,
[theme-dark] .card .info .pos {
  color: var(--black);
}

.info .links .link:nth-child(1) {
  background-color: #1877f2;
}

.info .links .link:nth-child(2) {
  background-color: #1c96e8;
}

.info .links .link:nth-child(3) {
  background-color: #111;
}

.team__member:nth-child(1) .card .info {
  background-color: #faf2d3;
}

.team__member:nth-child(2) .card .info {
  background-color: #dfccfb;
}

body[theme-dark] .team__member .card .info {
  background-color: #333;
}

.team__member:nth-child(3) .card .info {
  background-color: #ffcf96;
}

.team__member:hover .card {
  transform: translateY(-100%);
}

.team__member:hover .info {
  transform: translateY(0);
}
.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 100;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  display: none;
}

.overlay.animateRight {
  -webkit-animation: moveFromRight 0.8s ease-in-out both;
  animation: moveFromRight 0.8s ease-in-out both;
}

.overlay.animateLeft {
  -webkit-animation: moveFromLeft 0.8s ease-in-out both;
  animation: moveFromLeft 0.8s ease-in-out both;
}

@keyframes moveFromRight {
  0% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  50% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
}

@keyframes moveFromLeft {
  0% {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  50% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* media queries */
@media (max-width: 768px) {
  .team__list {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0;
  }

  .team__list::-webkit-scrollbar {
    appearance: none;
    -webkit-appearance: none;
    height: 5px;
  }

  .team__list::-webkit-scrollbar-track {
    border-radius: 50px;
    background-color: var(--btn-hover-clr-2);
  }

  .team__list::-webkit-scrollbar-thumb {
    background-color: var(--veronica);
    border-radius: 50px;
  }

  body[theme-dark] .team__list::-webkit-scrollbar-thumb {
    background-color: #972adb;
  }

  .team__member {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .team__member:nth-child(2),
  .team__member:nth-child(3) {
    height: 15rem;
  }
}

@media (max-width: 475px) {
  .logo__text {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }

  .sub__title {
    font-size: 0.9rem;
  }

  .team__container .title::before,
  .team__container .title::after {
    display: none;
  }

  .lang__list {
    gap: 0;
  }

  .lang__item:first-child {
    margin-right: 0.7rem;
  }

  .lang__item img {
    width: 50px;
    height: 50px;
  }

  .team__container .title,
  .team__container .title small {
    font-size: 1rem;
  }

  .nav__menu {
    flex-direction: row;
    top: unset;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }
}
