/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS & TRANSITIONS
   GSAP-powered animations with CSS fallbacks
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   BASE FRAGMENT ANIMATIONS (Reveal.js)
   ───────────────────────────────────────────────────────────────────────────── */
.reveal .slides section .fragment {
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal .slides section .fragment.visible {
  opacity: 1;
  visibility: visible;
}

/* Fade Up */
.reveal .slides section .fragment.fade-up {
  transform: translateY(30px);
}

.reveal .slides section .fragment.fade-up.visible {
  transform: translateY(0);
}

/* Fade Right */
.reveal .slides section .fragment.fade-right {
  transform: translateX(-30px);
}

.reveal .slides section .fragment.fade-right.visible {
  transform: translateX(0);
}

/* Fade Left */
.reveal .slides section .fragment.fade-left {
  transform: translateX(30px);
}

.reveal .slides section .fragment.fade-left.visible {
  transform: translateX(0);
}

/* Scale Up */
.reveal .slides section .fragment.scale-up {
  transform: scale(0.9);
}

.reveal .slides section .fragment.scale-up.visible {
  transform: scale(1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SLIDE ENTRANCE ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Hero logo entrance */
.slide-title .hero-logo {
  opacity: 0;
  transform: scale(0.8);
  animation: none;
}

section.present.slide-title .hero-logo {
  animation: logoEntrance 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero headline entrance */
.slide-title .hero-headline {
  opacity: 0;
  transform: translateY(40px);
}

section.present.slide-title .hero-headline {
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

/* Hero badge entrance */
.slide-title .hero-badge {
  opacity: 0;
  transform: translateY(20px);
}

section.present.slide-title .hero-badge {
  animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CARD STAGGER ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Stats cards stagger */
.stats-grid .stat-card:nth-child(1) { transition-delay: 0.1s; }
.stats-grid .stat-card:nth-child(2) { transition-delay: 0.2s; }
.stats-grid .stat-card:nth-child(3) { transition-delay: 0.3s; }
.stats-grid .stat-card:nth-child(4) { transition-delay: 0.4s; }

/* AI cards stagger */
.ai-cards-grid .ai-card:nth-child(1) .fragment { transition-delay: 0.1s; }
.ai-cards-grid .ai-card:nth-child(2) .fragment { transition-delay: 0.2s; }
.ai-cards-grid .ai-card:nth-child(3) .fragment { transition-delay: 0.3s; }
.ai-cards-grid .ai-card:nth-child(4) .fragment { transition-delay: 0.4s; }

/* Industries grid stagger */
.industries-grid .industry-card:nth-child(1) .fragment { transition-delay: 0.05s; }
.industries-grid .industry-card:nth-child(2) .fragment { transition-delay: 0.1s; }
.industries-grid .industry-card:nth-child(3) .fragment { transition-delay: 0.15s; }
.industries-grid .industry-card:nth-child(4) .fragment { transition-delay: 0.2s; }
.industries-grid .industry-card:nth-child(5) .fragment { transition-delay: 0.25s; }
.industries-grid .industry-card:nth-child(6) .fragment { transition-delay: 0.3s; }

/* Clients grid stagger */
.clients-grid .client-logo:nth-child(1) { transition-delay: 0.02s; }
.clients-grid .client-logo:nth-child(2) { transition-delay: 0.04s; }
.clients-grid .client-logo:nth-child(3) { transition-delay: 0.06s; }
.clients-grid .client-logo:nth-child(4) { transition-delay: 0.08s; }
.clients-grid .client-logo:nth-child(5) { transition-delay: 0.1s; }
.clients-grid .client-logo:nth-child(6) { transition-delay: 0.12s; }
.clients-grid .client-logo:nth-child(7) { transition-delay: 0.14s; }
.clients-grid .client-logo:nth-child(8) { transition-delay: 0.16s; }
.clients-grid .client-logo:nth-child(9) { transition-delay: 0.18s; }
.clients-grid .client-logo:nth-child(10) { transition-delay: 0.2s; }
.clients-grid .client-logo:nth-child(11) { transition-delay: 0.22s; }
.clients-grid .client-logo:nth-child(12) { transition-delay: 0.24s; }

/* ─────────────────────────────────────────────────────────────────────────────
   HOVER EFFECTS
   ───────────────────────────────────────────────────────────────────────────── */

/* Card lift effect */
.stat-card,
.pillar-card,
.software-card,
.industry-card,
.client-logo,
.capability-badge {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover,
.pillar-card:hover,
.software-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.industry-card:hover {
  transform: translateY(-4px);
}

.client-logo:hover {
  transform: scale(1.05);
}

/* AI card glow pulse */
.ai-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: var(--ai-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.ai-card:hover::before {
  opacity: 0.3;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

/* Icon hover animations */
.pillar-icon,
.service-icon-large,
.software-card-icon,
.industry-icon,
.ai-card-icon,
.cta-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover .pillar-icon,
.software-card:hover .software-card-icon {
  transform: scale(1.1);
}

.ai-card:hover .ai-card-icon,
.cta-card:hover .cta-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SPECIAL EFFECTS
   ───────────────────────────────────────────────────────────────────────────── */

/* Shimmer effect for featured cards */
.stat-card.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
  border-radius: var(--radius-xl);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Gradient text animation */
.hero-line.accent {
  background-size: 200% auto;
  animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Number counter glow */
.stat-number {
  transition: text-shadow 0.3s ease;
}

.stat-card:hover .stat-number {
  text-shadow: 0 0 30px rgba(215, 25, 32, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BACKGROUND ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Gradient background animation for dark slides */
.ai-gradient-bg,
.cta-gradient-bg,
.contact-gradient-bg {
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Grid overlay subtle animation */
.ai-grid-overlay {
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TIMELINE ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Approach step entrance */
.approach-step {
  opacity: 0;
  transform: translateY(20px);
}

section.present .approach-step {
  animation: stepEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

section.present .approach-step:nth-child(2) { animation-delay: 0.1s; }
section.present .approach-step:nth-child(3) { animation-delay: 0.3s; }
section.present .approach-step:nth-child(4) { animation-delay: 0.5s; }
section.present .approach-step:nth-child(5) { animation-delay: 0.7s; }

@keyframes stepEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step number pulse on visible */
section.present .step-number {
  animation: stepPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: inherit;
}

@keyframes stepPulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SLIDE TRANSITIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Smooth theme transitions between light and dark slides */
.reveal .slides > section {
  transition: background-color 0.5s ease;
}

/* Custom slide transitions */
.reveal .slides section.past {
  opacity: 0;
  transform: translateX(-100px);
}

.reveal .slides section.future {
  opacity: 0;
  transform: translateX(100px);
}

.reveal .slides section.present {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOCUS & ACCESSIBILITY
   ───────────────────────────────────────────────────────────────────────────── */

/* Focus ring for keyboard navigation */
.reveal a:focus,
.reveal button:focus,
.reveal [tabindex]:focus {
  outline: 2px solid var(--es-red);
  outline-offset: 2px;
}

/* 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;
  }

  .particles-container {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITY ANIMATION CLASSES
   ───────────────────────────────────────────────────────────────────────────── */

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Delay utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED INTERACTIVE MICRO-ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Button hover with scale and glow */
.reveal a,
.reveal button {
  transition: all var(--transition-base);
}

/* Industry card icon rotation on hover */
.industry-card:hover .industry-icon {
  transform: rotateY(180deg);
  transition: transform 0.6s ease;
}

.industry-icon {
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* Service item hover slide */
.service-item {
  transition: transform var(--transition-base), background var(--transition-base);
}

.service-item:hover {
  transform: translateX(8px);
  background: rgba(215, 25, 32, 0.03);
}

/* Case block hover scale */
.case-block {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.case-block:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Contact item hover */
.contact-item a {
  position: relative;
}

.contact-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--es-red);
  transition: width var(--transition-base);
}

.contact-item a:hover::after {
  width: 100%;
}

/* Pulse animation for featured elements */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 25, 32, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(215, 25, 32, 0); }
}

.stat-card.featured {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* Icon bounce on hover */
.pillar-icon:hover,
.capability-icon:hover,
.service-icon-large:hover {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-5px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-3px); }
}

/* Accent bar animation */
.accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--es-red), var(--ai-purple), var(--es-red));
  background-size: 200% 100%;
  animation: accentFlow 3s linear infinite;
}

@keyframes accentFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Card shine effect on hover */
.pillar-card,
.software-card,
.capability-card {
  position: relative;
  overflow: hidden;
}

.pillar-card::before,
.software-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.pillar-card:hover::before,
.software-card:hover::before {
  left: 100%;
}

/* Progress indicator pulse */
.reveal .progress {
  animation: progressPulse 2s ease-in-out infinite;
}

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

/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED SLIDE ENTRANCE ANIMATIONS (Web Magic)
   ───────────────────────────────────────────────────────────────────────────── */

/* Generic card reveal on slide present */
.stat-card,
.pillar-card,
.ai-card,
.capability-card,
.product-card,
.industry-card,
.cta-card {
  opacity: 0;
  transform: translateY(24px);
}

section.present .stat-card,
section.present .pillar-card,
section.present .ai-card,
section.present .capability-card,
section.present .product-card,
section.present .industry-card,
section.present .cta-card {
  animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered reveal for cards */
section.present .stat-card:nth-child(1) { animation-delay: 0.1s; }
section.present .stat-card:nth-child(2) { animation-delay: 0.2s; }
section.present .stat-card:nth-child(3) { animation-delay: 0.3s; }
section.present .stat-card:nth-child(4) { animation-delay: 0.4s; }

section.present .pillar-card:nth-child(1) { animation-delay: 0.15s; }
section.present .pillar-card:nth-child(2) { animation-delay: 0.3s; }
section.present .pillar-card:nth-child(3) { animation-delay: 0.45s; }

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

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

section.present .product-card:nth-child(1) { animation-delay: 0.2s; }
section.present .product-card:nth-child(2) { animation-delay: 0.4s; }

section.present .industry-card:nth-child(1) { animation-delay: 0.05s; }
section.present .industry-card:nth-child(2) { animation-delay: 0.1s; }
section.present .industry-card:nth-child(3) { animation-delay: 0.15s; }
section.present .industry-card:nth-child(4) { animation-delay: 0.2s; }
section.present .industry-card:nth-child(5) { animation-delay: 0.25s; }
section.present .industry-card:nth-child(6) { animation-delay: 0.3s; }

section.present .cta-card:nth-child(1) { animation-delay: 0.2s; }
section.present .cta-card:nth-child(2) { animation-delay: 0.35s; }
section.present .cta-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Client logo grid staggered reveal */
.client-logo-card {
  opacity: 0;
  transform: translateY(16px) scale(0.95);
}

section.present .client-logo-card {
  animation: logoReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

section.present .client-logo-card:nth-child(1) { animation-delay: 0.05s; }
section.present .client-logo-card:nth-child(2) { animation-delay: 0.08s; }
section.present .client-logo-card:nth-child(3) { animation-delay: 0.11s; }
section.present .client-logo-card:nth-child(4) { animation-delay: 0.14s; }
section.present .client-logo-card:nth-child(5) { animation-delay: 0.17s; }
section.present .client-logo-card:nth-child(6) { animation-delay: 0.2s; }
section.present .client-logo-card:nth-child(7) { animation-delay: 0.23s; }
section.present .client-logo-card:nth-child(8) { animation-delay: 0.26s; }
section.present .client-logo-card:nth-child(9) { animation-delay: 0.29s; }
section.present .client-logo-card:nth-child(10) { animation-delay: 0.32s; }
section.present .client-logo-card:nth-child(11) { animation-delay: 0.35s; }
section.present .client-logo-card:nth-child(12) { animation-delay: 0.38s; }
section.present .client-logo-card:nth-child(13) { animation-delay: 0.41s; }
section.present .client-logo-card:nth-child(14) { animation-delay: 0.44s; }
section.present .client-logo-card:nth-child(15) { animation-delay: 0.47s; }
section.present .client-logo-card:nth-child(16) { animation-delay: 0.5s; }
section.present .client-logo-card:nth-child(17) { animation-delay: 0.53s; }
section.present .client-logo-card:nth-child(18) { animation-delay: 0.56s; }
section.present .client-logo-card:nth-child(19) { animation-delay: 0.59s; }
section.present .client-logo-card:nth-child(20) { animation-delay: 0.62s; }
section.present .client-logo-card:nth-child(21) { animation-delay: 0.65s; }

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PRODUCTS SLIDE ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Phone mockup entrance with float effect */
.phone-mockup {
  opacity: 0;
  transform: translateY(40px) rotateX(10deg);
}

section.present .phone-mockup {
  animation: phoneEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes phoneEntrance {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Subtle float animation for phone */
section.present .phone-mockup {
  animation: phoneEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards,
             phoneFloat 4s ease-in-out 1.5s infinite;
}

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

/* Product icon pulse */
.product-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover .product-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED HOVER EFFECTS (Premium Feel)
   ───────────────────────────────────────────────────────────────────────────── */

/* Capability card border animation */
.capability-card {
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--es-red), var(--es-red-dark));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card:hover::before {
  width: 100%;
}

/* Google capability badges wave effect */
.capability-badge {
  position: relative;
  overflow: hidden;
}

.capability-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(215, 25, 32, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.capability-badge:hover::before {
  left: 100%;
}

/* CTA card glow effect */
.cta-card {
  position: relative;
}

.cta-card-glow {
  position: absolute;
  inset: -2px;
  background: var(--ai-gradient);
  border-radius: var(--radius-xl);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.4s ease;
  z-index: -1;
}

.cta-card:hover .cta-card-glow {
  opacity: 0.4;
}

/* AI card glassmorphism effect */
.ai-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ai-card-glow {
  position: absolute;
  inset: -1px;
  background: var(--ai-gradient);
  border-radius: var(--radius-xl);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.ai-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-8px);
}

.ai-card:hover .ai-card-glow {
  opacity: 0.2;
}

.ai-card-content {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
}

.ai-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.ai-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--ai-purple-light);
}

.ai-card h3 {
  font-size: var(--text-lg);
  color: var(--text-on-dark);
  margin-bottom: var(--space-2);
}

.ai-card p {
  font-size: var(--text-sm);
  color: var(--text-muted-dark);
  line-height: 1.5;
}

/* CTA card styling */
.cta-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.cta-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-8px);
}

.cta-card-content {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
  text-align: center;
}

.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--es-red) 0%, var(--es-red-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.cta-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.cta-card h3 {
  font-size: var(--text-lg);
  color: var(--text-on-dark);
  margin-bottom: var(--space-2);
}

.cta-card p {
  font-size: var(--text-sm);
  color: var(--text-muted-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION TITLE ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

.section-title {
  opacity: 0;
  transform: translateY(20px);
}

section.present .section-title {
  animation: titleReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accent bar slide-in */
.accent-bar {
  transform: scaleX(0);
  transform-origin: left;
}

section.present .accent-bar {
  animation: accentSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes accentSlide {
  to {
    transform: scaleX(1);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PRELOADER ANIMATION
   ───────────────────────────────────────────────────────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  background: var(--es-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.preloader-logo {
  width: 80px;
  height: auto;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

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

.preloader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--es-red), var(--ai-purple));
  border-radius: var(--radius-full);
  animation: preloaderProgress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes preloaderProgress {
  to { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   DARK SLIDE BACKGROUND EFFECTS
   ───────────────────────────────────────────────────────────────────────────── */

.ai-gradient-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 30% 20%, rgba(99, 102, 241, 0.25), transparent 50%),
    radial-gradient(ellipse 80% 60% at 70% 80%, rgba(139, 92, 246, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(168, 85, 247, 0.15), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(59, 130, 246, 0.12), transparent 50%);
  background-size: 200% 200%;
  z-index: 0;
  animation: aiGradientPulse 8s ease-in-out infinite;
}

@keyframes aiGradientPulse {
  0%, 100% {
    background-position: 0% 0%;
    opacity: 1;
  }
  50% {
    background-position: 50% 50%;
    opacity: 0.85;
  }
}

/* Neural network nodes */
.ai-gradient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 4px at 15% 25%, rgba(99, 102, 241, 0.6) 0%, transparent 100%),
    radial-gradient(circle 3px at 35% 45%, rgba(139, 92, 246, 0.5) 0%, transparent 100%),
    radial-gradient(circle 5px at 55% 20%, rgba(168, 85, 247, 0.55) 0%, transparent 100%),
    radial-gradient(circle 4px at 75% 55%, rgba(99, 102, 241, 0.5) 0%, transparent 100%),
    radial-gradient(circle 3px at 85% 30%, rgba(139, 92, 246, 0.45) 0%, transparent 100%),
    radial-gradient(circle 4px at 25% 75%, rgba(168, 85, 247, 0.5) 0%, transparent 100%),
    radial-gradient(circle 5px at 65% 80%, rgba(59, 130, 246, 0.55) 0%, transparent 100%),
    radial-gradient(circle 3px at 45% 65%, rgba(99, 102, 241, 0.45) 0%, transparent 100%);
  animation: nodesFloat 12s ease-in-out infinite;
}

@keyframes nodesFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -10px); }
  50% { transform: translate(-5px, 5px); }
  75% { transform: translate(10px, 10px); }
}

.cta-gradient-bg,
.contact-gradient-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 30%, rgba(215, 25, 32, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(99, 102, 241, 0.08), transparent);
  background-size: 200% 200%;
  z-index: 0;
}

.ai-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SLIDE LOGO POSITIONING
   ───────────────────────────────────────────────────────────────────────────── */

.slide-logo,
.slide-logo-dark {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  right: auto;
  width: 48px;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.slide-logo:hover,
.slide-logo-dark:hover {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CAPABILITY SHOWCASE CARD ANIMATIONS (V2 Products)
   ───────────────────────────────────────────────────────────────────────────── */

/* Card entrance animation */
.capability-showcase-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

section.present .capability-showcase-card {
  animation: capabilityCardReveal 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

section.present .capability-showcase-card:nth-child(1) { animation-delay: 0.1s; }
section.present .capability-showcase-card:nth-child(2) { animation-delay: 0.2s; }
section.present .capability-showcase-card:nth-child(3) { animation-delay: 0.3s; }
section.present .capability-showcase-card:nth-child(4) { animation-delay: 0.4s; }
section.present .capability-showcase-card:nth-child(5) { animation-delay: 0.5s; }
section.present .capability-showcase-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes capabilityCardReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Icon pop animation on hover */
.capability-icon-mini {
  transition: transform 0.3s ease, background 0.3s ease;
}

.capability-showcase-card:hover .capability-icon-mini {
  transform: scale(1.15);
}

/* Overlay slide-up on hover */
.capability-overlay {
  transform: translateY(8px);
  transition: transform 0.4s ease;
}

.capability-showcase-card:hover .capability-overlay {
  transform: translateY(0);
}

/* Capability Visual Card animations (V2) */
.capability-visual-card {
  opacity: 0;
  transform: translateY(24px);
}

section.present .capability-visual-card {
  animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

section.present .capability-visual-card:nth-child(1) { animation-delay: 0.15s; }
section.present .capability-visual-card:nth-child(2) { animation-delay: 0.25s; }
section.present .capability-visual-card:nth-child(3) { animation-delay: 0.35s; }
section.present .capability-visual-card:nth-child(4) { animation-delay: 0.45s; }

/* Industry Visual Card animations (V2) */
.industry-visual-card {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

section.present .industry-visual-card {
  animation: cardReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

section.present .industry-visual-card:nth-child(1) { animation-delay: 0.1s; }
section.present .industry-visual-card:nth-child(2) { animation-delay: 0.15s; }
section.present .industry-visual-card:nth-child(3) { animation-delay: 0.2s; }
section.present .industry-visual-card:nth-child(4) { animation-delay: 0.25s; }
section.present .industry-visual-card:nth-child(5) { animation-delay: 0.3s; }
section.present .industry-visual-card:nth-child(6) { animation-delay: 0.35s; }
