
/* =========================================
   WORK HERO
========================================= */

.work-hero {
    padding: 82px 0 0;
    background:
        radial-gradient(circle at 80% 20%,
            rgba(49, 104, 237, 0.09), transparent 32%),
        linear-gradient(180deg, #ffffff, #f7f9ff);
}

.work-hero-content {
    max-width: 820px;
    padding-bottom: 65px;
}

.work-hero h1 {
    margin-bottom: 23px;
    color: var(--heading-color);
    font-size: clamp(42px, 5.2vw, 64px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.work-hero h1 span {
    display: block;
    color: var(--primary-color);
}

.work-hero-content > p:not(.eyebrow) {
    max-width: 660px;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.9;
}

.work-hero-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid #e5eaf2;
}

.work-hero-bottom > span:not(.work-hero-divider) {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.work-hero-divider {
    width: 5px;
    height: 5px;
    background: #3168ed;
    border-radius: 50%;
}


/* =========================================
   INTRODUCTION
========================================= */

.work-intro {
    background: #ffffff;
}

.work-intro-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 65px;
}

.work-intro-grid .section-title {
    max-width: 540px;
}

.work-intro-description {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.95;
}


/* =========================================
   PORTFOLIO GRID
========================================= */

.work-projects {
    background: #f8faff;
}

.work-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.work-section-heading .section-title {
    margin-bottom: 0;
}

.work-section-heading > p {
    max-width: 300px;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.8;
}

.work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 32px;
}

.work-filter {
    padding: 10px 16px;
    color: #475467;
    background: #ffffff;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.work-filter:hover {
    border-color: #a9c0ff;
    color: #245be8;
}

.work-filter.active {
    color: #ffffff;
    background: #3168ed;
    border-color: #3168ed;
}

.work-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.work-project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.work-project-card:hover {
    transform: translateY(-5px);
    border-color: #cbd8f7;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.07);
}

.work-project-card[hidden] {
    display: none;
}


/* =========================================
   PROJECT VISUALS
========================================= */

.project-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 225px;
    overflow: hidden;
    padding: 24px;
}

.project-visual-web {
    background: #edf3ff;
}

.project-visual-app {
    background: #f0f0ff;
}

.project-visual-api {
    background: #eaf7f4;
}

.project-visual-polarion {
    background: #eef2fa;
}

.project-visual-migration {
    background: #f5f0ff;
}

.project-visual-automation {
    background: #fff4e8;
}

.project-visual-label {
    position: absolute;
    right: 13px;
    bottom: 12px;
    color: #667085;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* Browser illustration */

.browser-window {
    width: 100%;
    max-width: 285px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe6f2;
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(28, 50, 100, 0.10);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.work-project-card:hover .browser-window {
    transform: rotate(0deg) translateY(-3px);
}

.browser-top {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    color: #667085;
    background: #f8faff;
    border-bottom: 1px solid #edf0f5;
    font-size: 8px;
}

.browser-top > span {
    width: 6px;
    height: 6px;
    background: #c5d0e1;
    border-radius: 50%;
}

.browser-top > div {
    margin-left: 8px;
}

.browser-content {
    padding: 15px;
}

.mock-brand {
    width: 40px;
    height: 7px;
    margin-bottom: 15px;
    background: #3168ed;
    border-radius: 3px;
}

.mock-title {
    width: 80%;
    height: 10px;
    margin-bottom: 6px;
    background: #253858;
    border-radius: 3px;
}

.mock-title-short {
    width: 55%;
}

.mock-description {
    width: 90%;
    height: 5px;
    margin: 12px 0;
    background: #dfe6f2;
    border-radius: 3px;
}

.mock-button {
    width: 65px;
    height: 18px;
    background: #3168ed;
    border-radius: 4px;
}

.mock-panels {
    display: flex;
    gap: 7px;
    margin-top: 15px;
}

.mock-panels span {
    flex: 1;
    height: 32px;
    background: #edf3ff;
    border: 1px solid #e0e8fa;
    border-radius: 4px;
}


/* Application illustration */

.app-preview {
    display: flex;
    width: 100%;
    max-width: 280px;
    min-height: 150px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e5f5;
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(40, 35, 100, 0.09);
    transform: rotate(1deg);
    transition: transform 0.3s ease;
}

.work-project-card:hover .app-preview {
    transform: rotate(0deg) translateY(-3px);
}

.app-sidebar {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 43px;
    padding: 16px 10px;
    background: #28345a;
}

.app-sidebar span {
    width: 20px;
    height: 5px;
    background: #9ba8d5;
    border-radius: 3px;
}

.app-main {
    flex: 1;
    padding: 16px;
}

.app-heading {
    width: 90px;
    height: 8px;
    margin-bottom: 17px;
    background: #28345a;
    border-radius: 3px;
}

.app-stats {
    display: flex;
    gap: 7px;
}

.app-stats span {
    flex: 1;
    height: 28px;
    background: #f0f0ff;
    border-radius: 4px;
}

.app-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 47px;
    margin-top: 13px;
    padding: 7px;
    background: #f8f8ff;
    border-radius: 4px;
}

.app-chart i {
    flex: 1;
    background: #7c83e8;
    border-radius: 3px 3px 0 0;
}

.app-chart i:nth-child(1) { height: 35%; }
.app-chart i:nth-child(2) { height: 55%; }
.app-chart i:nth-child(3) { height: 40%; }
.app-chart i:nth-child(4) { height: 80%; }
.app-chart i:nth-child(5) { height: 60%; }
.app-chart i:nth-child(6) { height: 95%; }
.app-chart i:nth-child(7) { height: 70%; }
.app-chart i:nth-child(8) { height: 100%; }


/* Integration illustration */

.integration-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 9px;
}

.integration-node {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 15px 10px;
    background: #ffffff;
    border: 1px solid #d5e8e3;
    border-radius: 9px;
    box-shadow: 0 7px 18px rgba(30, 80, 65, 0.06);
}

.integration-node > span {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    color: #087f67;
    background: #e0f5ee;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
}

.integration-node strong {
    color: #344054;
    font-size: 10px;
}

.integration-node-blue > span {
    color: #245be8;
    background: #e9efff;
}

.integration-connector {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
}

.integration-connector span {
    color: #087f67;
    font-size: 8px;
    font-weight: 800;
}

.integration-connector i {
    width: 35px;
    height: 2px;
    background: #2b9d84;
}


/* Polarion illustration */

.polarion-preview {
    width: 100%;
    max-width: 290px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #dfe6f2;
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(28, 50, 100, 0.08);
}

.polarion-preview-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf0f5;
}

.polarion-preview-mark {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    color: #ffffff;
    background: #3168ed;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
}

.polarion-preview-top div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.polarion-preview-top strong {
    color: #253858;
    font-size: 10px;
}

.polarion-preview-top small {
    color: #98a2b3;
    font-size: 8px;
}

.polarion-preview-row {
    display: grid;
    grid-template-columns: 55px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f7;
}

.polarion-preview-row:last-child {
    border-bottom: 0;
}

.polarion-preview-row > span {
    color: #667085;
    font-size: 8px;
}

.polarion-preview-row > div {
    height: 5px;
    background: #e7ecf5;
    border-radius: 3px;
}

.polarion-preview-row > b {
    padding: 4px 5px;
    color: #167647;
    background: #e8f7ee;
    border-radius: 4px;
    font-size: 7px;
}


/* Migration illustration */

.migration-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 7px;
}

.migration-box {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 12px 8px;
    background: #ffffff;
    border: 1px solid #e5ddf8;
    border-radius: 8px;
    box-shadow: 0 7px 18px rgba(80, 50, 120, 0.05);
}

.migration-box > span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    color: #7351b7;
    background: #f0e9ff;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 800;
}

.migration-box strong {
    color: #344054;
    font-size: 9px;
}

.migration-box small {
    color: #98a2b3;
    font-size: 7px;
}

.migration-box-blue > span {
    color: #245be8;
    background: #e9efff;
}

.migration-arrow {
    color: #7351b7;
    font-size: 18px;
}


/* Automation illustration */

.automation-flow {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.automation-step {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 70%;
    max-width: 230px;
    padding: 10px 13px;
    background: #ffffff;
    border: 1px solid #f0dfc9;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(100, 70, 30, 0.04);
}

.automation-step > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #ad6b24;
    background: #fff0d9;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
}

.automation-step strong {
    color: #344054;
    font-size: 10px;
}

.automation-step-blue > span {
    color: #245be8;
    background: #e9efff;
}

.automation-arrow {
    color: #c28a49;
    font-size: 14px;
}


/* =========================================
   PROJECT CARD CONTENT
========================================= */

.project-card-content {
    display: flex;
    align-items: flex-start;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-bottom: 15px;
}

.project-meta span:first-child {
    color: #3168ed;
    font-size: 10px;
    font-weight: 800;
}

.project-meta span:last-child {
    color: #667085;
    font-size: 9px;
}

.project-card-content h3 {
    margin-bottom: 12px;
    color: var(--heading-color);
    font-size: 18px;
    line-height: 1.45;
}

.project-card-content > p {
    margin-bottom: 19px;
    color: var(--text-color);
    font-size: 12px;
    line-height: 1.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
}

.project-tech span {
    padding: 6px 8px;
    color: #475467;
    background: #f3f5f9;
    border: 1px solid #e8ecf3;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: #245be8;
    font-size: 11px;
    font-weight: 800;
}

.project-link span {
    font-size: 17px;
    transition: transform 0.2s ease;
}

.project-link:hover span {
    transform: translateX(4px);
}

.work-disclaimer {
    margin-top: 25px;
    color: #667085;
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================
   WORK PROCESS
========================================= */

.work-process {
    background: #ffffff;
}

.work-process-heading {
    max-width: 700px;
    margin-bottom: 38px;
}

.work-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.work-process-item {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 12px;
}

.work-process-item > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 20px;
    color: #3168ed;
    background: #edf3ff;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
}

.work-process-item h3 {
    margin-bottom: 9px;
    color: var(--heading-color);
    font-size: 16px;
}

.work-process-item p {
    color: var(--text-color);
    font-size: 12px;
    line-height: 1.9;
}


/* =========================================
   FINAL CTA
========================================= */

.work-cta {
    background: #f8faff;
}

.work-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 42px;
    background: #edf3ff;
    border: 1px solid #dce7ff;
    border-radius: 16px;
}

.work-cta-inner h2 {
    max-width: 620px;
    margin-bottom: 12px;
    color: var(--heading-color);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.3;
}

.work-cta-inner > div > p:last-child {
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.9;
}

.work-cta-inner .btn {
    flex-shrink: 0;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1050px) {
    .work-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-intro-grid {
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .work-hero {
        padding-top: 65px;
    }

    .work-hero h1 {
        font-size: clamp(38px, 8vw, 52px);
        letter-spacing: -1.5px;
    }

    .work-intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .work-project-grid {
        grid-template-columns: 1fr;
    }

    .project-visual {
        min-height: 235px;
    }

    .work-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .work-hero h1 {
        font-size: 36px;
    }

    .work-hero-bottom {
        gap: 11px;
    }

    .work-hero-bottom > span:not(.work-hero-divider) {
        font-size: 8px;
    }

    .work-filter {
        padding: 9px 11px;
        font-size: 11px;
    }

    .work-process-grid {
        grid-template-columns: 1fr;
    }

    .project-card-content {
        padding: 20px;
    }

    .migration-flow {
        gap: 4px;
    }

    .migration-box {
        padding: 10px 5px;
    }

    .migration-box strong {
        font-size: 8px;
    }

    .integration-diagram {
        gap: 5px;
    }

    .integration-connector i {
        width: 20px;
    }
}
