/* ===================================================
   PROBLEM SECTION - DESIGN MODERNO
   =================================================== */
.section-5 {
  padding: 120px 0;
  background: linear-gradient(180deg, #030712 0%, #0f172a 50%, #030712 100%);
  position: relative;
  overflow: hidden;
}

.section-5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* Intro da Seção */
.problema-intro {
  max-width: 800px;
  margin: 0 auto 80px !important;
  text-align: center;
  position: relative;
  z-index: 1;
}

.problema-intro p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: center;
}

.problema-intro p:last-of-type {
  margin-top: 0;
}

.problema-intro strong {
  color: #ffffff;
  font-weight: 600;
}

/* Grid de Cards */
.problema-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
}

/* Estilo Premium Card Moderno */
.problema-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.4) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: left;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Borda Gradiente no Hover */
.problema-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(245, 158, 11, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.problema-card:hover {
  transform: translateY(-12px);
  background: linear-gradient(135deg, rgba(17, 24, 39, 1) 0%, rgba(31, 41, 55, 0.6) 100%);
  border-color: transparent;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

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

/* Elementos do Card */
.card-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: #fbbf24 !important;
  margin-bottom: 24px;
  display: inline-block;
  letter-spacing: 3px;
  opacity: 0.9;
  text-transform: uppercase;
}

.problem-icon-box {
  font-size: 32px;
  width: 64px;
  min-width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  position: relative;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  margin-bottom: 24px;
}

/* Hover effect agora é tratado globalmente no global.css */


.problema-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.problema-card p {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.8;
}

.problema-card strong {
  color: #ffffff;
}

/* Fechamento da Seção */
.problem-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 0 !important;
    position: relative;
    z-index: 1;
}

.section-5 .section-title {
    margin-bottom: 0 !important;
}

.section-5 .problema-intro {
    margin-top: 0 !important;
}

.problema-fechamento {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0.02) 100%);
  border-radius: 24px;
  border: 1px solid rgba(6, 182, 212, 0.15);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.problema-fechamento p {
  font-size: 1.15rem;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .problema-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-5 {
    padding: 30px 0 !important;
  }
  
  .problema-intro {
    margin-bottom: 30px !important;
  }

  .problema-intro p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #d1d5db !important;
    padding: 0 !important;
    margin: 5px auto 0 !important;
    max-width: 280px !important;
    text-align: center !important;
  }

  .problem-header {
    margin-bottom: 20px !important;
  }

  .problema-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px !important;
  }
  
  .problema-card {
    padding: 20px !important;
    display: flex;
    flex-direction: column;
  }

  .problema-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
  }

  .problem-icon-box {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 20px !important;
    margin-bottom: 0 !important;
    border-radius: 12px !important;
  }

  .problema-card h4 {
    margin-bottom: 0 !important;
    font-size: 1.15rem !important;
    line-height: 1.2 !important;
    flex: 1;
  }

  .problema-card p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-top: 8px;
  }

  .problema-fechamento {
    padding: 24px 20px;
  }
}
