/* Import Hellix Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Problems Section Styles */
.problems-section {
  background-color: #FFFFFF;
  padding: 40px 20px;
  margin-top: 1px; /* <-- This controls the spacing above */
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.problems-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Header Styles */
.problems-header {
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.problems-title {
  font-size: 2.8rem;
  font-weight: 850;
  color: #231F20;
  margin-bottom: 16px;
  line-height: 1.2;
  font-family: 'Inter', sans-serif;
}

.problems-subtitle {
  font-size: 1.25rem;
  color: #666666;
  font-weight: 400;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}

/* Grid Layout */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Problem Cards */
.problem-card {
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.problem-card:nth-child(1) {
  animation-delay: 0.2s;
}

.problem-card:nth-child(2) {
  animation-delay: 0.4s;
}

.problem-card:nth-child(3) {
  animation-delay: 0.6s;
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Card Variants */
.card-red {
  background-color: #FF6666;
  color: #FFFFFF;
}

.card-red .problem-title,
.card-red .problem-description {
  color: #FFFFFF;
}

.card-gray {
  background-color: #F0F0F0;
  color: #231F20;
}

.card-gray .problem-title,
.card-gray .problem-description {
  color: #231F20;
}

.card-black {
  background-color: #231F20;
  color: #FFFFFF;
}

.card-black .problem-title,
.card-black .problem-description {
  color: #FFFFFF;
}

/* Problem Icons */
.problem-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.card-gray .problem-icon {
  background-color: rgba(35, 31, 32, 0.1);
}

.problem-card:hover .problem-icon {
  transform: scale(1.1);
}

.problem-icon svg {
  width: 48px;
  height: 48px;
}

/* Problem Content */
.problem-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  font-family: 'Inter',  sans-serif;
}

.problem-description {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 400;
  opacity: 1;
  font-family: 'Inter', sans-serif;
}

/* Ensure white text in colored cards */
.card-red .problem-description,
.card-black .problem-description {
  opacity: 1;
  color: #FFFFFF;
}

.card-gray .problem-description {
  opacity: 0.9;
  color: #231F20;
}

/* Footer Section */
.problems-footer {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.problems-message {
  font-size: 1.5rem;
  color: #231F20;
  font-weight: 600;
  margin-bottom: 32px;
  font-family: 'Inter', sans-serif;
}

.problems-cta {
  display: flex;
  justify-content: center;
}

/* CTA Button */
.problems-btn {
  background-color: #FF6666;
  color: #FFFFFF;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid #FF6666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

.problems-btn:hover {
  background-color: #FFFFFF;
  color: #FF6666;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 102, 102, 0.3);
  text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background Pattern */
.problems-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 102, 102, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(35, 31, 32, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .problems-section {
    padding: 60px 15px;
  }
  
  .problems-title {
    font-size: 2rem;
  }
  
  .problems-subtitle {
    font-size: 1.1rem;
  }
  
  .problems-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .problem-card {
    padding: 30px 20px;
  }
  
  .problem-title {
    font-size: 1.3rem;
  }
  
  .problem-description {
    font-size: 1rem;
  }
  
  .problems-message {
    font-size: 1.3rem;
  }
  
  .problems-btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .problems-title {
    font-size: 1.8rem;
  }
  
  .problems-header {
    margin-bottom: 40px;
  }
  
  .problems-grid {
    margin-bottom: 40px;
  }
  
  .problem-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .problem-icon svg {
    width: 36px;
    height: 36px;
  }
}