/* Axencia.co — How We Drive Revenue: Enhanced Content + Animated Icons */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.expertise-card {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #6366f1);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expertise-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 60px rgba(59, 130, 246, 0.08);
}

.expertise-card:hover::before {
  transform: scaleX(1);
  animation: gradientFlow 3s ease infinite;
}

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

/* Animated icon container */
.card-icon-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.expertise-card:hover .card-icon-wrap {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.2));
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.card-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.expertise-card:hover .card-icon-wrap::after {
  opacity: 1;
}

/* SVG icons — animated */
.card-icon-svg {
  width: 32px;
  height: 32px;
  color: #93c5fd;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.expertise-card:hover .card-icon-svg {
  color: #60a5fa;
  transform: scale(1.1);
}

.card-icon-svg.animate-chart { animation: iconChart 2.5s ease-in-out infinite; }
.card-icon-svg.animate-brain { animation: iconPulse 2s ease-in-out infinite; }
.card-icon-svg.animate-pen { animation: iconWrite 3s ease-in-out infinite; }
.card-icon-svg.animate-target { animation: iconTarget 2s ease-in-out infinite; }
.card-icon-svg.animate-rocket { animation: iconRocket 2.5s ease-in-out infinite; }
.card-icon-svg.animate-shield { animation: iconShield 2s ease-in-out infinite; }

@keyframes iconChart {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

@keyframes iconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

@keyframes iconWrite {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

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

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

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

.expertise-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #e8e8ed;
}

.expertise-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.expertise-card .card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-card .card-features li {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.expertise-card .card-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(59, 130, 246, 0.7);
  font-weight: 600;
}
