/* Responsive styles for mobile devices */
@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding: 0 4vw;
  }
  .profile-pic {
    width: 80px;
    height: 80px;
  }
  .link-card {
    font-size: 1rem;
    padding: 0.8em 1em;
    margin: 0.7em 0;
    border-radius: 10px;
  }
  .social-icons {
    font-size: 1.3em;
    gap: 0.7em;
  }
  .info-box {
    font-size: 0.98em;
    padding: 0.7em 1em;
  }
  h1, h2, h3, h4 {
    font-size: 1.2em;
    margin: 0.5em 0;
  }
  .container, main, .content {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    padding: 0;
  }
  .link-card, .info-box {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}
:root {
  --bg-color: #1a1a1a;
  --text-color: rgba(255, 255, 255, 0.95);
  --icon-color: #FFC107;
  --accent-color: #FFC107;
  --accent-hover: #FFD54F;
}

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: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.profile-pic:hover {
  transform: scale(1.05);
  border-color: var(--accent-hover);
  box-shadow: 0 0 30px rgba(255, 193, 7, 0.5);
}

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

.link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 193, 7, 0.15);
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
  border-color: var(--accent-color);
}

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

.link-card:hover .icon {
  transform: scale(1.1);
  color: var(--accent-hover);
}

.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, 193, 7, 0.15) 0%, rgba(255, 193, 7, 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, 193, 7, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 20px rgba(255, 193, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 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, 193, 7, 0.8), rgba(255, 213, 79, 0.5), rgba(255, 193, 7, 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 */
  }
}
