.container {
  perspective: 1500px;
}

.card-wrapper {
  width: 512px;
  height: 300px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-wrapper.is-flipped {
  transform: rotateY(180deg);
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back {
  transform: rotateY(180deg);
}

.certificate-title {
  color: #fff;
  font-size: 36px;
  margin-bottom: 30px;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 2px;
  text-align: center;
}

.certificate-section {
  min-height: 150vh;
  background: radial-gradient(circle at top, #2b2f36, #0f1115);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #0f1115;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  z-index: 1000;
}

.back-link {
  color: #fff;
  text-decoration: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-link:hover {
  opacity: 0.8;
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  width: 100%;
  height: 100%;
}

.card-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.certificate-text {
  position: absolute;
  z-index: 2; /* texto acima da imagem */
  top: 52%;
  left: 20%;
  transform: translate(-13%, -50%) translateZ(60px);
  text-align: center;
  pointer-events: none;
}

.certificate-name {
  font-family: 'Alex Brush', cursive;
  font-size: 40px;
  font-weight: normal;
  line-height: 0.9;
  color: #242d3b;
  margin-bottom: 1px;
}

.certificate-description {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #222;
  line-height: 1.4;
  margin: 6px 0;
}

/*Performance do aluno*/

.student-performance {
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 24px 30px;
  text-align: center;

  /* 🎨 fundo azulado elegante */
  background: linear-gradient(
    135deg,
    #e8f0fb,
    #f2f6fd
  );

  border-radius: 14px;

  /* sombra suave */
  box-shadow: 0 10px 30px rgba(0, 60, 140, 0.12);
}

.student-performance h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;

  color: #1f3c88; /* azul institucional */
}

.student-performance p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #2c3e66;
  margin-bottom: 12px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 32px;
}

.top-bar-right {
  display: flex;
  gap: 12px;
}

.btn-back {
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

/* Voltar */
.btn-back,
.btn-download {
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}

/* Download */
.btn-download {
  background: #1f3c88;
  color: #fff;
}

.btn-download:hover {
  background: #162e66;
}

/* Glow suave no fundo */
.certificate-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(80,140,255,0.12), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(120,200,255,0.08), transparent 45%);
  z-index: 1;
  pointer-events: none;
}