/* 
 * Process section animations
 */

/* Base animation styles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseNode {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
  }
}

@keyframes glowBorder {
  0% {
    border-color: var(--border-color);
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
  }
  50% {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px 0 rgba(67, 97, 238, 0.3);
  }
  100% {
    border-color: var(--border-color);
    box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
  }
}

/* Process timeline animations */
.timeline-item {
  opacity: 0; /* Start invisible */
  transform: translateY(30px); /* Start below final position */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-node {
  display: none;
}

.timeline-content {
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.timeline-content.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for timeline items */
.timeline-item:nth-child(1) {
  transition-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  transition-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  transition-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  transition-delay: 0.4s;
}

.timeline-item:nth-child(5) {
  transition-delay: 0.5s;
}

.timeline-item:nth-child(6) {
  transition-delay: 0.6s;
}

/* Hover effects for timeline content */
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-blue);
}

/* Timeline details animation */
.timeline-details li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-details.animate li:nth-child(1) {
  transition-delay: 0.1s;
}

.timeline-details.animate li:nth-child(2) {
  transition-delay: 0.2s;
}

.timeline-details.animate li:nth-child(3) {
  transition-delay: 0.3s;
}

.timeline-details.animate li:nth-child(4) {
  transition-delay: 0.4s;
}

.timeline-details.animate li {
  opacity: 1;
  transform: translateX(0);
}

/* Timeline step number animation */
.timeline-step {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.timeline-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
}

.timeline-step.animate::after {
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
