/* Animations CSS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Apply animations to elements */
.profile {
  animation: scaleIn 0.5s ease forwards;
}

.profile-image {
  animation: scaleIn 0.5s ease 0.2s both;
}

.profile-name {
  animation: fadeIn 0.5s ease 0.3s both;
}

.profile-bio {
  animation: fadeIn 0.5s ease 0.4s both;
}

.link-item {
  animation: fadeIn 0.4s ease both;
}

.link-item:nth-child(1) {
  animation-delay: 0.4s;
}

.link-item:nth-child(2) {
  animation-delay: 0.5s;
}

.link-item:nth-child(3) {
  animation-delay: 0.6s;
}

.link-item:nth-child(4) {
  animation-delay: 0.7s;
}

.link-item:nth-child(5) {
  animation-delay: 0.8s;
}

.link-item:nth-child(6) {
  animation-delay: 0.9s;
}

footer {
  animation: fadeIn 0.5s ease 1s both;
}

/* Loading animations */
.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.dark-theme .loading::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Link hover animations */
.link-item:hover .link-icon, 
.link-item:focus .link-icon {
  transform: scale(1.1);
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease both;
}