.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  padding: 8rem 9% 3rem;
  min-height: calc(100vh - 8rem - 5.1rem);
  background: radial-gradient(
      circle at 20% 20%,
      rgba(124, 240, 61, 0.05),
      transparent 30%
    ),
    radial-gradient(circle at 80% 0%, rgba(124, 240, 61, 0.05), transparent 25%),
    var(--bg-color);
  visibility: hidden;
  opacity: 0;
}

/* typography */

.home-info h1 {
  font-size: clamp(3.5rem, 10vw, 5.5rem);
}

.home-info h2 {
  display: inline-block;
  font-size: 3.2rem;
  margin-top: -1rem;
}

/* Typewriter animation */
.home-info h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 0.07rem var(--main-color);
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
  25%,
  100% {
    display: none;
  }
}

.home-info h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 0.2rem solid var(--main-color);
  color: var(--main-color);
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
  10%,
  100% {
    width: 0;
  }

  70%,
  90% {
    width: 100%;
  }
}

.home-info p {
  font-size: 1.5rem;
  margin: 1rem 0 2.5rem;
}

/* social btns */

.home-info .btn-sci {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--main-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--bg-color);
  font-weight: 500;
  transition: 0.5s;
}

.btn:hover {
  background: transparent;
  color: var(--main-color);
  box-shadow: none;
}

.home-info .btn-sci .sci {
  margin-left: 2rem;
}

.home-info .btn-sci .sci a {
  display: inline-flex;
  padding: 0.8rem;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 0 0.8rem;
  transition: 0.5s;
}

.home-info .btn-sci .sci a:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

/* hero image and border animation */
.home-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img .img-box {
  position: relative;
  width: 32vw;
  height: 32vw;
  max-width: 360px;
  max-height: 360px;

  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;

  background: var(--bg-color);
  overflow: hidden;
}

/* animated border */
.home-img .img-box::before,
.home-img .img-box::after {
  content: '';
  position: absolute;
  width: 48rem;
  height: 48rem;
  background: conic-gradient(
    from 0deg,
    transparent,
    transparent,
    rgba(124, 240, 61, 0),
    rgba(124, 240, 61, 0.95),
    rgba(124, 240, 61, 0),
    transparent
  );
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

/* slight phase shift */
.home-img .img-box::after {
  animation-delay: -5s;
}

/* rotating neon ring */
@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  border-radius: 50%;
  border: 0.01rem solid var(--bg-color);
  display: flex;
  z-index: 1;
  justify-content: center;
  overflow: hidden;
}

/* hero image */
.home-img .img-box .img-item img {
  position: absolute;
  top: 3rem;
  display: block;
  width: 85%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

/* media queries */
@media (max-width: 960px) {
  .home {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    gap: 3rem;
  }

  .home-info .btn-sci {
    justify-content: center;
  }

  .home-info .btn-sci .sci {
    margin-left: 1.5rem;
  }

  .home-img .img-box {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 600px) {
  .home {
    gap: 2.5rem;
  }

  .home-info h1 {
    font-size: clamp(3rem, 8vw, 4.2rem);
  }

  .home-info h2 {
    font-size: 2.4rem;
  }

  .home-info p {
    font-size: 1.4rem;
  }

  .home-img .img-box {
    width: 220px;
    height: 220px;
  }

  .home-info .btn-sci .sci a {
    margin: 0 0.5rem;
  }
}
