/* ============================================
   CAPABILITY CARD ART - JAPANESE-INFLUENCED CSS ART
   6 unique compositions for 6 capabilities
   Target: .card-art-zone[data-card="1-6"]
   Dimensions: aspect-ratio 400/300
   ============================================ */

/* SHARED BASE STYLES */
.card-art-zone {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 300;
  overflow: hidden;
  background: var(--bg);
  border-radius: 0.5rem;
}

/* ============================================
   CARD 1: PREDICTIVE SIMULATION ENGINE
   Concept: Crystal ball, future vision, wave interference patterns
   ============================================ */
.card-art-zone[data-card="1"] {
  background:
    radial-gradient(circle at 50% 50%, rgba(77, 101, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(77, 101, 255, 0.1) 0%, transparent 70%),
    #0A0E27;
}

.card-art-zone[data-card="1"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(77, 101, 255, 0.4);
  box-shadow:
    0 0 0 10px rgba(77, 101, 255, 0.15),
    0 0 0 20px rgba(77, 101, 255, 0.1),
    0 0 0 30px rgba(77, 101, 255, 0.05),
    inset 0 0 40px rgba(77, 101, 255, 0.2);
  animation: pulseOrb 4s ease-in-out infinite;
}

.card-art-zone[data-card="1"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(77, 101, 255, 0.2) 50%, transparent 100%);
  border-radius: 50%;
  animation: innerGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
}

@keyframes innerGlow {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* ============================================
   CARD 2: 6-AGENT AUTONOMOUS REMEDIATION
   Concept: Hexagonal grid, 6 connected nodes, agent swarm pattern
   ============================================ */
.card-art-zone[data-card="2"] {
  background: #0A0E27;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-art-zone[data-card="2"]::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background:
    linear-gradient(135deg, rgba(77, 101, 255, 0.2) 0%, rgba(77, 101, 255, 0.05) 100%);
  border: 2px solid rgba(77, 101, 255, 0.3);
  box-shadow:
    0 0 30px rgba(77, 101, 255, 0.2),
    inset 0 0 40px rgba(77, 101, 255, 0.1);
}

.card-art-zone[data-card="2"]::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background:
    repeating-conic-gradient(
      from 30deg,
      rgba(77, 101, 255, 0.1) 0deg,
      rgba(77, 101, 255, 0.2) 60deg,
      rgba(77, 101, 255, 0.1) 120deg
    );
  animation: hexSpin 8s linear infinite;
}

@keyframes hexSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   CARD 3: NATIVE MOBILE APP
   Concept: Phone silhouette, app interface grid, mobile-first
   ============================================ */
.card-art-zone[data-card="3"] {
  background: #0A0E27;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-art-zone[data-card="3"]::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 200px;
  border-radius: 20px;
  border: 3px solid rgba(77, 101, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(77, 101, 255, 0.05) 0%, rgba(77, 101, 255, 0.15) 100%);
  box-shadow:
    0 0 40px rgba(77, 101, 255, 0.3),
    inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-art-zone[data-card="3"]::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 160px;
  border-radius: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(77, 101, 255, 0.1) 0px,
      rgba(77, 101, 255, 0.1) 30px,
      transparent 30px,
      transparent 32px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(77, 101, 255, 0.1) 0px,
      rgba(77, 101, 255, 0.1) 30px,
      transparent 30px,
      transparent 32px
    );
  box-shadow:
    0 -2px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CARD 4: REVENUE ATTRIBUTION
   Concept: Data flow, chart visualization, Bayesian network
   ============================================ */
.card-art-zone[data-card="4"] {
  background: #0A0E27;
  position: relative;
}

.card-art-zone[data-card="4"]::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    linear-gradient(to top,
      rgba(77, 101, 255, 0.3) 0%,
      rgba(77, 101, 255, 0.25) 20%,
      rgba(77, 101, 255, 0.15) 40%,
      rgba(77, 101, 255, 0.25) 60%,
      rgba(77, 101, 255, 0.35) 80%,
      rgba(77, 101, 255, 0.4) 100%
    );
  clip-path: polygon(
    0% 100%,
    10% 85%,
    20% 75%,
    30% 70%,
    40% 60%,
    50% 45%,
    60% 35%,
    70% 30%,
    80% 25%,
    90% 20%,
    100% 15%,
    100% 100%
  );
  animation: chartGrow 3s ease-out forwards;
}

.card-art-zone[data-card="4"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(77, 101, 255, 0.1) 0px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(77, 101, 255, 0.1) 0px,
      transparent 1px,
      transparent 40px
    );
}

@keyframes chartGrow {
  from {
    clip-path: polygon(
      0% 100%,
      10% 100%,
      20% 100%,
      30% 100%,
      40% 100%,
      50% 100%,
      60% 100%,
      70% 100%,
      80% 100%,
      90% 100%,
      100% 100%,
      100% 100%
    );
  }
  to {
    clip-path: polygon(
      0% 100%,
      10% 85%,
      20% 75%,
      30% 70%,
      40% 60%,
      50% 45%,
      60% 35%,
      70% 30%,
      80% 25%,
      90% 20%,
      100% 15%,
      100% 100%
    );
  }
}

/* ============================================
   CARD 5: AGENCY PORTAL
   Concept: Multi-panel dashboard, grid of client views, management layout
   ============================================ */
.card-art-zone[data-card="5"] {
  background: #0A0E27;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  padding: 30px;
}

.card-art-zone[data-card="5"]::before {
  content: '';
  grid-column: 1;
  grid-row: 1;
  background:
    linear-gradient(135deg, rgba(77, 101, 255, 0.3) 0%, rgba(77, 101, 255, 0.15) 100%);
  border: 1px solid rgba(77, 101, 255, 0.4);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(77, 101, 255, 0.2);
}

.card-art-zone[data-card="5"]::after {
  content: '';
  grid-column: 2 / 4;
  grid-row: 1 / 3;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(77, 101, 255, 0.1) 0px,
      rgba(77, 101, 255, 0.1) 20px,
      transparent 20px,
      transparent 22px
    ),
    linear-gradient(135deg, rgba(77, 101, 255, 0.2) 0%, rgba(77, 101, 255, 0.1) 100%);
  border: 1px solid rgba(77, 101, 255, 0.4);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(77, 101, 255, 0.2);
}

/* Additional panels using box-shadow technique */
.card-art-zone[data-card="5"] {
  box-shadow:
    inset 30px 150px 0 -30px rgba(77, 101, 255, 0.15),
    inset 30px 150px 0 -29px rgba(77, 101, 255, 0.3),
    inset 99px 150px 0 -30px rgba(77, 101, 255, 0.15),
    inset 99px 150px 0 -29px rgba(77, 101, 255, 0.3);
}

/* ============================================
   CARD 6: A/B TESTING
   Concept: Split screen, variant A vs B, comparison visual
   ============================================ */
.card-art-zone[data-card="6"] {
  background: #0A0E27;
  position: relative;
}

.card-art-zone[data-card="6"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(77, 101, 255, 0.25) 0%, rgba(77, 101, 255, 0.15) 100%);
  border-right: 2px solid rgba(77, 101, 255, 0.5);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.card-art-zone[data-card="6"]::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background:
    linear-gradient(225deg, rgba(77, 101, 255, 0.3) 0%, rgba(77, 101, 255, 0.2) 100%);
  border-left: 2px solid rgba(77, 101, 255, 0.5);
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

/* Decorative comparison elements */
.card-art-zone[data-card="6"] {
  box-shadow:
    /* Left side elements */
    inset 40px 60px 0 -30px rgba(77, 101, 255, 0.2),
    inset 40px 120px 0 -30px rgba(77, 101, 255, 0.15),
    inset 40px 180px 0 -30px rgba(77, 101, 255, 0.2),
    /* Right side elements */
    inset -40px 60px 0 -30px rgba(77, 101, 255, 0.25),
    inset -40px 120px 0 -30px rgba(77, 101, 255, 0.2),
    inset -40px 180px 0 -30px rgba(77, 101, 255, 0.25);
}

/* ============================================
   ACCESSIBILITY: RESPECT REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .card-art-zone[data-card="1"]::before,
  .card-art-zone[data-card="1"]::after,
  .card-art-zone[data-card="2"]::after,
  .card-art-zone[data-card="4"]::before {
    animation: none;
  }
}

/* ============================================
   HOVER ENHANCEMENTS (SUBTLE)
   Cards already have translateY(-2px) on hover
   ============================================ */
.capabilities__card:hover .card-art-zone[data-card="1"]::before {
  box-shadow:
    0 0 0 10px rgba(77, 101, 255, 0.2),
    0 0 0 20px rgba(77, 101, 255, 0.15),
    0 0 0 30px rgba(77, 101, 255, 0.1),
    inset 0 0 40px rgba(77, 101, 255, 0.3);
}

.capabilities__card:hover .card-art-zone[data-card="2"]::before {
  border-color: rgba(77, 101, 255, 0.5);
  box-shadow:
    0 0 40px rgba(77, 101, 255, 0.3),
    inset 0 0 40px rgba(77, 101, 255, 0.2);
}

.capabilities__card:hover .card-art-zone[data-card="3"]::before {
  border-color: rgba(77, 101, 255, 0.6);
  box-shadow:
    0 0 50px rgba(77, 101, 255, 0.4),
    inset 0 10px 20px rgba(0, 0, 0, 0.3);
}

.capabilities__card:hover .card-art-zone[data-card="4"]::before {
  opacity: 1;
}

.capabilities__card:hover .card-art-zone[data-card="5"]::before,
.capabilities__card:hover .card-art-zone[data-card="5"]::after {
  box-shadow: 0 4px 12px rgba(77, 101, 255, 0.3);
}

.capabilities__card:hover .card-art-zone[data-card="6"]::before {
  background: linear-gradient(135deg, rgba(77, 101, 255, 0.3) 0%, rgba(77, 101, 255, 0.2) 100%);
}

.capabilities__card:hover .card-art-zone[data-card="6"]::after {
  background: linear-gradient(225deg, rgba(77, 101, 255, 0.35) 0%, rgba(77, 101, 255, 0.25) 100%);
}
