/* =============================================
   MobiSkul AI Section — Marketing Showcase
   ============================================= */

.ai-section {
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 80% 70%, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.ai-section .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

.ai-section .orb-1 {
  width: 24rem;
  height: 24rem;
  top: -8rem;
  right: -6rem;
  background: rgba(99, 102, 241, 0.15);
  animation: ai-orb-drift 20s ease-in-out infinite;
}

.ai-section .orb-2 {
  width: 18rem;
  height: 18rem;
  bottom: -6rem;
  left: -6rem;
  background: rgba(139, 92, 246, 0.12);
  animation: ai-orb-drift 25s ease-in-out infinite reverse;
}

@keyframes ai-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

.ai-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .ai-card {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(99, 102, 241, 0.2);
}

.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
}

.ai-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.ai-card:hover .ai-card-icon {
  transform: scale(1.1);
}

.ai-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.dark .ai-card h3 {
  color: #f9fafb;
}

.ai-card p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dark .ai-card p {
  color: #9ca3af;
}

.ai-card .coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.dark .ai-card .coming-soon-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.ai-card .coming-soon-badge .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #6366f1;
  animation: ai-pulse-dot 2s ease-in-out infinite;
}

.dark .ai-card .coming-soon-badge .dot {
  background: #a5b4fc;
}

@keyframes ai-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.ai-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1.5rem;
}

.dark .ai-status-bar {
  background: rgba(99, 102, 241, 0.08);
  color: #9ca3af;
}

.ai-status-bar .bar-track {
  flex: 1;
  height: 0.375rem;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 9999px;
  overflow: hidden;
}

.ai-status-bar .bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 9999px;
  animation: ai-bar-shimmer 3s ease-in-out infinite;
}

/* =============================================
   Skeleton Loaders for Async Sections
   ============================================= */
.skeleton-card {
  background: #f9fafb;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid #e5e7eb;
}

.dark .skeleton-card {
  background: #1f2937;
  border-color: #374151;
}

.skeleton-card.animate-pulse {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.9; }
}

.skeleton-bar {
  height: 0.75rem;
  background: #e5e7eb;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.skeleton-bar:last-child {
  margin-bottom: 0;
  width: 60%;
}

.skeleton-bar.w-3/4 {
  width: 75%;
}

.dark .skeleton-bar {
  background: #374151;
}

.skeleton-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #e5e7eb;
  margin-bottom: 1rem;
}

.dark .skeleton-circle {
  background: #374151;
}

.skeleton-text {
  height: 1rem;
  background: #e5e7eb;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.w-5/6 {
  width: 83.333333%;
}

.dark .skeleton-text {
  background: #374151;
}

@keyframes ai-bar-shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-section .orb,
  .ai-card .coming-soon-badge .dot,
  .ai-status-bar .bar-fill {
    animation: none;
  }

  .ai-card:hover {
    transform: none;
  }

  .ai-card:hover .ai-card-icon {
    transform: none;
  }
}

@media (max-width: 640px) {
  .ai-card {
    padding: 1.25rem;
  }

  .ai-section .orb-1,
  .ai-section .orb-2 {
    display: none;
  }
}
