@font-face {
  font-family: Sahel;
  src: url(../fonts/sahel-font-v1.0.0-alpha14/Sahel.ttf);
}

* {
  direction: rtl;
  padding: 0;
  box-sizing: border-box;
  margin: 0;
  font-family: Sahel;
}
a {
  text-decoration: none;
}

body {
  font-size: 16px;
  background: #0c1022;
  color: #fff;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 25px;
  color: #fff;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  animation: slideTop 1s ease forwards;
}

nav a {
  display: inline-block;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  margin-right: 35px;
  opacity: 0;
  animation: slideTop .5s ease forwards;
  animation-delay: calc(.3s * var(--i));
}

nav a.active,
nav a:hover {
  background: linear-gradient(45deg, #f06, #3cf);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

.home {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 10% 0;
}

.home-content {
  max-width: 500px;
  margin-right: -30px;
}

.home-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.9;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: .7s;
}

.home-content h3 {
  font-size: 32px;
  font-weight: 700;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1s;
}

.home-content p {
  font-size: 16px;
  margin: 20px 0 40px;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1.4s;
}

.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 48px;
  border-radius: 40px;
  font-size: 19px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 1;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 1.8s;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(45deg, #f06, rgb(11, 183, 240), #f06);
  background-size: 200%;
  background-position: 0 0;
  z-index: -1;
  border-radius: 40px;
  filter: blur(5px);
  transition: 0.5s ease;
}

.btn:hover::before {
  background-position: 100% 0;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(45deg, #f06, rgb(9, 184, 242), #f06);
  background-position: 0 0;
  background-size: 200%;
  z-index: -1;
  border-radius: 40px;
  transition: 0.5s ease;
}

.btn:hover::after {
  background-position: 100% 0;
}

.home-sci a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #f06, #3cf);
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  margin: 20px 0;
  z-index: 1;
}

.home-sci a:nth-child(1){
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 2.1s;
}

.home-sci a:nth-child(2){
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 2.1s;
}

.home-sci a:nth-child(3){
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2.1s;
}

.home-sci a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #f06, #3cf);
  border-radius: 50%;
  z-index: -1;
  transition: 0.5s ease;
}

.home-sci a:hover::before {
  filter: blur(5px);
}

.home-sci a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #0c1022;
  border-radius: 50%;
  transform: scale(0.88);
  z-index: -1;
  transition: 0.5s ease;
}

.home-sci a:hover::after {
  transform: scale(0);
}

.home-img {
  width: 410px;
  height: 410px;
  opacity: 0;
  animation: zoomIn 1s ease forwards , floatImage 4s ease-in-out infinite;
  animation-delay:2.1s , 3.1s ;
}

.home-img .glowing-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img .glowing-circle::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: #0c1022;
  border-radius: 50%;
}

.glowing-circle span {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(#f06, #3cf);
  border-radius: 50%;
  animation: circleRotate 5s linear infinite;
}

.glowing-circle span:nth-child(1) {
  filter: blur(10px);
}

.glowing-circle .image {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  z-index: 1;
  overflow: hidden;
}

.image img {
  position: absolute;
  top: -14;
  left: 50%;
  transform: translate(-50%);
  max-width: 384px;
  object-fit: cover;
}

/* keyfreams animation */

@keyframes slideTop {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  0%{
    opacity: 0;
    transform: translateX(-100px);

  }
  100%{
    opacity: 1;
    transform: translateX(0);

  }
  
}

@keyframes slideLeft {
  0%{
    opacity: 0;
    transform: translateX(100px);

  }
  100%{
    opacity: 1;
    transform: translateX(0);

  }
  
}

@keyframes slideBottom {
  0%{
    opacity: 0;
    transform: translateY(-100px);

  }
  100%{
    opacity: 1;
    transform: translateY(0);

  }
  
}

@keyframes zoomIn {
  0%{
    opacity: 0;
    transform: scale(0);

  }
  100%{
    opacity: 1;
    transform: scale(1);

  }
  
}

@keyframes floatImage {
  0%{
    transform: translateY(0);

  }
  50%{
    transform: translateY(-24px);

  }
  100%{
    transform: translateY(0);

  }
  
}

@keyframes circleRotate {
  0%{
    transform: rotate(0);
  }
  100%{
    transform: rotate(360deg);

  }
  
}
