/* ==================================================
   PORTFOLIO PAGE
================================================== */


/* ==================================================
   PORTFOLIO HERO
================================================== */

.portfolio-hero-section {
    position: relative;
    padding: 105px 0 115px;
    background:
        linear-gradient(
            110deg,
            #f7faf8 0%,
            #ffffff 58%,
            #f0f6f1 100%
        );
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.portfolio-hero-section::before {
    content: "";
    position: absolute;
    top: -250px;
    right: -150px;
    width: 670px;
    height: 670px;
    border: 1px solid rgba(46, 125, 50, 0.11);
    border-radius: 50%;
}

.portfolio-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 90px;
}

.portfolio-hero-content h1 {
    max-width: 810px;
    font-size: clamp(3rem, 5vw, 4.7rem);
}

.portfolio-hero-description {
    max-width: 700px;
    margin-top: 27px;
    font-size: 1.08rem;
    line-height: 1.85;
}

.portfolio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}


/* ==================================================
   HERO VISUAL
================================================== */

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

.portfolio-visual-frame {
    width: min(100%, 520px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.portfolio-visual-topbar {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 22px;
    color: #849087;
    background: #f4f7f5;
    border-bottom: 1px solid var(--border);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-visual-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 360px;
}

.portfolio-visual-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    background: var(--white);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.large-block {
    background:
        linear-gradient(
            145deg,
            #18211c 0%,
            #22382a 100%
        );
}

.large-block strong,
.large-block small {
    color: var(--white);
}

.visual-block-label {
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.large-block .visual-block-label {
    color: #65b869;
}

.portfolio-visual-block strong {
    margin-top: 10px;
    color: var(--dark);
    font-family: "Poppins", sans-serif;
    font-size: 1.25rem;
    line-height: 1.4;
}

.portfolio-visual-block small {
    margin-top: 8px;
    color: var(--text);
    font-size: 0.7rem;
}

.portfolio-visual-stack {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
}

.portfolio-visual-stack .portfolio-visual-block {
    border-right: 0;
}


/* ==================================================
   INTRO
================================================== */

.portfolio-intro-section {
    padding: 105px 0;
    background: var(--white);
}

.portfolio-intro-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    align-items: start;
}

.portfolio-intro-grid h2 {
    max-width: 620px;
}

.portfolio-intro-grid > div:last-child {
    padding-top: 42px;
}

.portfolio-intro-grid > div:last-child p {
    max-width: 650px;
    margin-bottom: 17px;
    font-size: 1.02rem;
    line-height: 1.9;
}


/* ==================================================
   COMMON HEADINGS
================================================== */

.portfolio-section-heading {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    align-items: end;
    gap: 80px;
    margin-bottom: 58px;
}

.portfolio-section-heading h2 {
    max-width: 720px;
}

.portfolio-section-heading > p {
    max-width: 510px;
    line-height: 1.85;
}

.centered-portfolio-heading {
    max-width: 790px;
    margin: 0 auto 58px;
    text-align: center;
}

.centered-portfolio-heading > p:last-child {
    max-width: 650px;
    margin: 20px auto 0;
    line-height: 1.85;
}


/* ==================================================
   SOFTWARE WORK
================================================== */

.software-work-section {
    padding: 115px 0;
    background: var(--off-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.software-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.featured-project-card {
    background: var(--white);
    border: 1px solid var(--border);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.featured-project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.featured-project-image {
    height: 300px;
    padding: 16px;
    background: #eef3f0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.featured-project-card:hover .featured-project-image img {
    transform: scale(1.025);
}

.featured-project-content {
    padding: 30px;
}

.project-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.project-type {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-number {
    color: #aab4ae;
    font-size: 0.72rem;
    font-weight: 700;
}

.featured-project-content h3 {
    margin-top: 17px;
    font-size: 1.25rem;
    line-height: 1.45;
}

.featured-project-content > p {
    margin-top: 13px;
    font-size: 0.87rem;
    line-height: 1.8;
}

.project-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.project-platforms span {
    padding: 7px 10px;
    color: var(--dark);
    background: var(--primary-light);
    border-radius: 3px;
    font-size: 0.67rem;
    font-weight: 600;
}


/* ==================================================
   SOFTWARE SUMMARY
================================================== */

.software-summary-section {
    padding: 105px 0;
    background: var(--white);
}

.software-summary-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: start;
    gap: 85px;
}

.software-summary-heading h2 {
    max-width: 540px;
}

.software-summary-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.summary-item {
    min-height: 210px;
    padding: 29px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.summary-item span {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
}

.summary-item strong {
    display: block;
    margin-top: 23px;
    color: var(--dark);
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.summary-item p {
    margin-top: 10px;
    font-size: 0.84rem;
    line-height: 1.8;
}


/* ==================================================
   MARKETING WORK
================================================== */

.marketing-work-page-section {
    padding: 115px 0;
    background: #18211c;
}

.light-heading h2 {
    color: var(--white);
}

.light-heading > p {
    color: #aeb9b2;
}

.marketing-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.marketing-project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.13);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.marketing-project-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-6px);
}

.marketing-project-image {
    height: 310px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    overflow: hidden;
}

.marketing-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.marketing-project-card:hover .marketing-project-image img {
    transform: scale(1.025);
}

.marketing-project-content {
    padding: 29px;
}

.marketing-project-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #65b869;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketing-project-content h3 {
    margin-top: 17px;
    color: var(--white);
    font-size: 1.25rem;
}

.marketing-project-content p {
    margin-top: 13px;
    color: #aeb9b2;
    font-size: 0.87rem;
    line-height: 1.8;
}


/* ==================================================
   MARKETING CAPABILITIES
================================================== */

.marketing-capabilities-section {
    padding: 105px 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
}

.marketing-capabilities-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 85px;
}

.marketing-capabilities-heading h2 {
    max-width: 570px;
}

.marketing-capabilities-heading > p:last-child {
    max-width: 500px;
    margin-top: 22px;
    line-height: 1.85;
}

.marketing-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.marketing-capability-item {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marketing-capability-item span {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
}

.marketing-capability-item strong {
    color: var(--dark);
    font-size: 0.88rem;
}


/* ==================================================
   APPROACH
================================================== */

.portfolio-approach-section {
    padding: 115px 0;
    background: var(--white);
}

.portfolio-approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.approach-card {
    min-height: 270px;
    padding: 32px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.approach-card span {
    display: block;
    margin-bottom: 38px;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
}

.approach-card h3 {
    margin-bottom: 14px;
    font-size: 1.08rem;
}

.approach-card p {
    font-size: 0.85rem;
    line-height: 1.8;
}


/* ==================================================
   CORPORATE PROFILE
================================================== */

.portfolio-profile-section {
    padding: 95px 0;
    background: var(--primary);
}

.portfolio-profile-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 70px;
}

.portfolio-profile-content .section-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.portfolio-profile-content h2 {
    max-width: 730px;
    color: var(--white);
}

.portfolio-profile-content > p:last-child {
    max-width: 670px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.portfolio-profile-button {
    min-width: 245px;
    color: var(--primary);
    background: var(--white);
    border-color: var(--white);
}


/* ==================================================
   CTA
================================================== */

.portfolio-cta-section {
    padding: 100px 0;
    background: #edf3ef;
}

.portfolio-cta-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 70px;
}

.portfolio-cta-layout h2 {
    max-width: 760px;
}

.portfolio-cta-layout p:last-child {
    max-width: 660px;
    margin-top: 20px;
    line-height: 1.8;
}

.portfolio-cta-actions {
    min-width: 245px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1050px) {

    .portfolio-hero-grid {
        grid-template-columns: 1fr 0.85fr;
        gap: 50px;
    }

    .software-projects-grid,
    .marketing-projects-grid {
        gap: 20px;
    }

}


@media (max-width: 900px) {

    .portfolio-hero-section {
        padding: 80px 0;
    }

    .portfolio-hero-grid,
    .portfolio-intro-grid,
    .software-summary-grid,
    .marketing-capabilities-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .portfolio-section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-intro-grid > div:last-child {
        padding-top: 0;
    }

    .software-projects-grid,
    .marketing-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-project-card:last-child,
    .marketing-project-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 10px);
        justify-self: center;
    }

    .portfolio-approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-profile-layout,
    .portfolio-cta-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .portfolio-cta-actions {
        min-width: 0;
        max-width: 320px;
    }

}


@media (max-width: 620px) {

    .portfolio-hero-section,
    .portfolio-intro-section,
    .software-work-section,
    .software-summary-section,
    .marketing-work-page-section,
    .marketing-capabilities-section,
    .portfolio-approach-section,
    .portfolio-profile-section,
    .portfolio-cta-section {
        padding: 75px 0;
    }

    .portfolio-hero-content h1 {
        font-size: clamp(2.45rem, 11vw, 3.5rem);
    }

    .portfolio-hero-actions {
        flex-direction: column;
    }

    .portfolio-hero-visual {
        display: none;
    }

    .software-projects-grid,
    .marketing-projects-grid,
    .software-summary-items,
    .marketing-capabilities-grid,
    .portfolio-approach-grid {
        grid-template-columns: 1fr;
    }

    .featured-project-card:last-child,
    .marketing-project-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .featured-project-image,
    .marketing-project-image {
        height: 260px;
    }

    .summary-item {
        min-height: 180px;
    }

    .approach-card {
        min-height: 230px;
    }

    .portfolio-cta-actions {
        max-width: none;
    }

}