/* ============================================
   Isis Alencastro - Central de Links v1.0
   Tema: Branco & Azul | Card Redondo
   ============================================ */

/* --- Background Decoration --- */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.bg-circle--1 {
  width: 400px;
  height: 400px;
  background: #bfdbfe;
  top: -120px;
  right: -100px;
  animation: floatSlow 20s ease-in-out infinite;
}

.bg-circle--2 {
  width: 300px;
  height: 300px;
  background: #dbeafe;
  bottom: -80px;
  left: -80px;
  animation: floatSlow 25s ease-in-out infinite reverse;
}

.bg-circle--3 {
  width: 200px;
  height: 200px;
  background: #93c5fd;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  animation: floatSlow 18s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -30px); }
  50% { transform: translate(-15px, 20px); }
  75% { transform: translate(25px, 15px); }
}

/* --- Card entrance --- */
.card {
  animation: cardAppear 0.7s ease forwards;
  opacity: 0;
  transform: translateY(24px);
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Avatar shadow --- */
.shadow-blue {
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.35);
}

.avatar:hover {
  box-shadow: 0 12px 32px -4px rgba(37, 99, 235, 0.45);
}

/* --- Profile animations --- */
.animate-fade-up {
  animation: fadeInUp 0.5s ease 0.25s both;
}

.animate-fade-up-delay {
  animation: fadeInUp 0.5s ease 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Welcome badge pulse --- */
#welcomeSection {
  animation: fadeInUp 0.5s ease 0.55s both;
}

#welcomeSection .inline-flex {
  animation: subtlePulse 2.5s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* --- Links reveal --- */
.links-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* --- Link items --- */
.link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 48px;
  border-radius: 9999px;
  background: #ffffff;
  border: 2px solid #dbeafe;
  text-decoration: none;
  color: #1e293b;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item.link-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.link-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.link-item:hover {
  border-color: #2563eb;
  transform: translateY(-2px) scale(1);
  box-shadow: 0 6px 20px -4px rgba(37, 99, 235, 0.3);
}

.link-item:hover::before {
  opacity: 1;
}

.link-item:hover .link-icon,
.link-item:hover .link-text,
.link-item:hover .link-arrow {
  color: #ffffff;
}

.link-item:active {
  transform: translateY(-1px) scale(0.985);
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  flex-shrink: 0;
  font-size: 1rem;
  color: #2563eb;
  transition: all 0.35s ease;
  position: relative;
  z-index: 1;
}

.link-item:hover .link-icon {
  background: rgba(255, 255, 255, 0.2);
}

.link-text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.link-arrow {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: all 0.35s ease;
  position: relative;
  z-index: 1;
}

.link-item:hover .link-arrow {
  transform: translateX(3px);
  color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .link-item {
    height: 44px;
    padding: 0 1rem;
    gap: 0.625rem;
  }

  .link-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .link-text {
    font-size: 0.82rem;
  }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bg-circle {
    animation: none;
  }

  .link-item {
    opacity: 1;
    transform: none;
  }

  #linksSection {
    opacity: 1 !important;
    transform: none !important;
  }
}

.link-item:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: #bfdbfe;
  color: #1e3a8a;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
