.content-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.request-btn {
    transition: background-color 0.3s ease;
}

.active-btn-portfolio {
    color: var(--secondary) !important;
    background-color: var(--white);
    border: 1px solid var(--secondary);
    border-radius: 0.7rem;
}

.portfolio-btn {
    font-weight: 600;
    color: var(--primary);
}

.portfolio-gallaery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.portfolio-img {
    height: 100%;
    border-radius: 2rem;
    border: 1px solid var(--secondary);
    position: relative;
    overflow: hidden;
    background-color: #CED7F8;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-img-brand{
    background-color: transparent;
}
/* Skip the ::after overlay for Brand/علامات تجارية */
.no-hover-effect::after {
    content: none !important;
}


.portfolio-img:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, rgba(45, 39, 83, 1), rgba(45, 39, 83, 0.84));
    border-radius: 2rem;
    z-index: 1;
}

.portfolio-img .overlay-text {
    position: absolute;
    top: 10%; 
    left: 10%;
    right: 10%;
    bottom: 10%; 
    color: white;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; 
    max-height: 80%;
    scrollbar-width: thin; 
    scrollbar-color: rgba(255,255,255,0.3) transparent; 

    .tech-icon {
        width: 2rem;
        height: 2rem;
        object-fit: contain;
        margin-inline-end: 5px;
    }

    h3 {
        font-weight: 600;
        margin-bottom: 0.5rem; 
    }

    p {
        font-size: small;
        margin-bottom: 1rem; 
    }
}

.portfolio-img .overlay-text::-webkit-scrollbar {
    width: 4px;
}

.portfolio-img .overlay-text::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-img .overlay-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.portfolio-img .overlay-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.portfolio-img:hover .overlay-text {
    opacity: 1;
}


@media (max-width: 767.98px) {
    .portfolio-img {
        width: 100%;

    }

    .portfolio-gallaery {
        justify-content: center;
    }
}