/* CERTIFICATES SECTION */

.certificates-section {
  padding: 120px 0;
  text-align: center;
}

.certificates-title {
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: 60px;
  background: linear-gradient(to bottom, #ffffff, #888888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gallery grid */
.certificates-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Card */
.certificate-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.certificate-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  filter: grayscale(40%) brightness(0.9);
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

/* Hover lift + zoom */
.certificate-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 40px 90px rgba(0, 112, 243, 0.5);
}

.certificate-card:hover img {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(1);
}

/* Overlay */
.certificate-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.certificate-card:hover .certificate-overlay {
  opacity: 1;
  transform: translateY(0);
}

.certificate-overlay h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.certificate-overlay p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .certificates-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .certificates-gallery {
    grid-template-columns: 1fr;
  }

  .certificate-card img {
    height: 220px;
  }
}
