/* ===== NEW Performance and Accessibility Section ===== */
.performance-section {
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
  padding: 100px 0;
  position: relative;
  color: #333;
}

.performance-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Section header styles */
.performance-section .section-header {
  text-align: center;
  margin-bottom: 60px;
  margin-top: 2rem;
}

.performance-section .section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #222;
}

.performance-section .section-subtitle {
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}
  line-height: 1.6;
}

/* Main content layout */
.performance-content {
  margin-top: 40px;
}

.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* Score cards styles */
.performance-scores {
  padding-right: 30px;
}

.performance-intro {
  margin-bottom: 30px;
}

.performance-intro h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

.performance-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

/* Score circles container */
.lighthouse-scores {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* Individual score item */
.score-item {
  flex: 0 0 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

/* Score circle - the main part that was problematic before */
.score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Different background colors for each score type */
.score-circle.performance-score {
  background: linear-gradient(135deg, #0cce6b, #06b15f);
}

.score-circle.accessibility-score {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.score-circle.best-practices-score {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.score-circle.seo-score {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Score text styles */
.score-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
  color: #333;
}

.score-subtitle {
  font-size: 0.9rem;
  color: #666;
}

.performance-details p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

/* Badges section */
.performance-badges {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 50px;
}

.badges-intro {
  margin-bottom: 30px;
}

.badges-intro h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

.badges-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

/* Badges container */
.badges-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Individual badge item */
.badge-item {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Badge icon */
.badge-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f9ff;
  border-radius: 50%;
  margin-right: 20px;
  flex-shrink: 0;
}

.badge-icon i {
  font-size: 24px;
  color: #0891b2;
}

/* Badge text content */
.badge-content {
  flex: 1;
}

.badge-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
}

.badge-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* Responsive design */
@media (max-width: 992px) {
  .performance-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .performance-badges {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 50px;
  }
}

@media (max-width: 768px) {
  .performance-section {
    padding: 70px 0;
  }

  .lighthouse-scores {
    justify-content: center;
    gap: 30px;
  }
  
  .score-item {
    flex: 0 0 45%;
  }
}

@media (max-width: 576px) {
  .performance-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
  }
  
  .score-item {
    flex: 0 0 48%;
  }
  
  .badge-item {
    flex-direction: column;
    text-align: center;
  }
  
  .badge-icon {
    margin: 0 auto 15px;
  }
}
