/*
=========================================================
AI DIGITAL WORK - PORTFOLIO CONTENT ONLY
IMPORTANT:
- No Header / Navbar styles in this file.
- No Footer styles in this file.
- No global body / a / h1 / font overrides in this file.
- Shared Header + Footer are controlled only by style.css/responsive.css.
=========================================================
*/

.portfolio-page .wrap {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.portfolio-page .hero {
    padding: 48px 0 34px;
    background: radial-gradient(circle at 72% 45%, rgba(0, 128, 255, 0.14), transparent 30%);
}

.portfolio-page .heroGrid {
    min-height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.portfolio-page .crumb {
    margin: 0 0 35px;
    color: #8db3d9;
    font-size: 13px;
}

.portfolio-page .tag {
    color: #159cff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.portfolio-page .heroGrid h1 {
    margin: 12px 0 20px;
    font-size: 58px;
    line-height: 1.04;
}

.portfolio-page .heroGrid em, .portfolio-page .cta em {
    color: #168cff;
    font-style: normal;
}

.portfolio-page .intro {
    color: #adc0d6;
    line-height: 1.7;
}

.portfolio-page .art {
    height: 250px;
    position: relative;
}

.portfolio-page .screen, .portfolio-page .smallbox, .portfolio-page .round {
    position: absolute;
    border: 1px solid #2467b6;
    background: linear-gradient(145deg, #0b2b54, #071a34);
    box-shadow: 0 25px 50px rgba(0, 80, 255, 0.15);
}

.portfolio-page .screen {
    width: 55%;
    height: 175px;
    left: 23%;
    top: 30px;
    padding: 25px;
    border-radius: 10px;
    transform: skewY(-3deg);
}

.portfolio-page .screen i {
    display: block;
    width: 60px;
    height: 7px;
    margin-bottom: 10px;
    background: #126cf3;
}

.portfolio-page .chart {
    width: 135px;
    height: 55px;
    margin: 25px 0 0 75px;
    border-top: 4px solid #168cff;
    border-right: 4px solid #168cff;
    transform: skewY(-24deg);
}

.portfolio-page .smallbox {
    width: 90px;
    height: 80px;
    left: 13%;
    top: 115px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #168cff;
    font-size: 35px;
}

.portfolio-page .round {
    width: 95px;
    height: 130px;
    right: 9%;
    top: 95px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

.portfolio-page .round span {
    width: 56px;
    height: 56px;
    border: 13px solid #09bce9;
    border-right-color: #1764ee;
    border-radius: 50%;
}

.portfolio-page .filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0 28px;
    padding: 17px;
    border: 1px solid #183451;
    border-radius: 9px;
    background: #05162a;
}

.portfolio-page .filters button, .portfolio-page .more button {
    padding: 12px 20px;
    border: 1px solid #1b3857;
    border-radius: 6px;
    background: #091d34;
    color: #e5eef8;
    cursor: pointer;
}

.portfolio-page .filters .on {
    border-color: #168cff;
    background: linear-gradient(110deg, #1266f4, #168cff);
}

.portfolio-page .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.portfolio-page .grid article {
    overflow: hidden;
    border: 1px solid #193956;
    border-radius: 10px;
    background: #091d34;
    transition: 0.25s;
}

.portfolio-page .grid article:hover {
    border-color: #1b77c2;
    transform: translateY(-5px);
}

.portfolio-page .visual {
    height: 185px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0b2848, #07192e);
}

.portfolio-page .copy {
    padding: 18px 17px 21px;
}

.portfolio-page .copy small, .portfolio-page .copy a {
    color: #16aaf2;
    font-size: 12px;
}

.portfolio-page .copy h3 {
    margin: 11px 0;
    font-size: 18px;
}

.portfolio-page .copy p {
    min-height: 40px;
    color: #a8bfd7;
    font-size: 13px;
    line-height: 1.5;
}

.portfolio-page .copy a {
    font-weight: 700;
}

.portfolio-page .site {
    height: 157px;
    margin: 14px;
    padding: 40px 15px;
    border-radius: 5px;
    background: #eef6ff;
    color: #18263a;
}

.portfolio-page .browser {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 18px;
    background: #cfddea;
}

.portfolio-page .site strong {
    font-size: 16px;
}

.portfolio-page .metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.portfolio-page .metric b {
    color: #06bce7;
    font-size: 46px;
}

.portfolio-page .metric span {
    color: #8cb6df;
}

.portfolio-page .green b {
    color: #31dc72;
}

.portfolio-page .bars {
    height: 70px;
    position: absolute;
    right: 25px;
    bottom: 35px;
    display: flex;
    align-items: end;
    gap: 5px;
}

.portfolio-page .bars i {
    width: 9px;
    height: 25px;
    background: #168cff;
}

.portfolio-page .bars i:nth-child(2) {
    height: 38px;
}

.portfolio-page .bars i:nth-child(3) {
    height: 52px;
}

.portfolio-page .bars i:nth-child(4) {
    height: 68px;
}

.portfolio-page .rise {
    width: 120px;
    height: 45px;
    margin-top: 15px;
    border-top: 3px solid #16a8ff;
    transform: skewY(-18deg);
}

.portfolio-page .dashboard i, .portfolio-page .portfolio-brand i, .portfolio-page .portfolio-brand b {
    min-height: 52px;
    border-radius: 4px;
    background: #edf6ff;
}

.portfolio-page .portfolio-brand b {
    display: grid;
    place-items: center;
    color: #18263a;
}

.portfolio-page .phones i {
    width: 82px;
    height: 142px;
    position: absolute;
    left: 70px;
    top: 22px;
    border: 5px solid #edf6ff;
    border-radius: 14px;
    background: #14365d;
}

.portfolio-page .phones i + i {
    left: 140px;
    top: 34px;
    transform: rotate(5deg);
}

.portfolio-page .more {
    padding: 27px;
    text-align: center;
}

.portfolio-page .more button {
    min-width: 185px;
    border-color: #167ee9;
}

.portfolio-page .resultBox {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    overflow: hidden;
    margin-bottom: 55px;
    border: 1px solid #193a59;
    border-radius: 10px;
    background: #081c32;
}

.portfolio-page .stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 35px 25px;
}

.portfolio-page .stats div {
    border-right: 1px solid #173552;
    text-align: center;
}

.portfolio-page .stats div:last-child {
    border: 0;
}

.portfolio-page .stats b {
    display: block;
    font-size: 29px;
}

.portfolio-page .stats span {
    color: #9db5ce;
    font-size: 11px;
}

.portfolio-page .cta {
    padding: 28px 32px;
    border-left: 1px solid #173552;
}

.portfolio-page .cta small {
    color: #159cff;
    font-weight: 700;
}

.portfolio-page .cta h2 {
    margin: 10px 0;
    font-size: 28px;
}

.portfolio-page .cta p {
    color: #a8bfd7;
    font-size: 13px;
}

.portfolio-page .cta a {
    margin: 8px 6px 0 0;
    font-size: 12px;
}

.portfolio-page .hero {
    position: relative;
    overflow: hidden;
    padding-top: 58px;
    padding-bottom: 46px;
}

.portfolio-page .heroGrid {
    min-height: 390px;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 70px;
}

.portfolio-page .hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.portfolio-page .hero-proof span {
    padding: 6px 11px;
    border: 1px solid rgba(51, 111, 169, 0.55);
    border-radius: 999px;
    background: rgba(8, 29, 53, 0.55);
    color: #9fc4e9;
    font-size: 11px;
}

.portfolio-page .art {
    height: 310px;
}

.portfolio-page .filters {
    gap: 8px;
    padding: 11px 13px;
}

.portfolio-page .filters button {
    min-height: 36px;
    padding: 0 15px;
    font-size: 13px;
}

.portfolio-page .visual.site {
    height: 185px;
    margin: 0;
    padding: 0;
    color: #f4f8ff;
    background: linear-gradient(145deg, #102d52, #07192e);
}

.portfolio-page .browser {
    top: 13px;
    left: 13px;
    right: 13px;
    height: 22px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid rgba(143, 180, 220, 0.13);
    border-radius: 6px 6px 0 0;
    background: #183451;
}

.portfolio-page .browser span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #6f8cac;
}

.portfolio-page .preview-copy {
    position: absolute;
    top: 56px;
    left: 24px;
    z-index: 2;
}

.portfolio-page .preview-copy small {
    display: block;
    margin-bottom: 8px;
    color: #6cccf2;
    font-size: 7px;
    letter-spacing: 1px;
}

.portfolio-page .preview-copy strong {
    display: block;
    color: #f3f8ff;
    font-size: 16px;
    line-height: 1.35;
}

.portfolio-page .preview-copy i {
    display: block;
    width: 42px;
    height: 6px;
    margin-top: 13px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1266f4, #09bfe8);
}

.portfolio-page .preview-product {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 76px;
    height: 96px;
    border: 1px solid rgba(126, 180, 232, 0.18);
    border-radius: 10px;
    background: linear-gradient(145deg, #224b79, #10233e);
    transform: rotate(4deg);
    box-shadow: -15px 15px 30px rgba(0, 0, 0, 0.20);
}

.portfolio-page .preview-building {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 88px;
    height: 102px;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(145deg, #214d73, #10263e);
    box-shadow: -14px 15px 30px rgba(0, 0, 0, 0.18);
}

.portfolio-page .dashboard i, .portfolio-page .portfolio-brand i, .portfolio-page .portfolio-brand b {
    border: 1px solid rgba(118, 184, 238, 0.12);
    background: linear-gradient(145deg, #173a5e, #10233d);
}

.portfolio-page .portfolio-brand b {
    color: #8dd9f5;
}

@media (max-width: 950px) {
    .portfolio-page .heroGrid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}

@media (max-width: 600px) {
    .portfolio-page .hero {
        padding-top: 38px;
        padding-bottom: 30px;
    }

    .portfolio-page .heroGrid {
        min-height: auto;
    }

    .portfolio-page .filters {
        justify-content: flex-start;
        gap: 7px;
        padding: 10px;
    }

    .portfolio-page .filters button {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

}

/* =========================================================
   PORTFOLIO FINAL SHARED-LAYOUT POLISH
   ========================================================= */
.portfolio-page .hero {
    padding-top: 42px !important;
    padding-bottom: 34px !important;
}

.portfolio-page .heroGrid {
    min-height: 330px !important;
    grid-template-columns: 1.05fr 0.95fr !important;
    gap: 46px !important;
}

.portfolio-page .crumb {
    margin-bottom: 22px !important;
}

.portfolio-page .art {
    height: 275px !important;
}

.portfolio-page .screen {
    width: 68% !important;
    height: 190px !important;
    left: 15% !important;
    top: 28px !important;
}

.portfolio-page .smallbox {
    left: 3% !important;
    top: 126px !important;
}

.portfolio-page .round {
    right: 0 !important;
    top: 104px !important;
}

.portfolio-page .hero-proof {
    margin-top: 18px !important;
}

.portfolio-page .filters {
    margin-top: 10px !important;
    margin-bottom: 24px !important;
}

.portfolio-page .grid article {
    min-height: 100%;
}

.portfolio-page .visual {
    height: 178px !important;
}

.portfolio-page .site {
    height: 178px !important;
}

.portfolio-page .phones i {
    top: 18px !important;
}

.portfolio-page .more {
    padding-top: 20px !important;
    padding-bottom: 22px !important;
}

.portfolio-page .resultBox {
    align-items: stretch;
}

.portfolio-page .cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-page .cta a {
    min-height: 40px;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.portfolio-page .cta .blue, .portfolio-page .cta .border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure portfolio uses the exact same shared footer layout as Home */
@media (max-width: 950px) {
    .portfolio-page .hero {
        padding-top: 34px !important;
        padding-bottom: 28px !important;
    }

    .portfolio-page .heroGrid {
        min-height: auto !important;
        gap: 18px !important;
    }

    .portfolio-page .art {
        height: 235px !important;
    }

}

@media (max-width: 600px) {
    .portfolio-page .hero {
        padding-top: 28px !important;
        padding-bottom: 24px !important;
    }

    .portfolio-page .heroGrid {
        grid-template-columns: 1fr !important;
    }

    .portfolio-page .art {
        height: 220px !important;
    }

    .portfolio-page .filters {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        scrollbar-width: none;
    }

    .portfolio-page .filters::-webkit-scrollbar {
        display: none;
    }

    .portfolio-page .filters button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

}

/*
=========================================================
PORTFOLIO RESPONSIVE FINAL FIX
Desktop design remains unchanged.
=========================================================
*/

body.portfolio-page {
    overflow-x: hidden;
}

@media (max-width: 950px) {
    .portfolio-page .wrap {
        width: calc(100% - 32px);
        max-width: 100%;
    }

    .portfolio-page .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .portfolio-page .resultBox {
        grid-template-columns: 1fr;
    }

    .portfolio-page .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-page .stats div:nth-child(2) {
        border-right: 0;
    }

    .portfolio-page .stats div:nth-child(-n+2) {
        border-bottom: 1px solid #173552;
    }

    .portfolio-page .cta {
        border-left: 0;
        border-top: 1px solid #173552;
    }
}

@media (max-width: 600px) {
    .portfolio-page .wrap {
        width: calc(100% - 28px);
        max-width: 100%;
    }

    .portfolio-page .filters {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portfolio-page .filters::-webkit-scrollbar {
        display: none;
    }

    .portfolio-page .filters button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .portfolio-page .grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
        width: 100%;
    }

    .portfolio-page .grid article {
        width: 100%;
        min-width: 0;
    }

    .portfolio-page .visual {
        width: 100%;
        height: 180px !important;
    }

    .portfolio-page .copy {
        padding: 16px;
    }

    .portfolio-page .copy h3 {
        font-size: 19px;
        line-height: 1.35;
    }

    .portfolio-page .copy p {
        min-height: 0;
        font-size: 13px;
        line-height: 1.65;
    }

    .portfolio-page .more {
        padding: 20px 0 24px;
    }

    .portfolio-page .resultBox {
        grid-template-columns: 1fr !important;
        width: 100%;
        margin-bottom: 38px;
    }

    .portfolio-page .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 0;
    }

    .portfolio-page .stats div {
        min-width: 0;
        padding: 20px 8px;
        border-right: 1px solid #173552;
        border-bottom: 1px solid #173552;
    }

    .portfolio-page .stats div:nth-child(2n) {
        border-right: 0;
    }

    .portfolio-page .stats div:nth-child(n+3) {
        border-bottom: 0;
    }

    .portfolio-page .stats b {
        font-size: 26px;
        line-height: 1.2;
    }

    .portfolio-page .stats span {
        display: block;
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.4;
    }

    .portfolio-page .cta {
        width: 100%;
        padding: 24px 20px;
        border-left: 0;
        border-top: 1px solid #173552;
    }

    .portfolio-page .cta h2 {
        font-size: 25px;
        line-height: 1.25;
    }

    .portfolio-page .cta p {
        line-height: 1.6;
    }
}

/*
=========================================================
PORTFOLIO PROJECT IMAGE CARDS
Optimized for 600x400 WebP thumbnails.
=========================================================
*/

.portfolio-page .project-image {
    width: 100%;
    height: 178px !important;
    overflow: hidden;
    background: #0b2848;
}

.portfolio-page .project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.portfolio-page .grid article:hover .project-image img {
    transform: scale(1.025);
}

@media (max-width: 600px) {
    .portfolio-page .project-image {
        height: auto !important;
        aspect-ratio: 3 / 2;
    }

    .portfolio-page .project-image img {
        aspect-ratio: 3 / 2;
    }
}


/*
=========================================================
DIGITAL PROFILE + CTA BUTTON FIX
Built on top of the last working portfolio CSS.
=========================================================
*/

.portfolio-page .cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.portfolio-page .cta-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.portfolio-page .cta-actions .blue {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    color: #ffffff;
}

.portfolio-page .cta-actions .border {
    border: 1px solid rgba(73, 139, 236, 0.55);
    background: rgba(11, 29, 53, 0.45);
    color: #ffffff;
}

.portfolio-page .cta-actions a:hover {
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .portfolio-page .cta-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .portfolio-page .cta-actions a {
        width: 100%;
    }
}
