/* ==========================================
   PROBLEM SECTION — Dark BG
   ========================================== */

.problem-section {
  padding: 100px 0 120px;
  background: #121212;
  position: relative;
  overflow: hidden;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(239, 68, 68, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.problem-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1201px;
  height: 100%;
  background-image: repeating-linear-gradient(90deg, 
    rgba(255, 255, 255, 0.05) 0px, 
    rgba(255, 255, 255, 0.05) 1px, 
    transparent 1px, 
    transparent 300px);
  pointer-events: none;
  z-index: 0;
}

.problem-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Header */
.problem-header {
  text-align: center;
  margin-bottom: 100px;
  perspective: 1000px;
}

.pinned-header {
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 60px;
  border-radius: 4px;
  position: relative;
  transform: rotate(-3deg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pinned-header:hover {
  transform: rotate(-1deg) translateY(-5px);
}

/* Realistic Red Board Pin */
.board-pin {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 48px;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

/* The Plastic Head (top part) */
.board-pin::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 18px;
  background: radial-gradient(circle at 35% 35%, #ff5f5f 0%, #d90000 70%, #990000 100%);
  border-radius: 50% 50% 10% 10%;
  box-shadow: inset -2px -2px 6px rgba(0,0,0,0.3), inset 2px 2px 6px rgba(255,255,255,0.4);
}

/* The Plastic Neck & Base */
.board-pin::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 12px;
  background: linear-gradient(to bottom, #d90000, #990000);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* The Metallic Needle */
.board-pin-needle {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 18px;
  background: linear-gradient(to right, #e2e8f0, #94a3b8, #e2e8f0);
  border-radius: 2px;
}

.board-pin-needle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 1.5px solid transparent;
  border-right: 1.5px solid transparent;
  border-top: 5px solid #94a3b8;
}

.problem-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-label::before,
.problem-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: #ef4444;
  opacity: 0.5;
}

.problem-label.vis {
  opacity: 1;
  transform: translateY(0);
}

.problem-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.problem-title.vis {
  opacity: 1;
  transform: translateY(0);
}

.problem-title .gold {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.problem-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.problem-subtitle.vis {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================
   SHOWCASE — Image + Floating Cards
   ========================================== */
.problem-showcase {
  position: relative;
  min-height: 520px;
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center Image */
.problem-img-wrap {
  position: relative;
  z-index: 1;
  width: 70%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: brightness(0.85) saturate(0.9);
}

/* Floating Cards */
.problem-card {
  position: absolute;
  z-index: 2;
  width: 300px;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header {
  background: #f1f1f1;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header .problem-icon {
  margin-bottom: 0;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.card-body {
  background: #1a1a1a;
  padding: 24px 20px;
}

.problem-card.vis {
  opacity: 1;
  transform: translateY(0);
}

.problem-card:nth-child(2).vis { transition-delay: 0s; }
.problem-card:nth-child(3).vis { transition-delay: 0.12s; }
.problem-card:nth-child(4).vis { transition-delay: 0.24s; }

/* Floating animation */
.problem-card.vis {
  animation: prob-float 4s ease-in-out infinite;
}

.problem-card:nth-child(2).vis { animation-delay: 0s; }
.problem-card:nth-child(3).vis { animation-delay: 1.3s; }
.problem-card:nth-child(4).vis { animation-delay: 2.6s; }

/* Card positions */
.problem-card--tl {
  top: 0;
  left: 0;
}

.problem-card--r {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.problem-card--r.vis {
  transform: translateY(-50%);
}

.problem-card--bl {
  bottom: 0;
  left: 40px;
}

@keyframes prob-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.problem-card--r.vis {
  animation-name: prob-float-r;
}

@keyframes prob-float-r {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 8px)); }
}

/* Hover */
.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.08);
}

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

/* Icon */
.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #ef4444;
  transition: all 0.4s ease;
}

.problem-card:hover .problem-icon {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  transform: scale(1.1);
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.problem-card:hover h3 {
  color: #fff;
}

.problem-card p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Stat callout */
.problem-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* CTA */
.problem-cta {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.problem-cta.vis {
  opacity: 1;
  transform: translateY(0);
}

.problem-cta p {
  font-size: clamp(1rem, 1.8vw, 2rem);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.problem-cta p strong {
  color: rgba(255, 255, 255, 0.85);
}

.problem-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.problem-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.45);
}


/* Responsive */
@media (max-width: 1024px) {
  .problem-card {
    width: 260px;
  }

  .problem-img-wrap {
    width: 450px;
    height: 450px;
  }
}

@media (max-width: 768px) {
  .problem-showcase {
    flex-direction: column;
    min-height: auto;
    gap: 24px;
  }

  .problem-img-wrap {
    width: 380px;
    height: 380px;
    margin-bottom: 20px;
  }

  .problem-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 400px;
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .problem-card--r.vis {
    transform: none;
  }
}
