/*--------------------------------------------------------------
# Enhanced Hover Effects for Card Elements
# Consistent styling across Our All-In-One Platform, Leads Generated, and Step sections
--------------------------------------------------------------*/

/* Enhanced VS Card Hover Effects (Our All-In-One Platform) */
.cs_vs_card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, box-shadow, border-color;
  cursor: pointer;
  
  /* Accessibility - Focus states */
  &:focus-visible {
    outline: 3px solid rgba(147, 109, 255, 0.6);
    outline-offset: 2px;
  }
}

.cs_vs_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(147, 109, 255, 0.05) 0%, rgba(147, 109, 255, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.cs_vs_card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(147, 109, 255, 0.25),
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(147, 109, 255, 0.7);
}

.cs_vs_card:hover::before {
  opacity: 1;
}

.cs_vs_card:hover .cs_feature_icon {
  background: rgba(147, 109, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(147, 109, 255, 0.4);
}

/* Enhanced New Card Hover Effects (Leads Generated Section) */
.cs_new_card {
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, background, border-color, box-shadow;
  
  /* Accessibility - Focus states */
  &:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.6);
    outline-offset: 2px;
  }
}

.cs_new_card:hover {
  transform: translateY(-12px) scale(1.02);
  
  /* Enhanced Glassmorphism */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  
  border-color: rgba(99, 102, 241, 0.5);
  
  /* Enhanced Shadow with Purple Glow */
  box-shadow: 
    0 25px 50px rgba(99, 102, 241, 0.2),
    0 15px 35px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cs_new_card:hover .cs_card_icon {
  background: rgba(108, 92, 231, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(108, 92, 231, 0.6);
  /* transform: scale(1.15) rotate(5deg); */
  
  /* Enhanced Glow */
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 25px rgba(108, 92, 231, 0.3);
}

/* Enhanced Step Card Hover Effects (Step 1 Section) */
.cs_step_card {
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, background, border-color, box-shadow;
  
  /* Accessibility - Focus states */
  &:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.6);
    outline-offset: 2px;
  }
}

.cs_step_card:hover {
  transform: translateY(-12px) scale(1.02);
  
  /* Enhanced Glassmorphism */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  
  border-color: rgba(99, 102, 241, 0.5);
  
  /* Enhanced Shadow */
  box-shadow: 
    0 25px 50px rgba(99, 102, 241, 0.2),
    0 15px 35px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cs_step_card:hover .cs_step_icon {
  /* background: rgba(99, 102, 241, 0.2); */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* border-color: rgba(99, 102, 241, 0.6); */
  /* transform: scale(1.15) rotate(-5deg); */
  
  /* Enhanced Glow */
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Enhanced Icon Animations */
.cs_step_card:hover .cs_step_icon img,
.cs_new_card:hover .cs_card_icon svg,
.cs_new_card:hover .cs_card_icon img {
  /* filter: brightness(1.2) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.4)); */
  transform: scale(1.1);
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .cs_vs_card,
  .cs_new_card,
  .cs_step_card {
    transition: none;
  }
  
  .cs_vs_card:hover,
  .cs_new_card:hover,
  .cs_step_card:hover {
    transform: none;
  }
  
  .cs_new_card:hover .cs_card_icon,
  .cs_step_card:hover .cs_step_icon {
    transform: scale(1.05);
  }
}

/* Keyboard Navigation Support */
.cs_vs_card:focus,
.cs_new_card:focus,
.cs_step_card:focus {
  outline: 2px solid rgba(147, 109, 255, 0.8);
  outline-offset: 2px;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .cs_vs_card:active,
  .cs_new_card:active,
  .cs_step_card:active {
    transform: translateY(-8px) scale(1.01);
    transition: all 0.2s ease;
  }
}

/* Responsive Hover Adjustments */
@media (max-width: 768px) {
  .cs_vs_card:hover,
  .cs_new_card:hover,
  .cs_step_card:hover {
    transform: translateY(-8px) scale(1.01);
  }
  
  .cs_new_card:hover .cs_card_icon,
  .cs_step_card:hover .cs_step_icon {
    transform: scale(1.1);
  }
}

@media (max-width: 576px) {
  .cs_vs_card:hover,
  .cs_new_card:hover,
  .cs_step_card:hover {
    transform: translateY(-6px);
    box-shadow: 
      0 15px 30px rgba(99, 102, 241, 0.15),
      0 8px 20px rgba(0, 0, 0, 0.2);
  }
}

/* Loading State Animations */
.cs_vs_card,
.cs_new_card,
.cs_step_card {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Staggered Animation Delays */
.cs_new_card:nth-child(1) { animation-delay: 0.1s; }
.cs_new_card:nth-child(2) { animation-delay: 0.2s; }
.cs_new_card:nth-child(3) { animation-delay: 0.3s; }

.cs_step_card:nth-child(1) { animation-delay: 0.1s; }
.cs_step_card:nth-child(2) { animation-delay: 0.2s; }
.cs_step_card:nth-child(3) { animation-delay: 0.3s; }

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .cs_vs_card:hover,
  .cs_new_card:hover,
  .cs_step_card:hover {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px #ffffff;
  }
}

/* Print Styles */
@media print {
  .cs_vs_card,
  .cs_new_card,
  .cs_step_card {
    box-shadow: none;
    border: 1px solid #000;
  }
}