.projects {
    .first-section {
        width: 100%;
        height: 200px;
        padding-top: 100px;
        padding-bottom: 20px;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        h1 {
            font-size: 2rem;
        }
    }

    .second-section {
        width: 100%;
        padding: 30px;

        nav {
            width: 100%;
            padding: 0 20px;
            background: #D9D9D9;
            border-top: 1px solid black;
            border-bottom: 1px solid black;
            display: flex;
            justify-content: space-between;
            align-items: center;
            overflow-x: auto;
            scrollbar-width: none;

            button {
				padding: 10px 50px;
				border: none;
				outline: none;
				background: none;
                transition: all 500ms;
                color: rgb(0, 0, 0);
            }
            button:hover {
                font-weight: bold;
            }
        }
        nav::-webkit-scrollbar {
			scrollbar-width: none;
		}

        .card-block {
            padding: 30px 0;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 30px;

            .card {
                width: calc(33.33% - 20px);
                height: 300px;
                overflow: hidden;
                position: relative;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                .text-block {
                    width: 100%;
                    height: 0;
                    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    opacity: 0;
                    transition: all 500ms;

                    p {
                        width: 70%;
                        text-align: center;
                        color: white;
                    }
                }
            }
            .card:hover .text-block {
                height: 40%;
                opacity: 1;
            }
            .card:hover .media-slider {
                opacity: 1;
            }

            .card.active {
                display: block;
            }
            .consultancy {
                display: none;
                width: 100%;

                h4 {
                    width: 100%;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
            }
        }
    }
}


@media screen and (max-width: 992px) {
    .projects {
        .second-section {
            position: relative;

            nav {
                flex-wrap: wrap;
                z-index: 8;

                .all {
                    width: 100%;
                }

                button {
                    width: 50%;
                    padding: 5px 50px;
                }
            }

            .card-block {
                .card {
                    width: 100%;
                }
            }
        }
    }
}


button {
    background: linear-gradient(to right, #4CAF50, #81C784);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

button:active {
    transform: scale(0.98);
}

.text {
    text-align: center;
    margin-bottom: 20px;
}

.text h1 {
    font-size: 1.8rem;
    color: #333;
}

.text p {
    font-size: 1rem;
    color: #666;
}
.text-block {
    pointer-events: none; 
}
.text-block p {
    pointer-events: auto; 
}
