:root {
    --gradient-white-bg2: #f0f0f0;
    --gradient-color-bg: linear-gradient(to right, #800080, #4B0082);
    --font-color: #f202aa7d;
}

.projects {
    padding: 100px 100px;
    margin-top: 30%;
    margin-bottom: 15%;
}

.main-text {
    text-align: center;
    margin-bottom: 2rem;
}

.heading__projects {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 700;
}

.main-text span {
    display: block;
    font-size: 1.2rem;
}

.fillter-buttons {
    text-align: center;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.fillter-buttons button {
    background: #5217414a;
    padding: 12px 15px;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    color: #f9f9f9;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fillter-buttons button:hover,
.fillter-buttons button.mixitup-control-active {
    background: var(--gradient-buttons);
    color: #fff;
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1rem;
}

.projects-box {
    display: flex;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
    background: rgba(55, 2, 55, 0.068);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.projects-content {
    width: 100%;
    padding-left: 0.5rem;
    padding-bottom: 0.5rem;
}

.projects-img iframe {
    display: block;
    width: 100%;
    height: 300px;
    transition: transform 0.3s ease; /* Adicionando o efeito de transição */
}

.projects-box:hover iframe {
    transform: scale(1.1); /* Efeito de zoom para o iframe */
}

.projects-img {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0.5rem; /* 2rem para vertical e 1rem para horizontal */
}

.projects-img img {
    display: block;
    width: 100%;
    height: 300px;
    transition: 0.3s;
}

.projects-box:hover img {
    transform: scale(1.1);
}

.projects-content p {
    font-size: 0.9rem;
    color: var(--font-color);
    margin: 0.5rem 0 1rem 0;
}

.projects-content a.readMore {
    padding: 8px 12px;
    font-size: 0.8rem;
    text-decoration: none;
    background: var(--gradient-color-bg);
    color: #fff;
    border-radius: 5px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(242, 146, 213, 0.626);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.projects-box:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: #fff;
    font-size: 1.5em;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.page-button {
    background-color: #52174198;
    color: white;
    padding: 10px 15px;
    border: none;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-button:hover {
    background-color: #800080b9;
}

.page-button:focus {
    outline: none;
}

.no-projects-message {
    text-align: center;
    font-size: 1.2rem;
    color: #f3ebeb;
    margin-top: 20px;
    display: none; /* Inicialmente oculta */
}

.no-projects-message p {
    margin: 0;
}

/* Media Queries */
@media (max-width: 991px) {
    .projects-img img {
        width: 100%;
        height: 100%;
    }
    .projects-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}