* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Krona One', sans-serif;
  font-family: 'Vazirmatn', sans-serif;
}

.container {
  background: #000000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.container .mist {
  position: absolute;
  left: 0;
  width: 100%;
}

.container .mist.top {
  top: 0;
  width: 100%;
}
.container .mist.bottom {
  bottom: 0;
}

header {
  padding-top: 50px;
  padding-inline: 48px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 1.5s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 1s;
}

header .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

header .row .logo {
  display: flex;
  align-items: center;
  grid-gap: 8px;
}

header .row .social-links {
  display: flex;
  flex-direction: column;
  grid-gap: 16px;
}

header .row .social-links .link {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

header .row .social-links .link img {
  width: 100%;
}

.top {
  position: relative;
  height: 518px;
}

.top .milky-way {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 1s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 1s;
}
.top .backlight-img {
  object-fit: cover;
  position: absolute;
  height: 100%;
  width: 100%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 0.7s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 3.8s;
}

.top .rebitz-image {
  position: absolute;
  left: 50%;
  bottom: 0;
  opacity: 0;
  transform: translate(-50%, 0px);
  animation-name: fadeUpRebitz;
  animation-duration: 0.7s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 3.5s;
}

.top .top-gradient {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 100%;
}

.top .main-title {
  position: absolute;
  left: 50%;
  bottom: -15px;
  opacity: 0;
  transform: translate(-50%, 0px);
  animation-name: fadeUpRebitz;
  animation-duration: 1s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 4s;
}

.bottom {
  background-image: url('./assets/img/earth.png');
  background-position: 0px 600px;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 598px;
  animation-name: earth;
  animation-duration: 2.5s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
}

.bottom .bottom-gradient {
  width: 100%;
}

.bottom .slider {
  position: absolute;
  top: -10px;
  width: 100%;
  overflow-x: auto;
  z-index: 2;
  padding-inline: 50px;
}

.bottom .slider::-webkit-scrollbar {
  width: 0px;
}

/* Track */
.bottom .slider::-webkit-scrollbar-track {
  border-radius: 10px;
}

/* Handle */
.bottom .slider::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
}

/* Handle on hover */
.bottom .slider::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

.bottom .slider .row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  grid-gap: 35px;
  min-width: 900px;
}
.bottom .slider .row .item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bottom .slider .row .item .avatar {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  animation-name: fadeUp;
  animation-duration: 0.4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  opacity: 0;
}
.bottom .slider .row .item:nth-child(1) .avatar {
  animation-delay: 4.4s;
}
.bottom .slider .row .item:nth-child(2) .avatar {
  animation-delay: 5.2s;
}
.bottom .slider .row .item:nth-child(3) .avatar {
  animation-delay: 6s;
}

.bottom .slider .row .item .avatar img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.bottom .slider .row .item .text {
  margin-top: -20px;
  width: 200px;
  animation-name: fadeUp;
  animation-duration: 0.4s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  opacity: 0;
}

.bottom .slider .row .item:nth-child(1) .text {
  animation-delay: 4.8s;
}
.bottom .slider .row .item:nth-child(2) .text {
  animation-delay: 5.6s;
}
.bottom .slider .row .item:nth-child(3) .text {
  animation-delay: 6.4s;
  margin-top: -35px;
}

.bottom .title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 1.5s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 2.5s;
}

@media only screen and (max-width: 1200px) {
  .bottom {
    background-position: center;
    animation-name: earthSmall;
  }
}

@media only screen and (max-width: 1023px) {
  header {
    padding-top: 20px;
    padding-inline: 20px;
  }
  .top {
    height: 350px;
  }
  .top .rebitz-image {
    width: 550px;
  }
  .top .main-title {
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 180px;
    z-index: 2;
    transform: translateX(-50%);
  }

  .bottom {
    height: calc(100vh - 350px);
  }
  .bottom .slider {
    top: 0px;
  }
  .bottom .slider .row {
    grid-gap: 20px;
    min-width: 700px;
  }
  .bottom .slider .row .item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .bottom .slider .row .item .avatar {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    overflow: hidden;
  }
  .bottom .slider .row .item .text {
    width: 150px;
  }
}

@media only screen and (min-width: 2000px) {
  .top {
    height: 50vh;
  }
  .top .rebitz-image {
    width: 65%;
  }
  .top .main-title {
    width: 15%;
  }
  .bottom {
    height: 50vh;
  }
  .bottom .slider {
    top: 20px;
  }
  .bottom .slider .row .item {
    width: 10%;
  }
  .bottom .slider .row .item .avatar {
    width: 100%;
    aspect-ratio: 1/1;
  }
  .bottom .slider .row .item .text {
    margin-top: 10px;
    width: 60%;
  }
}

/* animations */

@keyframes fadeUp {
  0% {
    transform: translateY(70px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes fadeUpRebitz {
  0% {
    transform: translate(-50%, 70px);
    opacity: 0;
  }
  100% {
    transform: translateY(-50%, 0px);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes earth {
  0% {
    opacity: 0;
  }
  100% {
    background-position: 0 -200px;
    opacity: 1;
  }
}

@keyframes earthSmall {
  0% {
    opacity: 0;
    background-position: 50% 400px;
  }
  100% {
    background-position: center;
    background-size: cover;
    opacity: 1;
  }
}
