.portfolio {
    width: 100%;
    overflow-x: hidden;
}

.portfolio-header {
    width: 100%;
    padding: 96px 24px;
    background: #eeeeee;
    text-align: center;

}

.portfolio-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.portfolio-header p {
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

#portfolio-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 96px 24px;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid rgb(191, 191, 191);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: transform .3s ease;
    width: 100%;
    max-width: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
}


.project-content {
    padding: 25px;
}

.project-content h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.project-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-tags span {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
}

.project-link {
    text-decoration: none;
    font-weight: 500;
    color: #1e3a8a;
    display: inline-block;
}

@media (max-width: 768px) {
    .portfolio-header h1 {
        font-size: 32px;
    }

    .portfolio-header p {
        font-size: 15px;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h2 {
        font-size: 19px;
    }

    .project-content p {
        font-size: 14px;
    }

    .project-tags {
        justify-content: center;
    }

    .project-link {
        display: block;
        text-align: center;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {

    .portfolio-header h1 {
        font-size: 28px;
    }

    .project-link {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        background: #1e3a8a;
        color: #fff;
        text-align: center;
    }
}

@media (max-width: 360px) {
    #portfolio-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .project-card {
        width: 100%;
        max-width: 100%;
    }
}