.intro  { 
    padding: 30px;
    border-radius: 10px;
}

.intro .heading {
    color: var(--olive);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.intro hr {
    width: 220px;
    height: 1px;
    background-color: var(--forest);
    margin: 0 auto;
    margin-bottom: 30px;
    border: none;
}

.category-filter {
    background-color: #e0e0e0; 
    color: rgb(40, 40, 40); 
    border: none;
    padding: 8px 16px;
    margin: 0 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 30px;
}

.category-filter.active {
    background-color: var(--aloe); 
    color: white; 
}

.category-filter:hover {
    background-color: var(--aloe); 
    color: white; 
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
}

.project-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 35, 26, 0.647);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay-content {
    position: absolute;
    bottom: 20px;
    color: white;
    padding: 0 40px;
}

.overlay-title {
    font-size: 1.4rem;
    font-weight: bold;
}

.overlay-icon {
    display: inline-block;
    color: rgb(77, 161, 130); 
    font-size: 2rem;
    transition: transform 0.3s ease;
    margin-top: -10px;
}

.overlay-icon:hover {
    transform: translateX(5px);
}

@media (max-width: 900px) { 
    .overlay {
        background-color: rgba(3, 35, 26, 0.436);
    }

    .overlay-content {
        position: absolute;
        bottom: 20px;
        color: white;
        padding: 0 35px;
        font-size: 1rem;
    }
    
    .overlay-title {
        font-size: 1.3rem;
        font-weight: bold;
    }

    .overlay {
        opacity: 1; 
    }

    .project-card:hover .overlay {
        opacity: 1; 
    }
}

@media (max-width: 500px) { 
    .overlay {
        background-color: rgba(3, 35, 26, 0.436);
    }

    .overlay-content {
        position: absolute;
        bottom: 20px;
        color: white;
        padding: 0 25px;
        font-size: 0.9rem;
    }
    
    .overlay-title {
        font-size: 1.2rem;
        font-weight: bold;
    }

    .overlay {
        opacity: 1; 
    }

    .project-card:hover .overlay {
        opacity: 1; 
    }

    .intro .heading {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}