/* Final fixes for portfolio issues */

/* ABOUT SECTION: Layout balance fixes */
.about-content {
  display: flex;
  flex-direction: column;
}

.about-content .row {
  justify-content: space-between;
}

.about .col {
  display: flex;
  flex-direction: column;
}

.about-text,
.resume-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ensure no awkward gaps */
.resume-section:not(:last-child) {
  margin-bottom: 30px;
}

/* Make sure mobile layout has proper spacing */
@media screen and (max-width: 767px) {
  .about-content .row {
    gap: 0;
  }

  .resume-col {
    padding-top: 20px;
  }

  .resume-content {
    margin-bottom: 20px;
  }
}

/* Adjustments for very large screens */
@media screen and (min-width: 1400px) {
  .about-content .row {
    max-width: 1200px;
    margin: 0 auto;
  }

  .resume-section {
    margin-bottom: 35px;
  }

  .quick-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* SKILLS SECTION: Clear fix for skill progress bars */
.skill-bar {
  width: 0 !important;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  height: 100%;
  background: rgba(58, 134, 255, 0.15) !important;
}

.skill-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--skill-width, 0%);
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 5px;
  animation: skillFill 1.5s ease-out forwards;
}

@keyframes skillFill {
  0% {
    width: 0;
  }
  100% {
    width: var(--skill-width, 0%);
  }
}

/* Ensure certification cards are visible */
.certifications-container {
  margin-top: 40px;
  display: block;
}

.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%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  margin-bottom: 0;
}

.certifications .project-details {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.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: auto;
  padding-top: 15px;
}

.certification-link a {
  color: var(--primary-color);
  text-decoration: none;
  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(--secondary-color);
}

/* Dark mode fixes */
body.dark-mode .certifications {
  background-color: var(--bg-dark);
  color: var(--text-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);
}
