/* AI SmartDesk - Animations */

/* Float Animation for Blobs */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Fade In Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.2s;
}

.fade-in.delay-2 {
  animation-delay: 0.4s;
}

.fade-in.delay-3 {
  animation-delay: 0.6s;
}

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

/* Fade In on Scroll */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button Hover Glow */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(20px);
}

.btn-primary:hover::before {
  opacity: 0.7;
}

/* Card Hover Lift */
.glass-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-8px);
}

/* Smooth Scroll Indicator */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Progress Bar Animation */
.progress-fill {
  animation: progressFill 2s ease forwards;
}

@keyframes progressFill {
  from {
    width: 0;
  }
}

/* Stat Counter Animation */
.stat-number {
  animation: countUp 2s ease forwards;
}

/* Pulse Animation for Featured Badge */
.featured-badge {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
}

/* Shimmer Effect */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

/* Workflow Step Animation */
.workflow-step {
  transition: all 0.3s ease;
}

.workflow-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6);
}

/* Testimonial Card Hover */
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Pricing Card Hover */
.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
}

.pricing-featured:hover {
  box-shadow: 0 25px 70px rgba(99, 102, 241, 0.5);
}

/* Navbar Transition */
.navbar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Transitions */
* {
  transition-property: transform, opacity, box-shadow, border-color, background;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Disable transitions on page load */
.preload * {
  transition: none !important;
}

/* Gradient Text Animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.nav-logo,
.stat-number,
.price-amount {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Ticket Preview Animation */
.ticket-preview {
  animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Badge Pulse */
.badge {
  animation: badgePulse 2s ease-in-out infinite;
}

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

/* Feature Icon Float */
.feature-icon {
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Solution Icon Rotate */
.solution-icon {
  transition: transform 0.5s ease;
}

.solution-card:hover .solution-icon {
  transform: rotate(10deg) scale(1.1);
}

/* CTA Section Glow */
.cta-section {
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: breathe 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Link Hover Underline */
.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Footer Links Hover */
.footer-links a {
  position: relative;
  display: inline-block;
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover::before {
  left: -15px;
  opacity: 1;
}

/* Stagger Animation for Grids */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.5s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.6s; }

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
  .fade-in-scroll {
    transform: translateY(20px);
  }
  
  .glass-card:hover {
    transform: translateY(-4px);
  }
}

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