/* ByteConnect Pro — Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 91, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(59, 91, 255, 0);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.btn-primary.pulse {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--bc-ease-out), transform 0.7s var(--bc-ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.hover-lift {
  transition: transform var(--bc-duration) var(--bc-ease), box-shadow var(--bc-duration) var(--bc-ease);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--bc-shadow-md);
}

.skeleton {
  background: linear-gradient(90deg, #EAECF0 25%, #F2F4F7 50%, #EAECF0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--bc-radius-sm);
}

.page-transition {
  animation: fadeIn 0.45s var(--bc-ease);
}

/* Particle canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* SVG stroke draw */
.svg-draw path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawPath 2.5s var(--bc-ease) forwards;
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

/* Mobile bottom nav mock only — decorative */
.mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.65rem 0.5rem calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--bc-bg-elevated);
  border-top: 1px solid var(--bc-border);
  border-radius: 0 0 18px 18px;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  color: var(--bc-text-muted);
}

.mobile-bottom-nav a.is-active {
  color: var(--bc-primary);
}

.mobile-bottom-nav i {
  font-size: 1rem;
}

/* Parallax layers */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}
