/* Import fonts and icons */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

/* Fix pushup footer issue */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  padding-bottom: 250px;
  border: none !important;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, #8a2be2, #120032, #0a001a);
  filter: blur(60px);
  opacity: 0.9;
  z-index: -1;
}

/* Hide scrollbar completely but keep scroll functionality */

/* Firefox */
* {
  scrollbar-width: none !important;
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
  display: none !important;
}

/* Text styling */
p {
  font-family: Inter, sans-serif;
  font-size: 15px;
  color: white;
}

h1 {
  font-family: Inter;
  font-size: 50px;
  color: white;
}

h2 {
  font-family: Inter;
  font-size: 40px;
  color: white;
}

h3 {
  font-family: Inter;
  font-size: 30px;
  color: white;
}

h4 {
  font-family: Inter;
  font-size: 20px;
  color: white;
}

body {
  font-family: Inter, sans-serif;
  background: radial-gradient(circle at top left, #8a2be2, #120032, #0a001a);
}

/* Particles.JS */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  display: none;
}

/* Glow Animation for Text */
@keyframes glow {
  0%,
  100% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(174, 84, 255, 0.8),
      0 0 30px rgba(174, 84, 255, 0.8);
  }
  50% {
    text-shadow:
      0 0 20px rgba(255, 255, 255, 1),
      0 0 30px rgba(174, 84, 255, 1),
      0 0 40px rgba(174, 84, 255, 1);
  }
}

/* Gradient Text with Glow */
.gradient-red {
  background: linear-gradient(to right, #ffffff, #ae54ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(174, 84, 255, 0.8);
  animation: glow 1.5s infinite alternate;
  user-select: none;
}

/* Links */
a:link,
a:visited,
a:hover,
a:active {
  color: white;
}

/* Button styling */
button {
  padding: 10px 20px;
  background-color: black;
  color: white;
  border: 1.5px solid white;
  border-radius: 5px;

  margin: 10px;
  transition:
    background-color 0.2s,
    box-shadow 0.3s;
  box-shadow: 0 0 10px rgba(174, 84, 255, 0.3);
  background-color: rgba(34, 34, 34, 0.2);

  backdrop-filter: blur(6px);
}

button:hover {
  border: 0.5px solid white;
  box-shadow: 0 0 15px rgba(174, 84, 255, 0.6);
}

button:nth-child(2) {
  background-color: rgba(34, 34, 34, 0.2);
}

button:nth-child(2):hover {
  background-color: rgba(174, 84, 255, 0.3);
  box-shadow: 0 0 20px rgba(174, 84, 255, 0.7);
}

/* Notification styling */
/* Notifications */
#notifications-container {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}

.notification {
  min-width: 260px;
  max-width: 340px;
  background: linear-gradient(
    90deg,
    rgba(138, 43, 226, 0.1) 60%,
    rgba(255, 75, 43, 0.1) 100%
  );
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 1.08em;
  border-radius: 14px;
  box-shadow: 0 4px 24px #8a2be288;
  padding: 18px 28px 16px 22px;
  margin-bottom: 4px;
  opacity: 0;
  transform: translate(40px, 20px) scale(0.9);
 
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.notification.notif-in {
  animation: notif-in 0.4s cubic-bezier(0.4, 2, 0.6, 1) forwards;
}
.notification.notif-out {
  pointer-events: none;
  animation: notif-out 0.35s cubic-bezier(0.4, 2, 0.6, 1) forwards;
}


@keyframes notif-in {
  0% {
    opacity: 0;
    transform: translate(40px, 20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}


.notification.hide {
  pointer-events: none;
  animation: notif-out 0.35s cubic-bezier(0.4, 2, 0.6, 1) forwards;
}

@keyframes notif-out {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(60px) scale(0.96);
  }
}


.notification-title {
  font-weight: 700;
  font-size: 1.08em;
  margin-bottom: 2px;
  color: #fff;
}

.notification-body {
  font-size: 0.98em;
  color: #f3eaff;
  margin-top: 4px;
  line-height: 1.5;
  opacity: 0.85;
}
.notification {
  position: relative;
  transition: all 0.3s ease;
}

.notification-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
  padding: 0;
  line-height: 1;
}
.notification-close:hover,
.notification-close:focus {
  opacity: 1;
  outline: none;
}

.notification-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  height: 3px;
  border-radius: 2px;
  width: 100%;
  transition: width linear;
  pointer-events: none;
}

.notification.sticky .notification-timer {
  display: none;
}
@keyframes notif-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(-40px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) translateY(10px);
  }
  80% {
    transform: scale(0.98) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
/* summaryResult — moving purple-band border with blurred translucent fill */
#summaryResult {
  position: relative;
  border-radius: 15px;
  padding: 14px 18px;
  color: #eee;

  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: rgba(28, 10, 45, 1);   /* inner semi-transparent fill */
  overflow: hidden;
  /* variables you can tweak */
  --spin-duration: 6s;
  --border-gap: 6px;    /* thickness of "mask" that keeps the gradient to border only */
}

/* moving gradient layer (the visible animated part) */
#summaryResult::before {
  content: "";
  position: absolute;
  inset: calc(var(--border-gap) * -1);    /* extend a bit outside so it wraps nicely */
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;

  /* a narrow conic-gradient band — most of the circle is transparent except a purple slice */
  background: conic-gradient(
    from 0deg,
    transparent 0deg 220deg,
    rgba(138,43,226,0.98) 221deg 260deg,
    rgba(194,128,255,0.8) 261deg 300deg,
    transparent 301deg 360deg
  );

  /* soften the edges (optional) */
  filter: blur(3px) drop-shadow(0 0 10px rgba(138,43,226,0.2));
  transform-origin: 50% 50%;
  animation: summarySpin var(--spin-duration) linear infinite;
}

/* inner mask so the gradient looks like a border (not full background) */
#summaryResult::after {
  content: "";
  position: absolute;
  inset: var(--border-gap);
  border-radius: calc(15px - var(--border-gap));
  z-index: 0;
  pointer-events: none;
  background: rgba(28, 10, 45, 1); /* same as main fill to mask center */
  /* you can add a subtle inner shadow if you want */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);

}

/* ensure children sit above the mask & animated layer */
#summaryResult > * {
  position: relative;
  z-index: 2;
}

/* the actual spin animation */
@keyframes summarySpin {
  to { transform: rotate(360deg); }
}
