.portfolio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: #e9ecef;
    text-align: center;
}

.portfolio-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    width: 80%;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
    overflow: hidden;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: inline-block;
    cursor: pointer;
    transition: width 0.5s ease, height 0.5s ease, border-radius 0.5s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.image-wrapper:hover {
    width: 300px;
    height: 200px;
    border-radius: 15px;
    z-index: 5;
}

.image-wrapper:hover img {
    transform: scale(1.05);
    object-fit: cover;
}

.portfolio-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-left: 20px;
}

.portfolio-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #007bff;
}

.portfolio-description {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.portfolio-author {
    font-size: 14px;
    color: #666;
}

.portfolio-cta {
    text-decoration: none;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    align-self: flex-start;
}

.portfolio-cta:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .portfolio-container {
        padding: 40px 10px;
    }

    .portfolio-item {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 15px;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .image-wrapper {
        width: 100%;
        height: auto;
        max-width: 300px;
        border-radius: 8px;
        margin-bottom: 15px;
        transition: none;
    }

    .image-wrapper img {
        border-radius: 8px;
        transition: none;
    }

    .image-wrapper:hover {
        width: 100%;
        height: auto;
        border-radius: 8px;
        transform: none;
    }

    .image-wrapper:hover img {
        transform: none;
    }

    .portfolio-details {
        text-align: center;
        margin: 0;
        width: 100%;
    }

    .portfolio-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .portfolio-description {
        font-size: 14px;
        margin-bottom: 8px;
        color: #333;
    }

    .portfolio-author {
        font-size: 12px;
        color: #555;
    }

    .portfolio-cta {
        width: 100%;
        text-align: center;
        align-self: center;
    }

    .portfolio-cta:hover {
        background-color: #007bff;
        transform: none;
    }
}
