

/* Container de Certificados */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Certificados maiores */
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos do Card */
.certificate-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 4 / 3; /* Mantém a proporção */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.certificate-inner{
    height: 100%;
}

.certificate-front {
    height: 100%;
}

/* Imagem */
.certificate-front img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra todo o espaço */
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.certificate-card:hover .certificate-front img {
    transform: scale(1.0); /* Zoom leve na imagem */
}

/* Informações ao Passar o Mouse */
.certificate-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    color: #b1b1b1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.certificate-back h3, .certificate-back p{
    padding: 0px 20px;
}

/* Título e Conteúdo */
.certificate-back h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--hover-color);
}

.certificate-back p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.certificate-back button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

/* Título no Hover */
.certificate-front h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    line-height: 1.1rem;
}

.certificate-card:hover .certificate-front h3 {
    opacity: 1;
}




/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    width: 800px; /* Largura fixa */
    height: 500px; /* Altura fixa */
    object-fit: cover; /* Cobre o espaço mantendo o preenchimento */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}



/* Animação de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
