/* AI-Augmented QA Solutions Section Styles */
.ai-qa-solutions-section {
 
  position: relative;
  overflow: hidden;

  padding-top: 4rem;
  padding-bottom: 6rem;
}

.ai-qa-solutions-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(8, 145, 178, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Utility classes */
.fts-96 { font-size: 6rem; }
.fts-64 { font-size: 4rem; }
.fw-8 { font-weight: 800; }

/* Hero Title Styles */
.hero-title-section {
  position: relative;
  z-index: 10;
  padding: 2% 0 0 rem;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #0891b2);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.hero-main-title {
  font-size: clamp(3rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: #1f2937;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-sub-title {
  font-size: clamp(2.5rem, 7vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 2rem 0;
  background: linear-gradient(135deg, #7c3aed, #0891b2, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.text-purple {
  color: #7c3aed;
}

/* QA Cards Container */
.qa-cards-container {
  position: relative;
  z-index: 5;
}

.qa-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* QA Service Card Styles */
.qa-service-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.08),
    0 3px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.qa-service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Card Background Patterns */
.card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.card-pattern {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

/* Card Color Variants */
.card-purple .card-background {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.card-cyan .card-background {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}
.card-green .card-background {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.card-orange .card-background {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.card-prigbt .card-background {
  background: linear-gradient(135deg, #01aedf 0%, #01aedf 100%);
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  color: white;
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-description {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  opacity: 0.95;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Business Impact Section */
.business-impact {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 1rem;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.business-impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.impact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.impact-text {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .qa-cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero-title-section {
    padding: 2rem 0 4rem;
  }

  .qa-service-card {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .qa-cards-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .qa-service-card {
    height: auto;
    min-height: 380px;
  }

  .card-content {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .card-description {
    font-size: 0.875rem;
  }

  .hero-title-section {
    padding: 2rem 0 3rem;
  }

  .hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .qa-cards-wrapper {
    padding: 1rem;
    gap: 1.5rem;
  }

  .card-content {
    padding: 1.75rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-description {
    font-size: 1rem;
  }

  .hero-badge {
    padding: 0.625rem 1.5rem;
  }
}

/* Enhanced Animation Effects */
.qa-service-card .card-pattern {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa-service-card:hover .card-pattern {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Staggered Card Animations */
.qa-service-card {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease forwards;
}

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

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

/* Pulse effect for cards */
.qa-service-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.qa-service-card:hover::after {
  width: 300px;
  height: 300px;
}

/* Enhanced Accessibility */
.qa-service-card:focus {
  outline: 3px solid #3b82f6;
  outline-offset: 4px;
  transform: translateY(-4px);
}

.qa-service-card:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .qa-service-card,
  .card-pattern,
  .shimmer-effect,
  .hero-badge {
    animation: none;
    transition: none;
  }

  .qa-service-card:hover {
    transform: none;
  }
}

/* Shimmer Effect */
.qa-service-card .shimmer-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.8s ease;
  z-index: 3;
  pointer-events: none;
}

.qa-service-card:hover .shimmer-effect {
  left: 100%;
}

/* Enhanced glow effects */
.card-purple {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.card-cyan {
  box-shadow: 0 8px 32px rgba(8, 145, 178, 0.15);
}

.card-orange {
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.card-purple:hover {
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.3);
}

.card-cyan:hover {
  box-shadow: 0 25px 50px rgba(8, 145, 178, 0.3);
}

.card-orange:hover {
  box-shadow: 0 25px 50px rgba(245, 158, 11, 0.3);
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Loading state animations */
@keyframes gradientShift {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Print styles */
@media print {
  .ai-qa-solutions-section {
    background: white;
    color: black;
  }

  .qa-service-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .card-background {
    display: none;
  }

  .card-content {
    color: black;
  }
}
