/* animations.css — vida e movimento */
/* Reveal on scroll */
[data-reveal], .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed, .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  background: #58a6ff;
  animation: blink 1s infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Glass cards */
.glass-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108,99,255,0.2);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #58a6ff, #58a6ff, #3fb950);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: float 3s ease-in-out infinite; }

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(108,99,255,0.3); }
  50% { box-shadow: 0 0 40px rgba(108,99,255,0.6); }
}
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Counter animation */
.counter { font-variant-numeric: tabular-nums; }

/* Hover lift */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

/* Gradient border */
.gradient-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#0a0e14, #0a0e14) padding-box, linear-gradient(135deg, #58a6ff, #58a6ff, #3fb950) border-box;
}

/* Text glow */
.text-glow { text-shadow: 0 0 20px rgba(108,99,255,0.5); }
