/* Animations for Sentor Website */

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In From Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In From Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Glow Animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6);
  }
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Staggered Fade In */
@keyframes staggeredFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typewriter Effect */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Blink Cursor */
@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Apply animations to elements */

/* Hero section - No animations for cleaner look */
.hero-content {
  /* No animations */
}

.hero-text h1 {
  /* No animations */
}

.hero-text h2 {
  /* No animations */
}

.hero-cta {
  /* No animations */
}

/* Section animations - DISABLED to prevent white space issues */
section {
  opacity: 1;
  transform: none;
  transition: none;
}

section.animate-in {
  opacity: 1;
  transform: none;
}

/* Hero section should be visible by default - no animations */
.hero {
  opacity: 1;
  transform: translateY(0);
  /* Disable animations for hero */
  transition: none;
}

/* Card animations - DISABLED to prevent white space issues */
.feature-card,
.cta-card,
.use-case-card,
.testimonial-card,
.pricing-card {
  opacity: 1;
  transform: none;
  transition: none;
}

.feature-card.animate-in,
.cta-card.animate-in,
.use-case-card.animate-in,
.testimonial-card.animate-in,
.pricing-card.animate-in {
  opacity: 1;
  transform: none;
}

/* Staggered animation delays for cards */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.cta-card:nth-child(1) { transition-delay: 0.1s; }
.cta-card:nth-child(2) { transition-delay: 0.2s; }

.use-case-card:nth-child(1) { transition-delay: 0.1s; }
.use-case-card:nth-child(2) { transition-delay: 0.2s; }
.use-case-card:nth-child(3) { transition-delay: 0.3s; }
.use-case-card:nth-child(4) { transition-delay: 0.4s; }

/* Button hover animations */
.cta-button {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Shimmer effect */
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease-out;
  z-index: 1;
}

.cta-button:hover::before {
  left: 100%;
}

/* Ensure button content stays visible above shimmer */
.cta-button > * {
  position: relative;
  z-index: 2;
}

/* Arrow animation */
.cta-button i {
  transition: transform 0.3s ease;
}

.cta-button:hover i {
  transform: translateX(3px);
}

/* Icon animations */
.feature-card i,
.cta-card i,
.use-case-card i {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover i,
.cta-card:hover i,
.use-case-card:hover i {
  transform: scale(1.15) rotate(8deg);
}

/* Navigation animations */
.nav-main-links a {
  transition: all 0.3s ease-out;
}

/* Footer animations */
.footer-links a {
  transition: all 0.3s ease-out;
}

.footer-links a:hover {
  transform: translateX(4px);
  color: var(--primary);
}

.footer-social a {
  transition: all 0.3s ease-out;
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Loading animations */
.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

.preview-chart {
  animation: float 4s ease-in-out infinite;
}

.preview-stat {
  animation: bounce 0.8s ease-out;
}

.preview-stat:nth-child(1) { animation-delay: 0.2s; }
.preview-stat:nth-child(2) { animation-delay: 0.4s; }
.preview-stat:nth-child(3) { animation-delay: 0.6s; }

/* Additional animation combinations */
.solutions-section {
  animation: slideInRight 1s ease-out 0.4s both;
}

.value-proposition {
  animation: slideInRight 1s ease-out 0.4s both;
}

.use-cases {
  animation: slideInLeft 1s ease-out 0.4s both;
}

/* Pricing page specific animations */
.pricing {
  animation: fadeIn 1s ease-out 0.2s both;
}

.pricing-comparison {
  animation: slideInLeft 1s ease-out 0.3s both;
}

.faq {
  animation: slideInRight 1s ease-out 0.4s both;
}

/* SDK page specific animations */
.sdk-section {
  animation: fadeIn 1s ease-out 0.2s both;
}

.sdk-card {
  animation: scaleIn 0.8s ease-out 0.3s both;
}

.docs-section {
  animation: slideInRight 1s ease-out 0.4s both;
}

.docs-feature {
  animation: scaleIn 0.8s ease-out 0.5s both;
}

.docs-feature:nth-child(1) { animation-delay: 0.5s; }
.docs-feature:nth-child(2) { animation-delay: 0.6s; }
.docs-feature:nth-child(3) { animation-delay: 0.7s; }
.docs-feature:nth-child(4) { animation-delay: 0.8s; }

/* Dashboard page specific animations */
.dashboard-hero {
  animation: fadeIn 1s ease-out 0.2s both;
}

.features-preview {
  animation: slideInLeft 1s ease-out 0.3s both;
}

.perfect-for {
  animation: slideInRight 1s ease-out 0.4s both;
}

/* Particle animations */
#particles-js {
  animation: gradientShift 10s ease infinite;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-text h1,
  .hero-text h2 {
    animation: fadeIn 1s ease-out;
  }
  
  .feature-card,
  .cta-card,
  .use-case-card {
    transition-delay: 0s !important;
  }
}

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

/* Card hover animations */
.feature-card {
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--gradient-primary-dynamic);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card:hover::before {
  transform: scaleX(1);
} */

.feature-card:hover {
  border: 1px solid var(--primary);
} 

.feature-card.secondary:hover {
  border: 1px solid var(--secondary);
} 

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary);
}

.sdk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.docs-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card,
.cta-card,
.use-case-card {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.feature-card.animate-in,
.cta-card.animate-in,
.use-case-card.animate-in {
  opacity: 1;
}

/* Staggered animations for feature cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.cta-card:nth-child(1) { animation-delay: 0.1s; }
.cta-card:nth-child(2) { animation-delay: 0.2s; }

.use-case-card:nth-child(1) { animation-delay: 0.1s; }
.use-case-card:nth-child(2) { animation-delay: 0.2s; }
.use-case-card:nth-child(3) { animation-delay: 0.3s; }
.use-case-card:nth-child(4) { animation-delay: 0.4s; }

/* New Features Section Animations */
.feature-showcase-card {
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.feature-showcase-card:nth-child(2) {
  animation: slideInRight 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.feature-showcase-card.animate-in {
  opacity: 1;
}

.feature-showcase-card:hover {
  border: 1px solid var(--primary);
}

.feature-showcase-card.secondary:hover {
  border: 1px solid var(--secondary);
}

.feature-icon-large {
  animation: scaleIn 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

.feature-icon-large:hover {
  animation: pulse 1s ease-in-out infinite;
}

.spec-item {
  opacity: 0;
  animation: staggeredFadeIn 0.6s ease-out forwards;
}

.spec-item:nth-child(1) { animation-delay: 0.1s; }
.spec-item:nth-child(2) { animation-delay: 0.2s; }
.spec-item:nth-child(3) { animation-delay: 0.3s; }
.spec-item:nth-child(4) { animation-delay: 0.4s; }

.spec-item.animate-in {
  opacity: 1;
}

.feature-icon {
  animation: scaleIn 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

.feature-icon:hover {
  animation: glow 2s ease-in-out infinite;
}

.stat-number {
  animation: scaleIn 0.6s ease-out forwards;
  animation-delay: 0.4s;
}

.highlight {
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: 0.5s;
}
