.pr_sec{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    background-color: #202020;
    margin-top: 30px;
    padding-bottom: 40px;
}
.p_he h1
{
    margin-top: 10px;
    font-size: 50px;
    color: white;
    padding-bottom: 30px;
}
.project-container {
    text-align: center;
    padding: 20px;
    color: #fff;
}



.project-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.category {
    position: relative;
    width: 45%;
    margin: 15px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.category img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.category-name {
    text-align: center;
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.category:hover {
    transform: scale(1.05);
}

.category:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.9);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 10px;
    transform: scale(0.9);
}

.category:hover .overlay {
    opacity: 1;
    transform: scale(1);
}

.overlay h3 {
    margin: 10px 0;
}

.overlay p {
    margin: 10px 0;
}

.overlay button {
    padding: 10px 20px;
    background-color: #4CAF50;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .category {
        width: 90%;
    }
}
