#portfolio {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(880px 380px at 0% 0%, rgba(186, 216, 250, 0.4), transparent 70%),
        radial-gradient(760px 420px at 100% 100%, rgba(186, 216, 250, 0.42), transparent 70%),
        linear-gradient(180deg, #f7fbff 0%, #f4f8fd 100%);
    padding: 6.5rem 0 6rem;
}

#portfolio .container,
#portfolio .section-header,
#portfolio .work-filters,
#portfolio .work-grid {
    position: relative;
    z-index: 1;
}

#portfolio .section-header {
    margin-bottom: 1.6rem;
}

#portfolio .section-tag {
    background: linear-gradient(180deg, #7c6bff 0%, #5b4de8 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(91, 77, 232, 0.28);
    padding: 0.42rem 1.15rem;
}

#portfolio .section-title {
    color: #121826;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.55rem;
}

#portfolio .section-title span {
    color: #1a73e8;
}

#portfolio .section-description {
    color: #8b95a5;
    font-size: 1.08rem;
    max-width: 640px;
}

.work-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.7rem;
}

.work-filter {
    border: 1px solid #e3eaf3;
    background: #fff;
    color: #3d4654;
    border-radius: 999px;
    padding: 0.48rem 1rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-filter:hover,
.work-filter:focus-visible {
    border-color: #c9bdfc;
    color: #5b4de8;
}

.work-filter.is-active {
    background: linear-gradient(180deg, #7a68ff 0%, #5b4de8 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 16px rgba(91, 77, 232, 0.28);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.work-card {
    background: #fff;
    border: 1px solid #e7eef8;
    border-radius: 22px;
    padding: 0.7rem 0.7rem 1.05rem;
    box-shadow: 0 14px 34px rgba(80, 130, 190, 0.08);
}

.work-card[hidden] {
    display: none;
}

.work-shot {
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 0.9rem;
    background: #eef3f8;
}

.work-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.shot-erp { background: linear-gradient(180deg, #eef3f8 0%, #e4ebf3 100%); }
.shot-shop { background: linear-gradient(180deg, #e7f0ff 0%, #d9e6fb 100%); }
.shot-phones { background: linear-gradient(160deg, #e7f3ff 0%, #d5e6fb 100%); align-items: center; gap: 14px; }
.shot-docs { background: linear-gradient(180deg, #f3f5f8 0%, #e7ebf0 100%); }
.shot-news { background: linear-gradient(180deg, #eef2f7 0%, #e4eaf2 100%); }
.shot-site { background: linear-gradient(160deg, #d7e8fb 0%, #c5daf6 100%); }

.laptop {
    width: 78%;
    margin-bottom: -8px;
}

.lid {
    background: #1d2430;
    border-radius: 10px 10px 0 0;
    padding: 7px 7px 0;
    height: 118px;
}

.chin {
    height: 8px;
    background: #c5ced8;
    border-radius: 0 0 8px 8px;
    position: relative;
}

.chin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 42px;
    height: 4px;
    transform: translateX(-50%);
    background: #aeb8c4;
    border-radius: 0 0 6px 6px;
}

.ui {
    height: 100%;
    background: #f7f9fc;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    position: relative;
}

.erp-ui { display: grid; grid-template-columns: 28px 1fr; }
.erp-ui b { background: #2457d6; }
.erp-ui span, .erp-ui i { display: block; }
.erp-ui span:nth-of-type(1) { height: 10px; margin: 10px 10px 0; background: #dbe4f2; border-radius: 4px; }
.erp-ui span:nth-of-type(2) { height: 28px; margin: 8px 10px 0; background: linear-gradient(90deg, #3d7cf0, #7eb0ff); border-radius: 6px; }
.erp-ui i { height: 36px; margin: 8px 6px 0 10px; background: #e8eef8; border-radius: 6px; }

.shop-ui em {
    display: block;
    width: 54px;
    height: 54px;
    margin: 14px auto 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #1b1f2a 0 16px, #4d5668 17px 22px, transparent 23px), #d7e3f8;
}
.shop-ui span {
    display: block;
    height: 8px;
    margin: 6px 18px 0;
    background: #fff;
    border-radius: 4px;
}

.docs-ui b { display: block; height: 12px; margin: 10px; background: #2457d6; border-radius: 4px; width: 40%; }
.docs-ui span { display: block; height: 14px; margin: 6px 10px; background: #e7eef8; border-radius: 4px; }
.docs-ui span:nth-of-type(odd) { background: #f3f6fb; }

.news-ui b { display: block; height: 10px; background: #1e293b; }
.news-ui em { display: block; height: 46px; margin: 8px; border-radius: 6px; background: linear-gradient(135deg, #f59e0b, #60a5fa 55%, #1d4ed8); }
.news-ui span { display: block; height: 8px; margin: 0 8px 6px; background: #e5eaf2; border-radius: 4px; }

.site-ui b { display: block; height: 12px; background: #0f2744; }
.site-ui em { display: block; height: 62px; margin: 8px; border-radius: 8px; background: linear-gradient(160deg, #38bdf8, #1d4ed8 60%, #0f2744); }
.site-ui span { display: block; height: 8px; width: 46%; margin: 0 8px; background: #dbe7f6; border-radius: 4px; }

.phone {
    width: 72px;
    height: 132px;
    background: #111827;
    border-radius: 16px;
    padding: 8px 6px;
    box-shadow: 0 10px 18px rgba(30, 64, 120, 0.18);
    transform: rotate(-8deg);
}
.phone-alt { transform: rotate(8deg) translateY(8px); background: #0f2744; }
.phone div { height: 28px; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #93c5fd); }
.phone b, .phone i { display: block; height: 8px; margin-top: 7px; border-radius: 4px; background: #334155; }
.phone i:last-child { width: 70%; }

.work-body { padding: 0 0.45rem; }
.work-kind {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #5b4de8;
    background: #eef0ff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
}
.work-kind i { font-size: 0.72rem; }
.work-card h3 {
    margin: 0.55rem 0 0.35rem;
    font-size: 1.12rem;
    color: #151b26;
}
.work-card p {
    margin: 0 0 0.75rem;
    color: #6d7583;
    font-size: 0.9rem;
    line-height: 1.45;
}
.work-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.work-tags span {
    background: #f3f6fb;
    color: #5c6778;
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.22rem 0.55rem;
}
.work-more {
    color: #1a73e8;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.work-more:hover,
.work-more:focus-visible { color: #0b57c7; }

@media (max-width: 980px) {
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    #portfolio { padding-top: 5.5rem; }
    #portfolio .section-title { font-size: 2rem; }
    .work-grid { grid-template-columns: 1fr; }
}
