* {
  --primary-color: #54041e;
  --light-color: #7b0323;
  --particle-color: #a40b34;
  --dark-gray: #212121;
  scroll-behavior: smooth;
}

@keyframes flipIn {
  0% {
    opacity: 0;
    transform: rotateY(90deg) rotateZ(-20deg) translate3d(0, 200px, 0);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) rotateZ(0deg) translate3d(0, 0, 0);
  }
}

.start-animation {
  animation: flipIn 1s ease-out forwards;
  transform-origin: center;
  backface-visibility: hidden;
}

.animate-item {
  opacity: 0;
}

@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(5rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animation-start.animate-up-fade {
  animation: slideUpFadeIn 1s ease-out forwards;
}

.animate-slide-up-fade {
  animation: slideUpFadeIn 2s ease-out forwards;
}

@keyframes slideLeftFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-5rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animation-start.animate-left-fade {
  animation: slideLeftFadeIn 1s ease-out forwards;
}

.animate-slide-left-fade {
  animation: slideLeftFadeIn 2s ease-out forwards;
}

@keyframes slideRightFadeIn {
  0% {
    opacity: 0;
    transform: translateX(5rem);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animation-start.animate-right-fade {
  animation: slideRightFadeIn 1s ease-out forwards;
}

.animate-slide-right-fade {
  animation: slideRightFadeIn 2s ease-out forwards;
}

@keyframes progressBar {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 1;
    width: var(--value);
  }
}

.animation-start.progress {
  animation: progressBar 2s ease-out forwards;
}

.better::after {
  position: absolute;
  content: "";
  height: 0.125rem;
  width: 27%;
  background-color: var(--light-color);
}

.indicator,
.ind {
  position: relative;
  display: inline-block;
  width: 1.2rem;
  height: 0.14rem;
  border-radius: 9999px;
  background-color: white;
  transition: all 0.5s ease-in-out;
  overflow: hidden;
}

.indicator:hover {
  background-color: var(--light-color);
}

/* Active effect */
.indicator.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--primary-color);
  transform: scale(1.8);
  opacity: 0.8;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: -1;
}

/* Smooth scale on main element too */
.indicator.active {
  transform: scale(1.4);
  box-shadow: 0 0 12px var(--primary-color);
  background-color: var(--primary-color);
}

.slider,
.slider-logo {
  user-select: none;
}

.left-scroll {
  scrollbar-width: none;
}

.relative input:focus + div {
  width: 100%;
  opacity: 1;
}

.relative textarea:focus + div {
  width: 100%;
  opacity: 1;
}

/* ------- BLACKHOLE INTRO ------- */
#blackholeIntro {
  position: fixed;
  inset: 0;
  background: #000000;
}

#blackhole {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
}

.centerHover {
  width: 255px;
  height: 255px;
  background-color: transparent;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -128px;
  margin-left: -128px;
  z-index: 2;
  cursor: pointer;
  line-height: 255px;
  text-align: center;
  transition: all 500ms;
}

.centerHover.open {
  opacity: 0;
  pointer-events: none;
}

.centerHover span {
  color: var(--light-color);
  font-family: serif;
  font-size: 18px;
  transition: all 500ms;
  font-weight: 900;
  position: relative;
}

.centerHover span:before {
  content: "";
  display: inline-block;
  height: 1px;
  width: 16px;
  margin-right: 12px;
  margin-bottom: 4px;
  background-color: var(--light-color);
  transition: all 500ms;
}

.centerHover span:after {
  content: "";
  display: inline-block;
  height: 1px;
  width: 16px;
  margin-left: 12px;
  margin-bottom: 4px;
  background-color: var(--light-color);
  transition: all 500ms;
}

.centerHover:hover span:before {
  background-color: var(--particle-color);
}

.centerHover:hover span:after {
  background-color: var(--particle-color);
}

.centerHover:hover span {
  color: var(--particle-color);
}

canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: auto;
}

.slider-logo {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.slider-logo img {
  width: 7rem;
  margin-right: 3rem;
  opacity: 0.8;
  transition: 0.3s;
}

.slider-logo img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-160px * 6));
  }
}

#scrollTopBtn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}
