/* 1. PORTFOLIO PAGE BASE */

.portfolio-page {
    background: #f8fbff;
    color: #101a3b;
    min-height: 80vh;
    padding: 36px 0 75px;
    font-family: 'DM Sans', sans-serif;
}

.portfolio-page h1,
.portfolio-page h2,
.portfolio-page h3 {
    color: #0a1537;
}

.portfolio-page a {
    text-decoration: none;
}

/* 2. PORTFOLIO INTRODUCTION */

.portfolio-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 45px;
    padding-bottom: 35px;
}

.p-kicker {
    font-size: 12px;
    letter-spacing: .2em;
    font-weight: 800;
    color: #1674e8;
    margin-bottom: 16px;
}

.portfolio-intro h1 {
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 1.1;
    letter-spacing: -.045em;
    margin: 0 0 20px;
}

.portfolio-intro h1 span {
    background: linear-gradient(110deg, #058fec, #7523e8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portfolio-intro p:not(.p-kicker) {
    max-width: 630px;
    color: #566787;
    line-height: 1.8;
}

.intro-mark {
    font-weight: 800;
    font-size: clamp(75px, 11vw, 170px);
    letter-spacing: -.12em;
    background: linear-gradient(125deg, #bd13ef, #1660e8, #00b5f3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 25px;
}

/* 3. PORTFOLIO FILTERS */

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 25px;
}

.filter {
    border: 1px solid #e2e9f7;
    background: white;
    color: #344466;
    border-radius: 999px;
    padding: 12px 23px;
    font: 600 14px 'DM Sans', sans-serif;
    cursor: pointer;
}

.filter.active,
.filter:hover {
    color: white;
    background: linear-gradient(110deg, #8b19ef, #008df1);
    border-color: transparent;
}

/* 4. PORTFOLIO PROJECT CARDS */

.portfolio-items {
    display: grid;
    gap: 17px;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 250px 1fr 48px;
    align-items: center;
    gap: 25px;
    background: #fff;
    border: 1px solid #e4eafa;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 8px 30px #0c3d8a09;
    color: #182849;
    transition: transform .2s, box-shadow .2s;
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px #103b9a18;
}

.portfolio-item h2 {
    font-size: 24px;
    margin: 12px 0 4px;
}

.portfolio-item p {
    color: #546582;
    font-size: 14px;
    line-height: 1.65;
    margin: 6px 0;
}

.portfolio-item .subtitle {
    font-weight: 600;
    color: #324e80;
}

.portfolio-item .role-note {
    font-size: 12px;
    color: #65738b;
}

.portfolio-item[hidden] {
    display: none !important;
}

/* 5. PROJECT VISUAL PLACEHOLDERS */

.project-placeholder,
.detail-art {
    min-height: 185px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 80% 25%, #d5c7ff, transparent 48%),
        linear-gradient(135deg, #e5f6ff, #edf0ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #365dbe;
}

.project-placeholder span,
.detail-art span {
    font-size: 65px;
    font-weight: 800;
    letter-spacing: -.08em;
    background: linear-gradient(130deg, #9d16e8, #008bf3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-placeholder small,
.detail-art small {
    font-size: 12px;
    color: #62769a;
}

/* 6. PROJECT BADGES AND TECHNOLOGIES */

.pill {
    display: inline-block;
    background: #eeeaff;
    color: #6239b9;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 13px;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}

.tech-pills span {
    background: #edf4ff;
    color: #175dc2;
    padding: 6px 11px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}

.tech-pills.large span {
    font-size: 14px;
    padding: 10px 16px;
}

/* 7. PROJECT LINKS AND ACTIONS */

.round-arrow {
    border-radius: 50%;
    background: #f2eaff;
    color: #6221d7;
    font-size: 25px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
}

.project-title-link {
    color: inherit;
}

.case-link {
    display: inline-block;
    margin-top: 15px;
    color: #47c5ff;
    font-weight: 700;
}

.back-projects a,
.linkedin-row a {
    color: #225ed1;
    font-weight: 700;
}

/* 8. PORTFOLIO CALL TO ACTION */

.portfolio-cta {
    background: linear-gradient(110deg, #e9e2ff, #e1f5ff);
    border-radius: 24px;
    margin-top: 36px;
    padding: 40px;
}

.portfolio-cta h2 {
    font-size: 28px;
}

.portfolio-cta p {
    color: #566787;
    margin: 10px 0 24px;
}

/* 9. PROJECT DETAIL BREADCRUMBS */

.breadcrumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #5b6b86;
    margin: 8px 0 36px;
}

.breadcrumbs a {
    color: #276bc3;
}

/* 10. PROJECT DETAIL HERO */

.detail-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 28px;
}

.detail-hero h1 {
    font-size: clamp(36px, 4vw, 56px);
    margin: 15px 0 8px;
}

.detail-hero h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.detail-hero p {
    color: #586989;
    line-height: 1.8;
}

.detail-art {
    min-height: 300px;
}

.detail-art span {
    font-size: 110px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.outline-light {
    border: 1px solid #bfcdea;
    border-radius: 12px;
    padding: 13px 20px;
    color: #1d4e9b;
}

/* 11. PROJECT FACTS */

.fact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 32px 0;
}

.fact-grid > div {
    background: white;
    border: 1px solid #e5eafa;
    border-radius: 15px;
    padding: 20px;
    display: grid;
    gap: 7px;
}

.fact-grid small {
    color: #70809b;
}

.fact-grid strong {
    font-size: 14px;
    line-height: 1.5;
}

/* 12. PROJECT DETAIL NAVIGATION */

.detail-tabs {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    border-bottom: 1px solid #dfe7f5;
    padding: 18px 0;
    margin: 25px 0;
}

.detail-tabs a {
    white-space: nowrap;
    color: #31518c;
    font-weight: 700;
    font-size: 14px;
}

.detail-tabs a:hover {
    color: #7e21e8;
}

/* 13. PROJECT DETAIL CONTENT */

.detail-content {
    display: grid;
    gap: 22px;
}

.detail-panel {
    background: white;
    border: 1px solid #e6ecf7;
    border-radius: 20px;
    padding: 30px;
    scroll-margin-top: 100px;
}

.detail-panel h2 {
    font-size: 25px;
    margin: 0 0 18px;
}

.detail-panel > p:not(.p-kicker) {
    line-height: 1.8;
    color: #536582;
}

/* 14. PROJECT FEATURE LIST */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-list > div {
    background: #f6f9ff;
    border: 1px solid #e8eef9;
    padding: 17px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.feature-check {
    color: #1789ed;
    margin-right: 12px;
}

/* 15. PROJECT SCREENSHOT GALLERY */

.empty-gallery {
    border: 1px dashed #bdcce6;
    border-radius: 16px;
    background: #f9fbff;
    padding: 45px 20px;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 8px;
}

.empty-gallery > span {
    font-size: 40px;
    color: #5a82db;
}

.empty-gallery p {
    max-width: 470px;
    color: #6b7b94;
    line-height: 1.6;
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.shot-grid a {
    display: grid;
    gap: 8px;
    color: #2555a2;
    font-weight: 600;
}

.shot-grid img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #dce5f3;
}

/* 16. PORTFOLIO TABLET RESPONSIVE */

@media (max-width: 850px) {

    .portfolio-item {
        grid-template-columns: 180px 1fr 35px;
        gap: 16px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-art {
        min-height: 230px;
    }

    .intro-mark {
        display: none;
    }

}

/* 17. PORTFOLIO MOBILE RESPONSIVE */

@media (max-width: 600px) {

    .portfolio-page {
        padding-top: 20px;
    }

    .portfolio-intro {
        padding-top: 25px;
    }

    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-placeholder {
        min-height: 180px;
    }

    .round-arrow {
        justify-self: end;
    }

    .portfolio-item h2 {
        font-size: 22px;
    }

    .fact-grid {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .shot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-panel {
        padding: 20px;
    }

    .portfolio-cta {
        padding: 26px;
    }

    .detail-tabs {
        gap: 18px;
    }

    .detail-art span {
        font-size: 75px;
    }

}

/* 18. PORTFOLIO HERO VISUAL LAYOUT */

.portfolio-intro-copy {
    flex: 1 1 55%;
    min-width: 0;
}

.portfolio-hero-visual {
    position: relative;
    isolation: isolate;
    flex: 0 1 470px;
    width: min(100%, 470px);
    height: 365px;
    min-width: 0;
    display: grid;
    place-items: center;
}

.portfolio-visual-glow {
    position: absolute;
    inset: 15% 5%;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(126, 85, 255, .17),
        rgba(16, 151, 245, .08) 45%,
        transparent 72%
    );
    filter: blur(10px);
    z-index: -1;
}

/* 19. PORTFOLIO HERO ORBITS */

.portfolio-orbit {
    position: absolute;
    border: 1px solid rgba(90, 119, 235, .17);
    border-radius: 50%;
    pointer-events: none;
}

.portfolio-orbit-one {
    width: 82%;
    height: 70%;
    transform: rotate(-18deg);
}

.portfolio-orbit-two {
    width: 67%;
    height: 85%;
    transform: rotate(29deg);
}

/* 20. PORTFOLIO HERO CENTER CARD */

.portfolio-visual-center {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 225px;
    min-height: 190px;
    padding: 24px 15px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(221, 228, 255, .9);
    box-shadow: 0 18px 55px rgba(48, 61, 137, .12);
    text-align: center;
}

.portfolio-visual-center img {
    width: 160px;
    max-width: 100%;
    height: 96px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.portfolio-visual-center strong {
    font-size: 22px;
    letter-spacing: -.04em;
    color: #111c3d;
    white-space: nowrap;
}

.portfolio-visual-center > span {
    font-size: 9px;
    letter-spacing: .22em;
    font-weight: 800;
    color: #6173a2;
    margin-top: 8px;
}

/* 21. PORTFOLIO FLOATING CARDS */

.portfolio-visual-card {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    width: 128px;
    min-height: 91px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid #e4eafd;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(42, 62, 130, .11);
    transform: rotate(var(--card-rotate, 0deg));
    transition: transform .25s, box-shadow .25s;
}

.portfolio-visual-card:hover {
    transform: translateY(-5px) rotate(0deg);
    box-shadow: 0 17px 35px rgba(42, 62, 130, .16);
}

.portfolio-card-symbol {
    font-size: 22px;
    line-height: 1;
    color: #2785f0;
    font-weight: 800;
}

.portfolio-visual-card strong {
    font-size: 12px;
    line-height: 1.25;
    color: #1a2749;
}

.portfolio-visual-card i {
    display: block;
    width: 50%;
    height: 4px;
    border-radius: 5px;
    background: linear-gradient(90deg, #0aa7f4, #8d35e9);
    margin-top: 3px;
}

/* 22. FLOATING CARD POSITIONS */

.portfolio-card-web {
    left: 0;
    top: 18px;
    --card-rotate: -6deg;
}

.portfolio-card-business {
    right: 0;
    top: 24px;
    --card-rotate: 5deg;
}

.portfolio-card-erp {
    left: 0;
    bottom: 24px;
    --card-rotate: 4deg;
}

.portfolio-card-custom {
    right: 0;
    bottom: 19px;
    --card-rotate: -5deg;
}

.portfolio-card-business .portfolio-card-symbol,
.portfolio-card-custom .portfolio-card-symbol {
    color: #8c3ee8;
}

/* 23. PORTFOLIO CODE CHIP */

.portfolio-code-chip {
    position: absolute;
    z-index: 1;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border-radius: 9px;
    background: #17254c;
    color: #e8edff;
    box-shadow: 0 8px 20px #17254c20;
    white-space: nowrap;
    font-size: 11px;
}

.portfolio-code-dots {
    color: #9d67ff;
    font-size: 8px;
    letter-spacing: 2px;
}

.portfolio-code-chip code {
    font-size: 11px;
}

/* 24. HERO VISUAL TABLET RESPONSIVE */

@media (max-width: 900px) {

    .portfolio-intro {
        flex-wrap: wrap;
    }

    .portfolio-intro-copy {
        flex-basis: 100%;
    }

    .portfolio-hero-visual {
        margin: 0 auto;
        flex-basis: 470px;
    }

}

/* 25. HERO VISUAL MOBILE RESPONSIVE */

@media (max-width: 540px) {

    .portfolio-hero-visual {
        height: 315px;
        width: 100%;
    }

    .portfolio-visual-center {
        width: 175px;
        min-height: 155px;
        padding: 14px 10px;
    }

    .portfolio-visual-center img {
        width: 130px;
        height: 78px;
    }

    .portfolio-visual-center strong {
        font-size: 17px;
    }

    .portfolio-visual-center > span {
        font-size: 7px;
    }

    .portfolio-visual-card {
        width: 98px;
        min-height: 78px;
        padding: 10px;
    }

    .portfolio-visual-card strong {
        font-size: 10px;
    }

    .portfolio-card-symbol {
        font-size: 18px;
    }

    .portfolio-code-chip {
        bottom: 0;
    }

    .portfolio-card-web,
    .portfolio-card-business {
        top: 9px;
    }

    .portfolio-card-erp,
    .portfolio-card-custom {
        bottom: 20px;
    }

}

/* 26. REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .portfolio-visual-card {
        transition: none;
    }

}