/* ===== AI Implementation Showcase Styles ===== */

/* AI Showcase Section */
.ai-showcase {
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.05) 0%, rgba(123, 97, 255, 0.05) 100%);
  border: 2px solid rgba(0, 255, 163, 0.2);
  border-radius: 30px;
  padding: 4rem !important;
  position: relative;
  overflow: hidden;
}

.ai-showcase::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 163, 0.1) 0%, transparent 70%);
  animation: aiPulse 20s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

/* AI Header */
.ai-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.ai-icon {
  font-size: 3rem;
  display: inline-block;
  margin-right: 1rem;
  animation: aiFloat 3s ease-in-out infinite;
}

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

.ai-showcase .grid-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #00FFA3 0%, #7B61FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.ai-intro {
  max-width: 800px;
  margin: 2rem auto 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-300);
}

/* AI Cards Grid */
.ai-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Enhanced Project Cards */
.project-card {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover::before {
  opacity: 1;
}

/* Card Badges */
.card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: badgePulse 2s ease-in-out infinite;
}

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

/* Enhanced Card Content */
.project-card h4 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: white;
  transition: color 0.3s ease;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

/* Card Metrics */
.card-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric {
  background: rgba(0, 255, 163, 0.1);
  border: 1px solid rgba(0, 255, 163, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* Card Hover Effects */
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 
    0 20px 40px rgba(0, 255, 163, 0.3),
    0 0 60px rgba(0, 255, 163, 0.1),
    inset 0 0 60px rgba(0, 255, 163, 0.05);
}

.project-card:hover h4 {
  color: var(--primary);
}

.project-card:hover .card-arrow {
  transform: translateX(5px);
  color: var(--primary);
}

.project-card:hover .card-icon svg {
  transform: scale(1.1) rotate(5deg);
}

/* Individual Card Colors */
.ai-card-1:hover {
  border-color: #00FFA3;
  box-shadow: 0 20px 40px rgba(0, 255, 163, 0.4);
}

.ai-card-2:hover {
  border-color: #7B61FF;
  box-shadow: 0 20px 40px rgba(123, 97, 255, 0.4);
}

.ai-card-2 .metric {
  background: rgba(123, 97, 255, 0.1);
  border-color: rgba(123, 97, 255, 0.3);
  color: #7B61FF;
}

.ai-card-3:hover {
  border-color: #FF006E;
  box-shadow: 0 20px 40px rgba(255, 0, 110, 0.4);
}

.ai-card-3 .metric {
  background: rgba(255, 0, 110, 0.1);
  border-color: rgba(255, 0, 110, 0.3);
  color: #FF006E;
}

/* Enhanced Icons */
.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.card-icon svg {
  width: 30px;
  height: 30px;
  stroke: white;
  transition: transform 0.3s ease;
}

/* Card Arrow */
.card-arrow {
  font-weight: 600;
  color: var(--gray-400);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .ai-showcase {
    padding: 2rem !important;
  }
  
  .ai-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .ai-icon {
    font-size: 2rem;
  }
  
  .ai-showcase .grid-title {
    font-size: 2rem;
  }
  
  .project-card {
    padding: 2rem;
  }
}