*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --dark-color: #000;
}

.night {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  filter: blur(0.1vmin);
  background-image: radial-gradient(
      ellipse at top,
      transparent 0%,
      var(--dark-color)
    ),
    radial-gradient(
      ellipse at bottom,
      var(--dark-color),
      rgba(145, 233, 255, 0.2)
    ),
    repeating-linear-gradient(
      220deg,
      rgb(0, 0, 0) 0px,
      rgb(0, 0, 0) 19px,
      transparent 19px,
      transparent 22px
    ),
    repeating-linear-gradient(
      189deg,
      rgb(0, 0, 0) 0px,
      rgb(0, 0, 0) 19px,
      transparent 19px,
      transparent 22px
    ),
    repeating-linear-gradient(
      148deg,
      rgb(0, 0, 0) 0px,
      rgb(0, 0, 0) 19px,
      transparent 19px,
      transparent 22px
    ),
    linear-gradient(90deg, rgb(255, 255, 250), rgb(240, 240, 240));
}

.title {
  position: absolute;
  top: 6rem;
  left: 0;
  color: white;
  font-family: "Courier New", Courier, monospace;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;

  width: 100%;
  height: 100vh;
  text-shadow: 0 0 20px white;
  letter-spacing: 0px;
}

@media (min-width: 500px) {
  .title {
    letter-spacing: 12px;
  }
}

@keyframes typing {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Terapkan animasi dengan delay */
.title span {
  opacity: 0;
  animation: typing 1s ease forwards;
  animation-delay: var(--delay);
}

a {
  text-decoration: none;
}

.btn {
  border: none;
  width: 15em;
  height: 5em;
  border-radius: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #1c1a1c;
  cursor: pointer;
  transition: all 450ms ease-in-out;
}

.sparkle {
  fill: #aaaaaa;
  transition: all 800ms ease;
}

.text {
  font-weight: 600;
  color: #aaaaaa;
  font-size: medium;
}

.btn:hover {
  background: linear-gradient(
    107.2deg,
    rgb(150, 15, 15) 10.6%,
    rgb(247, 0, 0) 91.1%
  );
  box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.4),
    inset 0px -4px 0px 0px rgba(0, 0, 0, 0.2),
    0px 0px 0px 4px rgba(255, 255, 255, 0.2), 0px 0px 180px 0px #cc3336;
  transform: translateY(-2px);
}

.btn:hover .text {
  color: white;
}

.btn:hover .sparkle {
  fill: white;
  transform: scale(1.2);
}

div,
ul,
li,
svg {
  will-change: transform;
  transform-style: preserve-3d;
}

li,
svg {
  transform-origin: center top;
}

.gradient {
  opacity: 0;
  height: 0;
  width: 0;
}

.lotus {
  transform-origin: center center;
  transform: rotateX(70deg);
  -webkit-animation: rotate 20000ms linear infinite forwards;
  animation: rotate 20000ms linear infinite forwards;
  position: absolute;
  top: calc(50% - 18px);
  left: calc(50% - 18px);
  width: 36px;
  height: 36px;
}
.lotus ul {
  position: relative;
  width: 36px;
  height: 36px;
}
.lotus li {
  position: absolute;
}
.lotus li svg {
  display: block;
  height: auto;
}
.lotus li svg path {
  fill: url(#gradient);
}
.lotus:nth-child(1) li {
  top: 18px;
  left: calc(50% - 18px);
}
.lotus:nth-child(1) li:nth-child(1) {
  transform: rotateZ(45deg) rotateX(15deg) rotateY(5deg);
}
.lotus:nth-child(1) li:nth-child(2) {
  transform: rotateZ(90deg) rotateX(15deg) rotateY(5deg);
}
.lotus:nth-child(1) li:nth-child(3) {
  transform: rotateZ(135deg) rotateX(15deg) rotateY(5deg);
}
.lotus:nth-child(1) li:nth-child(4) {
  transform: rotateZ(180deg) rotateX(15deg) rotateY(5deg);
}
.lotus:nth-child(1) li:nth-child(5) {
  transform: rotateZ(225deg) rotateX(15deg) rotateY(5deg);
}
.lotus:nth-child(1) li:nth-child(6) {
  transform: rotateZ(270deg) rotateX(15deg) rotateY(5deg);
}
.lotus:nth-child(1) li:nth-child(7) {
  transform: rotateZ(315deg) rotateX(15deg) rotateY(5deg);
}
.lotus:nth-child(1) li:nth-child(8) {
  transform: rotateZ(360deg) rotateX(15deg) rotateY(5deg);
}
.lotus:nth-child(1) li svg {
  width: 72px;
  transform: rotateX(75deg);
  -webkit-animation: bloom 1000ms cubic-bezier(0, 0.75, 0.25, 1) forwards;
  animation: bloom 1000ms cubic-bezier(0, 0.75, 0.25, 1) forwards;
}
.lotus:nth-child(2) li {
  top: 15px;
  left: calc(50% - 15px);
}
.lotus:nth-child(2) li:nth-child(1) {
  transform: rotateZ(60deg) rotateX(30deg) rotateY(5deg);
}
.lotus:nth-child(2) li:nth-child(2) {
  transform: rotateZ(120deg) rotateX(30deg) rotateY(5deg);
}
.lotus:nth-child(2) li:nth-child(3) {
  transform: rotateZ(180deg) rotateX(30deg) rotateY(5deg);
}
.lotus:nth-child(2) li:nth-child(4) {
  transform: rotateZ(240deg) rotateX(30deg) rotateY(5deg);
}
.lotus:nth-child(2) li:nth-child(5) {
  transform: rotateZ(300deg) rotateX(30deg) rotateY(5deg);
}
.lotus:nth-child(2) li:nth-child(6) {
  transform: rotateZ(360deg) rotateX(30deg) rotateY(5deg);
}
.lotus:nth-child(2) li svg {
  width: 60px;
  transform: rotateX(60deg);
  -webkit-animation: bloom 1100ms cubic-bezier(0, 0.75, 0.25, 1) 150ms forwards;
  animation: bloom 1100ms cubic-bezier(0, 0.75, 0.25, 1) 150ms forwards;
}
.lotus:nth-child(3) li {
  top: 12px;
  left: calc(50% - 12px);
}
.lotus:nth-child(3) li:nth-child(1) {
  transform: rotateZ(120deg) rotateX(60deg) rotateY(5deg);
}
.lotus:nth-child(3) li:nth-child(2) {
  transform: rotateZ(240deg) rotateX(60deg) rotateY(5deg);
}
.lotus:nth-child(3) li:nth-child(3) {
  transform: rotateZ(360deg) rotateX(60deg) rotateY(5deg);
}
.lotus:nth-child(3) li svg {
  width: 48px;
  transform: rotateX(30deg);
  -webkit-animation: bloom 1200ms cubic-bezier(0, 0.75, 0.25, 1) 300ms forwards;
  animation: bloom 1200ms cubic-bezier(0, 0.75, 0.25, 1) 300ms forwards;
}

@-webkit-keyframes rotate {
  from {
    transform: rotateX(70deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes rotate {
  from {
    transform: rotateX(70deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}
@-webkit-keyframes bloom {
  to {
    transform: none;
  }
}
@keyframes bloom {
  to {
    transform: none;
  }
}
