.certificates-section {
  padding: 100px 0;
  background: radial-gradient(circle at top, #0a0a0f, #000);
}

.section-title {
  font-size: 2.5rem;
  color: #fff;
  text-align: center;
}

.section-title span {
  color:rgb(0, 255, 60);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 50px;
  background: rgba(108, 99, 255, 0.1);
  color:rgb(0, 255, 60);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgb(0, 255, 60);
  color: #000;
  border-color:rgb(254, 255, 255);
  box-shadow: 0 0 12pxrgba(0, 255, 89, 0.53);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Reduzi de 260px para 220px */
  gap: 1.5rem; /* Reduzi o gap de 2rem para 1.5rem */
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .certificates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.certificate-card {
  position: relative;
  border-radius: 15px; /* Reduzi de 20px para 15px */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Reduzi o blur de 40px para 30px */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 200px; /* Adicionei uma altura fixa para os cards */
}

.certificate-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 40px rgb(0, 255, 60);
}

.certificate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.certificate-card:hover img {
  transform: scale(1.05);
}

.certificate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.67); /* Overlay escuro */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.certificate-card:hover::before {
  opacity: 1;
}

.certificate-hover {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: none; /* Remove o gradiente existente */
  color: #fff;
  transition: bottom 0.4s ease;
  z-index: 2; /* Fica acima do overlay */
  text-align: center;
}

.certificate-card:hover .certificate-hover {
  bottom: 0;
}

.certificate-hover h3 {
  font-size: 1.1rem; /* Reduzi de 1.2rem para 1.1rem */
  margin-bottom: 0.8rem; /* Reduzi de 1rem para 0.8rem */
  color:rgb(0, 255, 8);
}

.view-certificate {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background:rgb(0, 255, 8);
  color: #000;
  font-weight: 500;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.view-certificate:hover {
  background: #6c63ff;
  color: #fff;
}

/* Responsivo */
@media (max-width: 768px) {
  .filter-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}
