@import url("https://fonts.googleapis.com/css2?family=Cairo:slnt,wght@-11..11,200..1000&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap");

/* ------------------General Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  text-transform: capitalize;
  font-style: normal;
  transition: 0.3s all;
  scroll-behavior: smooth;
  font-family: "Tajawal", sans-serif;
  /* font-family: "Cairo", sans-serif; */
  font-optical-sizing: auto;
}

@supports (-webkit-touch-callout: none) {
  * {
    font-family: "Cairo", sans-serif; /* خط بديل لأجهزة iPhone */
  }
}

/* إخفاء شريط التمرير */
::-webkit-scrollbar {
  display: none;
}

:root,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html {
  font-size: 16px;
}
html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  height: 100%;
  /* overflow-x: hidden; */
  /* background-color: #f0f0f0; */
  /* color: #333; */
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  /* justify-content: center; */
  position: relative;
  /* background-color: #e2e7ff; */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  /* border: 1px solid red; */
  width: 100%;
  height: 100px;
  background-color: transparent;

  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  /* transition: background-color 0.3s ease; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
  padding: 0 20px;
  margin-top: 20px;
}

header nav {
  /* width: 100%; */
  /* border: 1px solid red; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

header nav > ul {
  width: 100%;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* border: 1px solid blue; */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

header nav > ul > li {
  margin: 0 35px;
  position: relative;
}

header nav > ul > li > a {
  color: #757575;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  animation: fadeIn 2s ease-in-out infinite; /* 🔁 يتكرر بشكل مستمر */
}
header nav > ul > li > a:hover {
  color: #5e17eb;
}
header nav > ul > li > a:focus-within {
  color: #5e17eb;
  text-shadow: 0px 2px 5px #6518ff;
  transition: all 0.3s ease-in-out;
}
header nav > ul > li > ul {
  list-style: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 10px;
  /* display: none; */
  min-width: 220px;
  display: flex;
  flex-direction: column;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

header nav > ul > li:hover > ul {
  opacity: 1;
  visibility: visible;
}

header nav > ul > li > ul > li {
  margin: 15px 10px;
}

header nav > ul > li > ul > li > a {
  color: #757575;
  font-size: 1.1rem;
  font-weight: 400;
  transition: color 0.3s ease;
}
header nav > ul > li > ul > li > a:hover {
  color: #5e17eb;
}
header nav > ul > li > ul > li > a:focus-within {
  color: #5e17eb;
  text-shadow: 0px 0px 5px #6518ff;
  transition: all 0.3s ease-in-out;
}

header nav .menu-toggle {
  /* display: none; */
  font-size: 1.3rem;
  color: #757575;
  cursor: pointer;
  margin-left: 30px;
  padding: 5px 15px;
  background-color: transparent;
  border: none;
  transition: color 0.3s ease;
}
header nav .menu-toggle:hover {
  color: #5e17eb;
}
header nav .menu-toggle:focus-within {
  color: #5e17eb;
  text-shadow: 0px 0px 2px #6518ff;
}

header .hyper {
  /* border: 1px solid red; */
  display: flex;
  align-items: center;
  justify-content: center;
}

header .hyper h1 {
  color: #757575;
  cursor: pointer;
  animation: fadeIn 2s ease-in-out infinite; /* 🔁 يتكرر بشكل مستمر */
}

header .hyper h1:hover {
  color: #5e17eb;
  text-shadow: 0px 0px 2px #6518ff;
}

@keyframes fadeIn {
  0% {
    text-shadow: 0px 0px 0px #6518ff;
  }
  50% {
    color: #5e17eb;
    text-shadow: 0px 0px 2px #6518ff;
  }
  100% {
    text-shadow: 0px 0px 0px #6518ff;
  }
}

main {
  width: 100%;
  min-height: 100vh;
  /* border: 1px solid red; */
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
}

footer {
  width: 100%;
  height: 300px;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  bottom: 0;
}
footer > .top {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
footer > .top > div {
  width: 30%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
footer > .top > .logo-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
}
footer > .top > .logo-social > .logo {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}
footer > .top > .logo-social > .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.6);
}
footer > .top > .logo-social > .logo img:hover {
  filter: grayscale(0%) brightness(1);
  transition: all 0.3s ease-in-out;
}

footer > .top > .logo-social > .social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
footer > .top > .logo-social > .social a {
  color: #757575;
  font-size: 1.5rem;
  transition: all 0.3s ease-in-out;
}
footer > .top > .logo-social > .social a:hover {
  color: #5e17eb;
  text-shadow: 0px 0px 2px #6518ff;
}

footer > .top > .hyperLink {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
}

footer > .top > .hyperLink > h2 {
  color: #757575;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}
footer > .top > .hyperLink > h2:hover {
  color: #5e17eb;
  text-shadow: 0px 0px 2px #6518ff;
}

footer > .top > .hyperLink > ul {
  list-style: square;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  margin: 0 30px;
}
footer > .top > .hyperLink > ul > li {
  color: #757575;
  font-size: 1.1rem;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
}
footer > .top > .hyperLink > ul > li:hover {
  color: #5e17eb;
  text-shadow: 0px 0px 2px #6518ff;
}

footer > .top > .hyperLink > ul > li > a {
  color: #757575;
  font-size: 1.1rem;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
}
footer > .top > .hyperLink > ul > li > a:hover {
  color: #5e17eb;
  text-shadow: 0px 0px 2px #6518ff;
}

footer > .top > .support {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
}

footer > .top > .support > h2 {
  color: #757575;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}
footer > .top > .support > h2:hover {
  color: #5e17eb;
  text-shadow: 0px 0px 2px #6518ff;
}

footer > .top > .support > ul {
  list-style: square;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  margin: 0 30px;
}
footer > .top > .support > ul > li {
  color: #757575;
  font-size: 1.1rem;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
footer > .top > .support > ul > li:hover {
  color: #5e17eb;
  text-shadow: 0px 0px 2px #6518ff;
}

footer > .bottom {
  width: 100%;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
}
footer > .bottom p {
  color: #757575;
  font-size: 1rem;
  font-weight: 400;
}
footer > .bottom a {
  color: #5e17eb;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  text-decoration: underline;
}
footer > .bottom a:hover {
  color: #6518ff;
  text-shadow: 0px 0px 2px #6518ff;
}

@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    /* border: 1px solid red; */
    width: 100%;
    height: 100px;
    background-color: transparent;

    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    /* transition: background-color 0.3s ease; */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    padding: 0 20px;
    margin-top: 20px;
  }

  header nav {
    width: 100%;
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
  }

  header nav > ul {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* border: 1px solid blue; */
    border-bottom: 1px solid #6518ff;
    border-left: 1px solid #6518ff;
    border-right: 1px solid #6518ff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #fff;
    position: absolute;
    top: 150%;
    right: 0;
    opacity: 0;
    visibility: hidden;
  }

  header nav > ul > li {
    margin: 10px 0px;
    padding: 10px 0px;
    position: relative;
    /* border: 1px solid red; */
    width: 100%;
    text-align: center;
  }

  header nav > ul > li > ul {
    width: 100%;
    box-shadow: 0 0px 5px rgba(101, 24, 255, 0.616);
    /* border: 1px solid red; */
  }

  header nav .menu-toggle {
    font-size: 1.5rem;
    position: absolute;
    right: 0;
  }

  header .hyper {
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* display: none; */
    position: absolute;
    left: 10px;
  }

  footer {
    width: 100%;
    min-height: 500px;
    height: max-content;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 0;
  }
  footer > .top {
    width: 100%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  footer > .top > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* border: 1px solid red; */
    margin: 10px 0;
  }

  footer > .top > .hyperLink > h2 {
    margin: 10px;
  }

  footer > .top > .hyperLink > ul {
    margin: 0 50px;
  }

  footer > .top > .support {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
  }

  footer > .top > .support > h2 {
    margin: 10px;
  }

  footer > .top > .support > ul {
    margin: 0 50px;
  }

  footer > .bottom {
    padding: 10px;
  }
}
