:root {
  --bg-color: #1a1a2e;
  --text-color: rgba(255, 255, 255, 0.85);
  --icon-color: rgba(255, 255, 255, 0.7);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.profile-pic {
  width: 140px;
  height: 140px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.link-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon {
  color: var(--icon-color);
  transition: all 0.3s ease;
}

.link-card:hover .icon {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.9);
}

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
  }
  100% {
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
  }
}

.info-box {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border-left: 3px solid var(--icon-color);
}

.social-icons a {
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
}

/* Generate random circles for background */
.generate-circles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.pulsating-box {
  animation: glowWave 4s infinite;
}

@keyframes glowWave {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.border-trace::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px; /* match your card radius */
  box-sizing: border-box;
  pointer-events: none;

  /* Gradient border using a mask trick */
  border: 3px solid transparent;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(209, 77, 77, 0.224), rgba(255, 255, 255, 0.8));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px; /* same as border thickness */

  /* Animation */
  clip-path: inset(0 100% 0 0); /* start hidden */
  animation: drawBorder 10s linear infinite; /* slower: 10s */
}

@keyframes drawBorder {
  0% {
    clip-path: inset(0 100% 0 0); /* hidden */
  }
  25% {
    clip-path: inset(0 0 0 0); /* fully visible */
  }
  50% {
    clip-path: inset(100% 0 0 0); /* start hiding from top */
  }
  75% {
    clip-path: inset(0 0 0 100%); /* hide from right */
  }
  100% {
    clip-path: inset(0 100% 0 0); /* back to hidden */
  }
}


.sparkler {
  position: absolute;
  top: 18px;
  right: 27px;
  height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.stick {
  width: 4px;
  height: 150px;
  background: #555;
  border-radius: 2px;
}

.glow {
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, #ff0c, #f90a, #0000);
  border-radius: 50%;
  position: absolute;
  top: 20px;
  box-shadow: 0 0 15px #ff0;
  animation: flicker 0.8s infinite alternate;
}

@keyframes flicker {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; }
}

.particles {
  position: absolute;
  top: 15px;
}

.particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: yellow;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 1s infinite;
}

.particles span:nth-child(1) {
  animation-delay: 0s;
  left: -5px;
  top: -5px;
}
.particles span:nth-child(2) {
  animation-delay: 0.2s;
  left: 5px;
  top: -5px;
}
.particles span:nth-child(3) {
  animation-delay: 0.4s;
  left: -2px;
  top: -5px;
}
.particles span:nth-child(4) {
  animation-delay: 0.6s;
  left: 2px;
  top: -5px;
}
.particles span:nth-child(5) {
  animation-delay: 0.8s;
  left: 0px;
  top: -5px;
}

@keyframes sparkle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-30px) scale(0.5);
    opacity: 0;
  }
}
