/* ==========================================================================
   3D Design Layer — Web Artisan Infotech
   Loaded after style.css. Pure CSS 3D + small JS (3d.js) for tilt & reveal.
   ========================================================================== */

:root {
    --p1: #2563EB;
    --p2: #4F46E5;
    --p3: #06B6D4;
    --ink: #0F172A;
    --muted: #64748B;
    --surface: #ffffff;
    --soft: #F5F7FF;
    --depth-1: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .05);
    --depth-2: 0 10px 25px -8px rgba(30, 41, 99, .18), 0 4px 10px -4px rgba(30, 41, 99, .10);
    --depth-3: 0 30px 60px -15px rgba(30, 41, 99, .30), 0 18px 30px -18px rgba(30, 41, 99, .25);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

body {
    color: var(--ink);
    background: var(--surface);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }

.text-gradient {
    background: linear-gradient(120deg, var(--p1) 0%, var(--p2) 55%, var(--p3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Navbar: floating glass ---------- */
.navbar.nav-glass {
    background: rgba(255, 255, 255, .72) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(99, 102, 241, .10);
    box-shadow: 0 8px 30px -12px rgba(30, 41, 99, .18) !important;
}

/* ---------- 3D extruded buttons ---------- */
.btn-primary {
    background: linear-gradient(180deg, #3B82F6 0%, var(--p1) 100%);
    border: 0;
    box-shadow: 0 5px 0 #1E3A8A, 0 12px 22px -6px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
    transform: translateY(0);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(180deg, #4F8DF7 0%, #2B6BF0 100%);
    box-shadow: 0 7px 0 #1E3A8A, 0 18px 28px -8px rgba(37, 99, 235, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(4px) !important;
    box-shadow: 0 1px 0 #1E3A8A, 0 4px 10px -4px rgba(37, 99, 235, .5) !important;
}

.btn-outline-primary {
    background: #fff;
    border: 1.5px solid rgba(37, 99, 235, .35);
    box-shadow: 0 5px 0 rgba(37, 99, 235, .22), 0 12px 20px -10px rgba(30, 41, 99, .25);
}
.btn-outline-primary:hover {
    background: #fff;
    color: var(--p1);
    border-color: var(--p1);
    box-shadow: 0 7px 0 rgba(37, 99, 235, .3), 0 16px 24px -10px rgba(30, 41, 99, .3);
    transform: translateY(-2px);
}
.btn-outline-primary:active {
    transform: translateY(4px) !important;
    box-shadow: 0 1px 0 rgba(37, 99, 235, .3) !important;
}

/* ---------- Section headings ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--p1);
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .15);
    padding: .4rem .9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}
.section-sub {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin-inline: auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-3d {
    position: relative;
    overflow: hidden;
    padding: 110px 0 140px;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(99, 102, 241, .22), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(6, 182, 212, .14), transparent 60%),
        linear-gradient(180deg, #F5F7FF 0%, #EEF2FF 100%);
    isolation: isolate;
}

/* perspective grid floor */
.hero-floor {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: -10%;
    height: 70%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(79, 70, 229, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, .16) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(62deg);
    transform-origin: center top;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
    animation: floorMove 6s linear infinite;
}
@keyframes floorMove {
    from { background-position: 0 0; }
    to   { background-position: 0 60px; }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    z-index: -1;
    animation: blobFloat 14s ease-in-out infinite alternate;
}
.blob-1 { width: 380px; height: 380px; background: #818CF8; top: -120px; right: 8%; }
.blob-2 { width: 300px; height: 300px; background: #67E8F9; bottom: 10%; left: -80px; animation-delay: -5s; }
@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.12); }
}

.hero-title {
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 540px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    background: linear-gradient(180deg, #fff, #F8FAFC);
    border: 1px solid #E2E8F0;
    padding: .45rem .9rem;
    border-radius: 999px;
    box-shadow: 0 3px 0 #E2E8F0, 0 8px 16px -8px rgba(30, 41, 99, .25);
}
.hero-chip i { color: #10B981; font-size: .75rem; }

/* 3D stage holding the hero image */
.hero-scene {
    perspective: 1400px;
    position: relative;
}
.hero-stage {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(calc(-14deg + var(--ry))) rotateX(calc(6deg + var(--rx)));
    transition: transform .6s var(--ease-out);
    will-change: transform;
}
.hero-frame {
    position: relative;
    border-radius: 24px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .5));
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow:
        -30px 40px 80px -20px rgba(30, 41, 99, .45),
        0 0 0 1px rgba(99, 102, 241, .12);
    transform: translateZ(0);
}
.hero-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}
/* depth slab behind frame */
.hero-stage::before {
    content: "";
    position: absolute;
    inset: 6% -4% -6% 8%;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--p2), var(--p3));
    transform: translateZ(-80px);
    opacity: .9;
    filter: blur(.5px);
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 14px;
    box-shadow: var(--depth-3);
    white-space: nowrap;
}
.float-chip .chip-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--c1, var(--p1)), var(--c2, var(--p2)));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 10px -2px rgba(37, 99, 235, .5);
}
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.chip-1 { top: -22px; left: -40px; transform: translateZ(90px); animation: bob 5s ease-in-out infinite; }
.chip-2 { bottom: 18%; right: -46px; transform: translateZ(120px); animation: bob 6s ease-in-out -2s infinite; --c1: #10B981; --c2: #06B6D4; }
.chip-3 { bottom: -26px; left: 12%; transform: translateZ(70px); animation: bob 5.5s ease-in-out -1s infinite; --c1: #F59E0B; --c2: #EF4444; }
@keyframes bob {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -10px; }
}

/* Pure CSS cubes */
.cube-wrap {
    position: absolute;
    perspective: 800px;
    z-index: 0;
    pointer-events: none;
}
.cube {
    --s: 56px;
    width: var(--s);
    height: var(--s);
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-25deg) rotateY(35deg);
    animation: cubeSpin 16s linear infinite;
}
.cube span {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: linear-gradient(135deg, rgba(59, 130, 246, .9), rgba(79, 70, 229, .9));
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .25);
}
.cube span:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube span:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube span:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.85); }
.cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.85); }
.cube span:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.15); }
.cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.7); }
.cube.cube-cyan span { background: linear-gradient(135deg, rgba(34, 211, 238, .9), rgba(14, 165, 233, .9)); }
.cube.cube-sm { --s: 34px; animation-duration: 12s; animation-direction: reverse; }
.cube-a { top: 14%; left: 47%; }
.cube-b { bottom: 14%; left: 4%; }
.cube-c { top: 10%; right: 3%; }
@keyframes cubeSpin {
    from { transform: rotateX(-25deg) rotateY(0deg); }
    to   { transform: rotateX(-25deg) rotateY(360deg); }
}

/* ==========================================================================
   Tilt cards (generic)
   ========================================================================== */
[data-tilt] {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
}
.card-3d {
    position: relative;
    height: 100%;
    background: var(--surface);
    border: 1px solid #E8ECF6;
    border-radius: 22px;
    box-shadow: var(--depth-2);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s var(--ease-out), box-shadow .4s ease, border-color .4s ease;
}
.card-3d.is-tilting { transition: transform .08s linear, box-shadow .4s ease, border-color .4s ease; }
.card-3d:hover {
    box-shadow: var(--depth-3);
    border-color: rgba(99, 102, 241, .35);
}
/* moving glare */
.card-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(99, 102, 241, .12), transparent 45%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.card-3d:hover::after { opacity: 1; }
.card-3d .lift-1 { transform: translateZ(30px); }
.card-3d .lift-2 { transform: translateZ(55px); }

/* 3D icon tile */
.icon-3d {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: inline-grid;
    place-items: center;
    font-size: 1.75rem;
    color: #fff;
    background: linear-gradient(145deg, var(--c1, #3B82F6), var(--c2, #4F46E5));
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .45),
        inset 0 -6px 12px rgba(0, 0, 0, .18),
        0 6px 0 var(--c3, #3730A3),
        0 18px 28px -8px var(--glow, rgba(79, 70, 229, .55));
    position: relative;
}
.icon-3d::before { /* gloss */
    content: "";
    position: absolute;
    inset: 4px 4px 50% 4px;
    border-radius: 16px 16px 40% 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
}
.icon-3d i { position: relative; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.icon-3d.sm { width: 48px; height: 48px; border-radius: 14px; font-size: 1.15rem; }
.icon-3d.sm::before { border-radius: 12px 12px 40% 40%; }

/* color themes */
.t-blue   { --c1: #3B82F6; --c2: #2563EB; --c3: #1E40AF; --glow: rgba(37, 99, 235, .5); }
.t-violet { --c1: #8B5CF6; --c2: #6D28D9; --c3: #4C1D95; --glow: rgba(124, 58, 237, .5); }
.t-cyan   { --c1: #22D3EE; --c2: #0891B2; --c3: #155E75; --glow: rgba(8, 145, 178, .5); }
.t-indigo { --c1: #818CF8; --c2: #4F46E5; --c3: #3730A3; --glow: rgba(79, 70, 229, .5); }
.t-pink   { --c1: #F472B6; --c2: #DB2777; --c3: #9D174D; --glow: rgba(219, 39, 119, .45); }
.t-green  { --c1: #34D399; --c2: #059669; --c3: #065F46; --glow: rgba(5, 150, 105, .45); }
.t-amber  { --c1: #FBBF24; --c2: #F97316; --c3: #C2410C; --glow: rgba(249, 115, 22, .45); }
.t-slate  { --c1: #64748B; --c2: #1E293B; --c3: #0F172A; --glow: rgba(15, 23, 42, .5); }

/* ---------- Services ---------- */
.services-3d {
    background:
        radial-gradient(700px 400px at 50% 0%, rgba(99, 102, 241, .07), transparent 70%),
        #fff;
}
.service-3d { padding: 2.25rem 1.75rem 2rem; text-align: center; }
.service-3d h3 { font-size: 1.25rem; font-weight: 800; margin: 1.6rem 0 .75rem; }
.service-3d p { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .9rem;
    color: var(--p1);
    text-decoration: none;
}
.link-arrow i { transition: transform .3s var(--ease-out); }
.link-arrow:hover { color: var(--p2); }
.link-arrow:hover i, .card-3d:hover .link-arrow i { transform: translateX(5px); }

/* last odd service card centered on large screens is handled in markup */

/* ---------- Why us ---------- */
.why-3d {
    background: linear-gradient(180deg, var(--soft) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}
.why-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 18px;
}
.why-item h4 { font-size: 1rem; font-weight: 800; margin-bottom: .2rem; }
.why-item p { color: var(--muted); font-size: .9rem; margin: 0; }

.stack-scene { perspective: 1400px; padding: 30px; }
.stack-frame {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(calc(12deg + var(--ry))) rotateX(calc(4deg + var(--rx)));
    transition: transform .6s var(--ease-out);
}
.stack-frame .layer {
    position: absolute;
    inset: 0;
    border-radius: 24px;
}
.stack-frame .layer-1 { background: linear-gradient(135deg, #C7D2FE, #A5F3FC); transform: translateZ(-50px) translate(24px, 24px); }
.stack-frame .layer-2 { background: linear-gradient(135deg, var(--p2), var(--p3)); transform: translateZ(-100px) translate(48px, 48px); opacity: .85; }
.stack-frame .face {
    position: relative;
    padding: 10px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 30px 40px 70px -25px rgba(30, 41, 99, .45);
}
.stack-frame .face img { width: 100%; height: auto; display: block; border-radius: 16px; }
.stack-badge {
    position: absolute;
    top: 18px;
    right: -26px;
    transform: translateZ(80px);
}

/* ---------- Tech keycaps ---------- */
.tech-3d { background: #fff; }
.keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem;
    padding: 2rem;
    max-width: 920px;
    margin: 0 auto;
    border-radius: 28px;
    background: linear-gradient(180deg, #EEF2F7, #E2E8F0);
    box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 #CBD5E1, 0 30px 50px -25px rgba(30, 41, 99, .35);
    transform: perspective(1200px) rotateX(14deg);
}
.keycap {
    min-width: 132px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 1.2rem;
    font-weight: 700;
    color: var(--ink);
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    box-shadow:
        inset 0 1px 0 #fff,
        0 7px 0 #CBD5E1,
        0 12px 18px -6px rgba(15, 23, 42, .25);
    transition: transform .12s ease, box-shadow .12s ease;
    cursor: default;
    user-select: none;
}
.keycap i { font-size: 1.2rem; }
.keycap:hover {
    transform: translateY(5px);
    box-shadow: inset 0 1px 0 #fff, 0 2px 0 #CBD5E1, 0 4px 8px -4px rgba(15, 23, 42, .25);
}

/* ---------- Projects ---------- */
.projects-3d {
    background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}
.project-visual {
    position: relative;
    height: 200px;
    display: grid;
    place-items: center;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c1), var(--c2));
}
.project-visual::before { /* grid texture */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 26px 26px;
    transform: perspective(400px) rotateX(55deg) scale(1.6);
    transform-origin: bottom;
}
.project-visual .pv-icon {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 25px 35px -12px rgba(0, 0, 0, .45);
    animation: bob 4.5s ease-in-out infinite;
}
.project-visual .pv-shadow {
    position: absolute;
    bottom: 34px;
    width: 80px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    filter: blur(6px);
}
.project-body { padding: 1.5rem 1.6rem 1.75rem; }
.project-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 999px;
    color: var(--c2);
    background: color-mix(in srgb, var(--c1) 14%, transparent);
    margin-bottom: .75rem;
}
.project-body h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.project-body p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Blog cards on home ---------- */
.blog-3d .blog-img-wrapper { border-radius: 22px 22px 0 0; }

/* ---------- Footer ---------- */
.footer {
    position: relative;
    background:
        radial-gradient(800px 300px at 50% 0%, rgba(79, 70, 229, .25), transparent 70%),
        #0B1120 !important;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, .7), transparent);
}

/* ==========================================================================
   Scroll reveal (only when JS is active)
   ========================================================================== */
.js-3d .reveal {
    opacity: 0;
    transform: perspective(900px) translateY(40px) rotateX(-12deg);
    transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: var(--d, 0s);
}
.js-3d .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Responsive & accessibility
   ========================================================================== */
@media (max-width: 991px) {
    .hero-3d { padding: 70px 0 100px; }
    .hero-stage { transform: rotateY(calc(-6deg + var(--ry))) rotateX(calc(4deg + var(--rx))); margin-top: 1rem; }
    .chip-1 { left: -6px; }
    .chip-2 { right: -6px; }
    .cube-a { display: none; }
    .stack-frame { transform: rotateY(6deg) rotateX(3deg); }
    .stack-badge { right: -6px; }
}
@media (max-width: 768px) {
    .hero-3d .hero-content { text-align: center !important; }
    .hero-3d .hero-lead { margin-inline: auto; }
    .hero-3d .hero-tags, .hero-3d .hero-buttons { justify-content: center; }
}
@media (max-width: 576px) {
    .float-chip { padding: .5rem .7rem; font-size: .75rem; }
    .float-chip .chip-ico { width: 28px; height: 28px; }
    .float-chip small { display: none; }
    .chip-3, .cube-c { display: none; }
    .keyboard { padding: 1.25rem; gap: .8rem; transform: none; }
    .keycap { min-width: calc(50% - .5rem); }
    .stack-scene { padding: 10px 20px 30px 10px; }
    .hero-chip { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-floor, .blob, .cube, .float-chip, .project-visual .pv-icon { animation: none !important; }
    .js-3d .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Marketplace
   ========================================================================== */
.mp-hero { padding: 90px 0 110px; }
.mp-detail-hero { padding: 50px 0 100px; }
.mp-detail-hero .hero-title { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.mp-detail-hero .breadcrumb a { color: var(--p1); }

.mp-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 2.5rem;
}
.mp-filter {
    padding: .55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink);
    text-decoration: none;
    background: linear-gradient(180deg, #fff, #F8FAFC);
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 0 #E2E8F0, 0 10px 16px -10px rgba(30, 41, 99, .3);
    transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.mp-filter:hover { color: var(--p1); transform: translateY(-2px); }
.mp-filter.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, #3B82F6, var(--p1));
    box-shadow: 0 4px 0 #1E3A8A, 0 10px 18px -8px rgba(37, 99, 235, .6);
}

.mp-card { display: flex; flex-direction: column; color: var(--ink); }
.mp-card .project-body { display: flex; flex-direction: column; flex: 1; }
.mp-card h3 { color: var(--ink); }
.mp-card .link-arrow { margin-top: auto !important; padding-top: .75rem; }
.mp-visual { height: 210px; }
.mp-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.mp-card:hover .mp-cover { transform: scale(1.06); }
.mp-featured {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: .72rem;
    font-weight: 700;
    color: #92400E;
    background: #FEF3C7;
    padding: .3rem .65rem;
    border-radius: 999px;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35);
}
.mp-stack { display: flex; flex-wrap: wrap; gap: .4rem; }
.mp-stack span {
    font-size: .75rem;
    font-weight: 600;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: .2rem .55rem;
    border-radius: 8px;
}

.mp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2.5rem;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(500px 200px at 90% 0%, rgba(103, 232, 249, .45), transparent 70%),
        linear-gradient(135deg, var(--p1), var(--p2));
    box-shadow: 0 30px 50px -25px rgba(79, 70, 229, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.mp-cta p { color: rgba(255, 255, 255, .85); }
.mp-cta .btn-light { box-shadow: 0 5px 0 rgba(15, 23, 42, .25); }
.mp-cta-sm { padding: 1.75rem; display: block; }

.mp-content .blog-body { color: #334155; font-size: 1.02rem; line-height: 1.8; }
.mp-content .blog-body h2 { font-size: 1.4rem; font-weight: 800; margin: 1.6rem 0 .6rem; }
.mp-content .blog-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.3rem 0 .5rem; }

.mp-shot {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: var(--depth-2);
    transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.mp-shot:hover { transform: translateY(-4px) rotateX(4deg); box-shadow: var(--depth-3); }
.mp-shot img { width: 100%; height: 150px; object-fit: cover; display: block; }

.mp-features { list-style: none; padding: 0; margin: 0; }
.mp-features li { display: flex; gap: .6rem; padding: .45rem 0; color: #334155; border-bottom: 1px dashed #E2E8F0; }
.mp-features li:last-child { border-bottom: 0; }
.mp-features i { color: #10B981; margin-top: .3rem; }
.mp-key { min-width: 0; padding: .5rem .85rem; font-size: .85rem; box-shadow: inset 0 1px 0 #fff, 0 4px 0 #CBD5E1, 0 8px 12px -6px rgba(15, 23, 42, .25); }
.mp-sticky { position: sticky; top: 100px; }
@media (max-width: 991px) { .mp-sticky { position: static; } }
