/* Comprehensive fixes for portfolio issues */

/* Skill bar animation fix */
.skill-bar {
  width: var(--skill-width, 0%) !important;
  animation: fillBar 1.5s ease-out forwards;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
}

/* Fix for skill layout - Two columns per row */
.skill-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .skill-group {
    grid-template-columns: 1fr;
  }
}

/* Certifications section styling and fixes */
.certifications-container {
  margin-top: 40px;
}

.certifications-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.certifications .project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border-color);
}

.certifications .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.certifications .project-details {
  padding: 25px;
}

.certifications .project-details h3 {
  color: var(--text-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 18px;
}

.certifications .project-details h3 i {
  margin-right: 10px;
  color: var(--primary-color);
}

.certifications .project-details p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.certifications .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.certifications .project-tech span {
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--text-color);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 30px;
}

.certification-link {
  margin-top: 15px;
}

.certification-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.certification-link a i {
  margin-right: 5px;
  font-size: 12px;
}

.certification-link a:hover {
  color: var(--primary-dark);
}

/* Dark mode fixes */
body.dark-mode .certifications {
  background-color: var(--bg-dark);
}

body.dark-mode .certifications .project-card {
  background-color: var(--card-dark);
  border: 1px solid var(--border-dark);
}

body.dark-mode .certifications .project-details h3 {
  color: var(--text-dark);
}

body.dark-mode .certifications .project-tech span {
  background-color: rgba(58, 134, 255, 0.15);
  color: var(--text-dark);
}

body.dark-mode .certification-link a {
  color: var(--primary-color);
}

body.dark-mode .certification-link a:hover {
  color: var(--secondary-color);
}
