/* ====================================================================
   MODERN PROFESSIONAL REVEAL ANIMATIONS
   Clean, confident, and professional - no blur reveals
   ==================================================================== */

/* Modern Reveal Animation System */
:root {
  --reveal-duration: 0.6s;
  --reveal-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-distance: 16px;
  --reveal-scale: 0.98;
}

/* Professional Fade-In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-distance)) scale(var(--reveal-scale));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Elegant Slide-In from Bottom */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-distance)) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

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

/* Professional Element Reveal Classes */
.reveal-fade {
  animation: fadeIn var(--reveal-duration) var(--reveal-easing) forwards;
}

.reveal-slide-up {
  animation: slideInUp var(--reveal-duration) var(--reveal-easing) forwards;
}

.reveal-scale {
  animation: scaleIn var(--reveal-duration) var(--reveal-easing) forwards;
}

.reveal-slide-left {
  animation: slideInLeft var(--reveal-duration) var(--reveal-easing) forwards;
}

.reveal-slide-right {
  animation: slideInRight var(--reveal-duration) var(--reveal-easing) forwards;
}

/* Staggered Reveal System */
.reveal-stagger-1 { animation-delay: 0.05s; }
.reveal-stagger-2 { animation-delay: 0.1s; }
.reveal-stagger-3 { animation-delay: 0.15s; }
.reveal-stagger-4 { animation-delay: 0.2s; }
.reveal-stagger-5 { animation-delay: 0.25s; }
.reveal-stagger-6 { animation-delay: 0.3s; }

/* Section Animations */
.section-reveal {
  opacity: 1; /* Always visible - professional approach */
  transform: scale(1);
  transition: transform 0.4s var(--reveal-easing);
}

.section-reveal.animate-in {
  animation: scaleIn 0.8s var(--reveal-easing) forwards;
}

/* Card Professional Reveals */
.card-reveal {
  opacity: 1; /* Start visible for confidence */
  transform: scale(1);
  transition: all 0.4s var(--reveal-easing);
}

.card-reveal:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Hero Section Professional Animation */
.hero-content {
  animation: fadeIn 0.8s var(--reveal-easing) forwards;
}

.hero-title {
  animation: slideInUp 0.8s var(--reveal-easing) forwards;
  animation-delay: 0.1s;
}

.hero-subtitle {
  animation: slideInUp 0.8s var(--reveal-easing) forwards;
  animation-delay: 0.2s;
}

.hero-cta {
  animation: slideInUp 0.8s var(--reveal-easing) forwards;
  animation-delay: 0.3s;
}

/* Feature Cards Professional Grid Animation */
.feature-grid > * {
  opacity: 1; /* Always visible */
  animation: fadeIn 0.6s var(--reveal-easing) forwards;
}

.feature-grid > *:nth-child(1) { animation-delay: 0s; }
.feature-grid > *:nth-child(2) { animation-delay: 0.05s; }
.feature-grid > *:nth-child(3) { animation-delay: 0.1s; }
.feature-grid > *:nth-child(4) { animation-delay: 0.15s; }
.feature-grid > *:nth-child(5) { animation-delay: 0.2s; }
.feature-grid > *:nth-child(6) { animation-delay: 0.25s; }

/* Navigation Entrance */
.ace-nav {
  animation: fadeIn 0.4s var(--reveal-easing) forwards;
  opacity: 1; /* Always visible */
}

/* Buttons Professional Hover */
.btn {
  transition: all 0.3s var(--reveal-easing);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Professional Testimonial Reveals */
.testimonial-card {
  opacity: 1;
  animation: fadeIn 0.7s var(--reveal-easing) forwards;
}

/* Pricing Cards Professional Animation */
.pricing-card {
  opacity: 1;
  animation: scaleIn 0.6s var(--reveal-easing) forwards;
  transition: all 0.4s var(--reveal-easing);
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

/* CTA Sections Professional Reveal */
.cta-section {
  opacity: 1;
  animation: fadeIn 0.8s var(--reveal-easing) forwards;
}

/* Statistics/Metrics Confident Reveal */
.stat-card {
  opacity: 1;
  animation: scaleIn 0.5s var(--reveal-easing) forwards;
}

/* Demo Interface Professional Appearance */
.demo-interface {
  opacity: 1;
  animation: fadeIn 0.8s var(--reveal-easing) forwards;
  transition: transform 0.4s var(--reveal-easing);
}

.demo-interface:hover {
  transform: scale(1.01);
}

/* Logo Grid Professional Reveal */
.logo-grid > * {
  opacity: 1;
  animation: fadeIn 0.5s var(--reveal-easing) forwards;
}

/* Modal Professional Entrance */
.modal-content {
  animation: scaleIn 0.3s var(--reveal-easing) forwards;
}

/* Badge Subtle Animation */
.badge {
  transition: all 0.2s var(--reveal-easing);
}

.badge:hover {
  transform: scale(1.05);
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal-fade,
  .reveal-slide-up,
  .reveal-scale,
  .reveal-slide-left,
  .reveal-slide-right,
  .section-reveal,
  .card-reveal,
  .hero-content,
  .hero-title,
  .hero-subtitle,
  .hero-cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  :root {
    --reveal-duration: 0.4s;
    --reveal-distance: 12px;
    --reveal-scale: 0.99;
  }
  
  /* Reduce hover effects on mobile */
  .card-reveal:hover,
  .pricing-card:hover,
  .demo-interface:hover {
    transform: translateY(-2px) scale(1);
  }
  
  .btn:hover {
    transform: translateY(-1px);
  }
}

/* High Performance Mode for Low-End Devices */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .feature-grid > *,
  .testimonial-card,
  .stat-card,
  .logo-grid > * {
    animation-duration: 0.3s;
  }
}

/* Professional Element States */
.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

.is-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* Elegant Page Transition */
body {
  animation: fadeIn 0.5s var(--reveal-easing);
}

/* Professional Section Dividers */
section {
  opacity: 1;
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  opacity: 0.5;
}

section:last-child::after {
  display: none;
}

/* Dark Mode Adaptations */
@media (prefers-color-scheme: dark) {
  section::after {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
  }
  
  .card-reveal:hover,
  .pricing-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }
}

/* Professional Focus States */
*:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
  transition: outline 0.2s var(--reveal-easing);
}

/* Loading State Professional Animation */
.loading-state {
  animation: pulse 2s var(--reveal-easing) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

