@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image:
    linear-gradient(
      to bottom,
      rgba(247, 247, 247, 1) 0%,
      rgba(247, 247, 247, 0.6) 40%,
      rgba(247, 247, 247, 0.6) 60%,
      rgba(247, 247, 247, 1) 100%
    ),
    /* gradient transparan atas & bawah */
    linear-gradient(#ddd 1px, transparent 1px),
    linear-gradient(90deg, #ddd 1px, transparent 1px),
    radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}



.glass-effect {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gradient-text {
  background: linear-gradient(to right, #007bff, #00bfff);
  background-clip: text; /* standar */
  -webkit-background-clip: text; /* untuk browser berbasis WebKit */
  color: transparent; /* standar */
  -webkit-text-fill-color: transparent; /* untuk Safari/Chrome lama */
}

.gradient-button-border {
  border: 2px solid transparent;
  background-image: linear-gradient(white, white),
    linear-gradient(to right, #007bff, #00bfff);
  background-origin: border-box;
  background-clip: content-box, border-box;
  border-radius: 9999px;
}

.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Animasi goyang */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }

  75% {
    transform: translateX(-1px);
  }
}

.animate-shake {
  animation: shake 0.4s ease-in-out;
}

#theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  color: #333;
}

body.dark-mode #theme-toggle {
  color: #e2e8f0;
}

#scroll-to-top-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(to right, #007bff, #00bfff);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

#scroll-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}
