/* ====== Certificates Section ====== */
.certificates-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a1828 0%, #101820 50%, #16222a 100%);
  position: relative;
  overflow: hidden;
}

/* Background Effects for Certificates */
.certificates-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(127, 255, 166, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(46, 204, 64, 0.06) 0%,
      transparent 50%
    ),
    linear-gradient(
      45deg,
      transparent 40%,
      rgba(127, 255, 166, 0.02) 50%,
      transparent 60%
    );
  animation: certificatesAura 15s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes certificatesAura {
  0% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.8;
  }
}

.certificates-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.certificates-container h2 {
  color: #7fffa6;
  margin-bottom: 3rem;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(127, 255, 166, 0.5);
  animation: titleGlow 3s ease-in-out infinite alternate;
  position: relative;
}

.certificates-container h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #7fffa6, transparent);
  border-radius: 2px;
  animation: underlineGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 20px rgba(127, 255, 166, 0.5);
  }
  100% {
    text-shadow: 0 0 30px rgba(127, 255, 166, 0.8);
  }
}

@keyframes underlineGlow {
  0% {
    box-shadow: 0 0 5px rgba(127, 255, 166, 0.5);
  }
  100% {
    box-shadow: 0 0 20px rgba(127, 255, 166, 0.8);
  }
}

/* Enhanced Header */
.certificates-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.certificates-header .header-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.certificates-header .header-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #7fffa6, #2ecc40);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(127, 255, 166, 0.3);
}

.certificates-header .header-line {
  height: 2px;
  width: 6rem;
  background: linear-gradient(90deg, transparent, #7fffa6, transparent);
}

.certificates-header .section-title {
  font-size: 3rem;
  background: linear-gradient(135deg, #7fffa6, #2ecc40);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-weight: 700;
}

.certificates-header .section-subtitle {
  font-size: 1.2rem;
  color: rgba(224, 242, 233, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Learning Path */
.learning-path {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.learning-path .path-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.learning-path .path-icon {
  font-size: 1.8rem;
}

.learning-path h3 {
  font-size: 1.5rem;
  color: #7fffa6;
  margin: 0;
}

.learning-path .path-line {
  width: 80%;
  max-width: 600px;
  height: 4px;
  background: rgba(127, 255, 166, 0.2);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.learning-path .path-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #7fffa6, #2ecc40);
  border-radius: 2px;
  animation: pathProgress 3s ease-out;
}

@keyframes pathProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Modern Certificates Grid Layout */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Modern Certificate Card Design */
.certificate-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(127, 255, 166, 0.05) 50%,
    rgba(46, 204, 64, 0.02) 100%
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(127, 255, 166, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */
.certificate-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 255, 166, 0.4);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 0 30px rgba(127, 255, 166, 0.1);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(127, 255, 166, 0.08) 50%,
    rgba(46, 204, 64, 0.05) 100%
  );
}

/* Gradient Border Effect */
.certificate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7fffa6, #2ecc40, #7fffa6);
  border-radius: 20px 20px 0 0;
  opacity: 0.8;
}

/* Card Icon */
.card-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(127, 255, 166, 0.3));
  transition: transform 0.3s ease;
}

.certificate-card:hover .card-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 15px rgba(127, 255, 166, 0.5));
}

/* Card Title */
.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.certificate-card:hover .card-title {
  color: #7fffa6;
  text-shadow: 0 0 10px rgba(127, 255, 166, 0.3);
}

/* Card Description */
.card-description {
  font-size: 0.95rem;
  color: rgba(224, 242, 233, 0.8);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.certificate-card:hover .card-description {
  color: rgba(224, 242, 233, 0.95);
}

/* Skills Tags Container */
.card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Individual Skill Tags */
.skill-tag {
  background: rgba(127, 255, 166, 0.1);
  color: #7fffa6;
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(127, 255, 166, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.certificate-card:hover .skill-tag {
  background: rgba(127, 255, 166, 0.15);
  border-color: rgba(127, 255, 166, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

/* View Achievement Button */
.view-achievement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(127, 255, 166, 0.1);
  border: 1px solid rgba(127, 255, 166, 0.3);
  border-radius: 25px;
  color: #7fffa6;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
}

.view-achievement:hover {
  background: rgba(127, 255, 166, 0.2);
  border-color: rgba(127, 255, 166, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(127, 255, 166, 0.2);
}

.view-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.view-achievement:hover .view-icon {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .certificates-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .certificates-section {
    padding: 60px 0;
  }

  .section-container {
    padding: 0 1rem;
  }

  .section-header .section-title {
    font-size: 2.5rem;
  }

  .section-header .section-subtitle {
    font-size: 1.1rem;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .certificate-card {
    padding: 1.25rem;
    min-height: 240px;
  }

  .card-icon {
    font-size: 2.2rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .skill-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .view-achievement {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .section-header .section-title {
    font-size: 2rem;
  }

  .certificate-card {
    padding: 1rem;
    min-height: 220px;
  }

  .card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .card-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .card-skills {
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .skill-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .view-achievement {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}
