.portfolio {
    position: relative;
    top: -150px;
    margin-bottom: 1rem;
    @media (max-width: 640px) {
        top: 0px;
    }
    .btn {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;

        color: #fff;
        padding: 0.75rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        font-size: 1rem;
        background: var(--text-color);
        box-shadow: 4px 5px 4.9px rgba(0, 0, 0, 0.25);
        border-radius: 4px;
        text-decoration: none;
        transition: all 0.3s ease;
        &:hover {
            color: var(--background-color);
            background: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 4px 7px 6px rgba(0, 0, 0, 0.3);
            text-decoration: none;
        }
        svg {
            width: 16px;
        }
    }
    .heading {
        padding-top: 0rem;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 3rem;
        h1 {
            font-size: 2rem;
        }
        p {
            color: var(--primary-color);
        }
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .article {
        position: relative;
        border-radius: 6px;
        overflow: hidden;
        aspect-ratio: 1.06 / 1;
        cursor: pointer;
        transition: transform 0.3s ease;
        &:hover {
            transform: translateY(-10px);
        }

        &:hover .article-image {
            transform: scale(1.05);
        }

        .article-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .article-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding-bottom: 2rem;
        }

        .article-title {
            color: #ffffff;
            font-size: 1.25rem;
            font-weight: 700;
            text-align: center;
            margin: 0;
            @media (max-width: 640px) {
                font-size: 0.8rem;
            }
        }
    }

    /* Drop shadow effects with alternating colors */
    .article:nth-child(1) {
        filter: drop-shadow(12px -10px 1px rgba(206, 160, 5, 0.6));
    }

    .article:nth-child(2) {
        filter: drop-shadow(12px -10px 1px rgba(31, 31, 31, 0.6));
    }

    .article:nth-child(3) {
        filter: drop-shadow(12px -10px 1px rgba(206, 160, 5, 0.6));
    }

    .article:nth-child(4) {
        filter: drop-shadow(12px -10px 1px rgba(31, 31, 31, 0.6));
    }

    .article:nth-child(5) {
        filter: drop-shadow(12px -10px 1px rgba(206, 160, 5, 0.6));
    }

    .article:nth-child(6) {
        filter: drop-shadow(12px -10px 1px rgba(31, 31, 31, 0.6));
    }

    /* Random color overlays */
    .article:nth-child(1) .article-overlay {
        background: rgba(206, 160, 5, 0.6);
    }

    .article:nth-child(2) .article-overlay {
        background: rgba(31, 31, 31, 0.6);
    }

    .article:nth-child(3) .article-overlay {
        background: rgba(206, 160, 5, 0.6);
    }

    .article:nth-child(4) .article-overlay {
        background: rgba(31, 31, 31, 0.6);
    }

    .article:nth-child(5) .article-overlay {
        background: rgba(206, 160, 5, 0.6);
    }

    .article:nth-child(6) .article-overlay {
        background: rgba(31, 31, 31, 0.6);
    }

    /* Box shadow effects with #CEA005 and #1F1F1F */
    .article:nth-child(1) .article-image {
        box-shadow: 18px -16px 4px 0px rgba(206, 160, 5, 0.6);
    }

    .article:nth-child(2) .article-image {
        box-shadow: 18px -16px 4px 0px rgba(31, 31, 31, 0.6);
    }

    .article:nth-child(3) .article-image {
        box-shadow: 18px -16px 4px 0px rgba(206, 160, 5, 0.6);
    }

    .article:nth-child(4) .article-image {
        box-shadow: 18px -16px 4px 0px rgba(31, 31, 31, 0.6);
    }

    .article:nth-child(5) .article-image {
        box-shadow: 18px -16px 4px 0px rgba(206, 160, 5, 0.6);
    }

    .article:nth-child(6) .article-image {
        box-shadow: 18px -16px 4px 0px rgba(31, 31, 31, 0.6);
    }

    .center {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Responsive design */
    @media (max-width: 1024px) {
        .projects-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 2.5rem;
        }
    }

    @media (max-width: 640px) {
        .projects-grid {
            grid-template-columns: repeat(2, 1fr);

            gap: 2.5rem;
        }

        .heading {
            margin-bottom: 2rem;
        }
    }
}
