/* ===== GALERIA DE CERTIFICADOS ===== */
body {
      background-color: #0a0a0a;
      color: #fff;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .certificates-section {
      background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
      border: 1px solid #333;
      border-radius: 12px;
      padding: 32px;
      margin: 40px auto;
      max-width: 1200px;
      position: relative;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 32px;
    }

    .section-title {
      font-size: 2rem;
      font-weight: 700;
      margin: 0;
      color: #fff;
      position: relative;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, #dc3545, #ff6b7a);
      border-radius: 2px;
    }

    .certificates-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 24px;
      margin-top: 24px;
    }

    .certificate-card {
      background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
      border: 1px solid #444;
      border-radius: 16px;
      padding: 20px;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }

    .certificate-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
      transition: left 0.6s ease;
    }

    .certificate-card:hover::before {
      left: 100%;
    }

    .certificate-card:hover {
      border-color: #dc3545;
      box-shadow: 0 12px 40px rgba(220, 53, 69, 0.2);
      transform: translateY(-8px) scale(1.02);
    }

    .certificate-image {
      width: 100%;
      height: 200px;
      border-radius: 12px;
      object-fit: cover;
      margin-bottom: 16px;
      border: 2px solid transparent;
      transition: all 0.3s ease;
    }

    .certificate-card:hover .certificate-image {
      border-color: #dc3545;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }

    .certificate-info {
      padding-top: 8px;
    }

    .certificate-title {
      font-size: 1.2rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 8px;
      line-height: 1.3;
    }

    .certificate-institution {
      color: #dc3545;
      font-weight: 500;
      font-size: 0.95rem;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .certificate-date {
      color: #888;
      font-size: 0.85rem;
      margin-bottom: 12px;
    }

    .certificate-skills {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 16px;
    }

    .skill-tag {
      background: rgba(220, 53, 69, 0.15);
      color: #ff8a95;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 500;
      border: 1px solid rgba(220, 53, 69, 0.3);
    }

    .certificate-actions {
      display: flex;
      gap: 8px;
      margin-top: 16px;
    }

    .action-btn {
      flex: 1;
      padding: 10px 16px;
      border: none;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .btn-view {
      background: linear-gradient(135deg, #dc3545, #c82333);
      color: #fff;
    }

    .btn-view:hover {
      background: linear-gradient(135deg, #c82333, #a71e2a);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    }

    .btn-download {
      background: transparent;
      color: #ccc;
      border: 1px solid #555;
    }

    .btn-download:hover {
      background: #333;
      color: #fff;
      border-color: #666;
    }

    .stats-section {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 16px;
      margin-bottom: 32px;
      padding: 20px;
      background: rgba(220, 53, 69, 0.1);
      border-radius: 12px;
      border-left: 4px solid #dc3545;
    }

    .stat-item {
      text-align: center;
    }

    .stat-number {
      font-size: 2rem;
      font-weight: 700;
      color: #dc3545;
      margin-bottom: 4px;
    }

    .stat-label {
      font-size: 0.9rem;
      color: #ccc;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .filter-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 24px;
    }

    .filter-btn {
      padding: 8px 16px;
      background: transparent;
      color: #888;
      border: 1px solid #444;
      border-radius: 20px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .filter-btn:hover,
    .filter-btn.active {
      background: #dc3545;
      color: #fff;
      border-color: #dc3545;
    }

    /* Modal para visualização */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      backdrop-filter: blur(5px);
    }

    .modal-content {
      max-width: 90%;
      max-height: 90%;
      border-radius: 12px;
      overflow: hidden;
      position: relative;
    }

    .modal-image {
      width: 100%;
      height: auto;
      display: block;
    }

    .modal-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: rgba(0, 0, 0, 0.7);
      color: #fff;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Responsividade */
    @media (max-width: 768px) {
      .certificates-section {
        margin: 20px;
        padding: 24px;
      }

      .certificates-grid {
        grid-template-columns: 1fr;
      }

      .section-title {
        font-size: 1.6rem;
      }

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

      .certificate-actions {
        flex-direction: column;
      }

      .filter-buttons {
        justify-content: center;
      }
    }

    @media (max-width: 480px) {
      .stats-section {
        grid-template-columns: 1fr;
      }

      .stat-number {
        font-size: 1.5rem;
      }

      .certificate-card {
        padding: 16px;
      }
    }
.certificates-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 32px;
  margin: 40px auto;
  max-width: 1200px;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #dc3545, #ff6b7a);
  border-radius: 2px;
}

/* ===== ESTATÍSTICAS ===== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 12px;
  border-left: 4px solid #dc3545;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FILTROS ===== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 16px;
  background: transparent;
  color: #888;
  border: 1px solid #444;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

/* ===== GRID DE CERTIFICADOS ===== */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.certificate-card {
  background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
  border: 1px solid #444;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.certificate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
  transition: left 0.6s ease;
}

.certificate-card:hover::before {
  left: 100%;
}

.certificate-card:hover {
  border-color: #dc3545;
  box-shadow: 0 12px 40px rgba(220, 53, 69, 0.2);
  transform: translateY(-8px) scale(1.02);
}

/* ===== IMAGENS DOS CERTIFICADOS ===== */
.certificate-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.certificate-card:hover .certificate-image {
  border-color: #dc3545;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== INFORMAÇÕES DOS CERTIFICADOS ===== */
.certificate-info {
  padding-top: 8px;
}

.certificate-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.certificate-institution {
  color: #dc3545;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.certificate-date {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.certificate-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.skill-tag {
  background: rgba(220, 53, 69, 0.15);
  color: #ff8a95;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ===== BOTÕES DE AÇÃO ===== */
.certificate-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.action-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-view {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: #fff;
}

.btn-view:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-download {
  background: transparent;
  color: #ccc;
  border: 1px solid #555;
}

.btn-download:hover {
  background: #333;
  color: #fff;
  border-color: #666;
}

/* ===== MODAL DE VISUALIZAÇÃO ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(220, 53, 69, 0.8);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .certificates-section {
    margin: 20px;
    padding: 24px;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

  .certificate-actions {
    flex-direction: column;
  }

  .filter-buttons {
    justify-content: center;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats-section {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .certificate-card {
    padding: 16px;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    text-align: center;
  }
}