/* ============================================================
   Additional Animations CSS
   ============================================================ */

/* Smooth page transitions */
main {
  animation: page-fade-in 0.4s ease-out;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover lift for interactive cards */
.card-neon,
.card-elevated,
.case-study-card,
.blog-card,
.testimonial-card,
.resource-card,
.career-card {
  will-change: transform;
}

/* Button hover micro-animation */
.btn-primary,
.btn-outline {
  will-change: transform, box-shadow;
}

/* Service card icon spin on hover */
.card-neon:hover .service-card-icon svg {
  transform: rotate(8deg) scale(1.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Metric value pulse on visible */
.metric-value {
  animation: none;
}

.metric-card:hover .metric-value {
  animation: metric-pulse 0.4s ease;
}

@keyframes metric-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Partner logo fade on edges */
.partner-strip {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Timeline connector line on desktop */
@media (min-width: 768px) {
  .timeline-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gray-200);
    z-index: 0;
  }

  .timeline-card {
    position: relative;
    z-index: 1;
  }
}

/* Testimonial card quote mark animation */
.testimonial-card:hover .testimonial-quote::before {
  transform: scale(1.1);
  color: var(--color-primary-200);
  transition: all 0.3s ease;
}

/* Pricing card featured glow */
.pricing-card.featured:hover {
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

/* History timeline dot pulse */
.history-item:hover::before {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  transition: box-shadow 0.3s ease;
}

/* Arch layer hover glow */
.arch-layer:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* NDA badge shimmer */
.nda-badge {
  position: relative;
  overflow: hidden;
}

.nda-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Form focus transition */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  transform: translateY(-1px);
}

/* Toast slide animation override for exit */
.toast.removing {
  animation: slide-out-right 0.3s ease-out forwards;
}

/* Loading spinner for buttons */
.btn-primary:disabled,
.btn-outline:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* Hero badge pulse */
.hero-badge {
  animation: hero-badge-glow 3s ease-in-out infinite;
}

@keyframes hero-badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
}
