/*=========================================
    PORTFOLIO
=========================================*/

.portfolio-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.portfolio-card {

    overflow: hidden;

    border-radius: 22px;

    background: var(--color-surface);

    border: 1px solid var(--color-border);

    transition:
        transform .35s,
        box-shadow .35s,
        border-color .35s;
    cursor: pointer;

}

.portfolio-card:hover {

    transform: translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.35);

}

.portfolio-image {

    aspect-ratio: 16/10;

    display: flex;

    justify-content: center;

    align-items: center;

    background: linear-gradient(135deg,
            #1a1a1a,
            #252525);

    font-size: 1.4rem;

    color: var(--color-primary);

    font-weight: 700;

    overflow: hidden;
    position: relative;

}

.portfolio-image::before {

    content: "";

    position: absolute;

    inset: 0;

    background: radial-gradient(circle at top, #FFD40020, transparent 70%);

    opacity: 0;

    transition: .4s;

}

.portfolio-card:hover .portfolio-image::before {

    opacity: 1;

}

.portfolio-content {

    padding: 30px;

}

.portfolio-content h3 {

    margin-bottom: 15px;

}

.portfolio-content p {

    color: var(--color-text-secondary);

    line-height: 1.8;

}

.featured {

    transform: translateY(-25px);

    border-color: rgba(255, 212, 0, .3);

}

.featured:hover {

    transform: translateY(-35px);

}

/*=========================================
    MINI WEBSITE
=========================================*/

.mini-browser {

    width: 88%;

    height: 82%;

    background: #111;

    border-radius: 14px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .08);

    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);

    transition: .4s;

    box-shadow:

    0 20px 40px rgba(0,0,0,.35),

    0 0 0 1px rgba(255,255,255,.03);

}

.portfolio-card:hover .mini-browser {

    transform: scale(1.03);

}

.mini-topbar {

    height: 28px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 0 12px;

    background: #1c1c1c;

}

.mini-topbar span:nth-child(1){

    background:#FF5F57;

}

.mini-topbar span:nth-child(2){

    background:#FEBC2E;

}

.mini-topbar span:nth-child(3){

    background:#28C840;

}

.mini-landing {

    padding: 12px;

}

.mini-navbar {

    width: 100%;

    height: 10px;

    border-radius: 999px;

    background: #262626;

    margin-bottom: 18px;

}

.mini-hero {

    animation: floatHero 4s ease-in-out infinite;

}

.mini-title {

    width: 70%;

    height: 18px;

    border-radius: 6px;

    background: var(--color-primary);

    margin-bottom: 10px;

}

.mini-text {

    width: 90%;

    height: 8px;

    border-radius: 999px;

    background: #444;

    margin-bottom: 8px;

}

.mini-text::after {

    content: "";

    display: block;

    width: 70%;

    height: 8px;

    margin-top: 8px;

    border-radius: 999px;

    background: #444;

}

.mini-button {

    width: 90px;

    height: 22px;

    border-radius: 999px;

    background: var(--color-primary);

    margin-top: 18px;

}

.mini-cards {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-top: 25px;

}

.mini-cards div {

    height: 70px;

    border-radius: 10px;

    background: #202020;

    animation: cardPulse 3s infinite;

}

.mini-cards div:nth-child(2) {

    animation-delay: .5s;

}

.mini-cards div:nth-child(3) {

    animation-delay: 1s;

}

@keyframes floatHero {

    50% {

        transform: translateY(-3px);

    }

}

@keyframes cardPulse {

    0%,
    100% {

        opacity: .7;

    }

    50% {

        opacity: 1;

    }

}


/*=========================================
    MINI ECOMMERCE
=========================================*/

.mini-shop {

    padding: 12px;

}

.shop-header {

    display: grid;

    grid-template-columns: 40px 1fr 30px;

    gap: 10px;

    align-items: center;

    margin-bottom: 18px;

}

.shop-logo {

    height: 14px;

    border-radius: 999px;

    background: var(--color-primary);

}

.shop-search {

    height: 12px;

    border-radius: 999px;

    background: #2b2b2b;

}

.shop-cart {

    width: 18px;
    height: 18px;

    border-radius: 6px;

    background: #3b3b3b;

}

.shop-products {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

}

.product {

    height: 90px;

    border-radius: 10px;

    background: #1f1f1f;

    position: relative;

    overflow: hidden;

}

.product::before {

    content: "";

    position: absolute;

    top: 10px;
    left: 10px;

    width: 70%;
    height: 40px;

    border-radius: 8px;

    background: #333;

}

.product::after {

    content: "";

    position: absolute;

    left: 10px;
    bottom: 10px;

    width: 50%;
    height: 8px;

    border-radius: 999px;

    background: var(--color-primary);

}

.product {

    animation: productFloat 4s ease-in-out infinite;

}

.product:nth-child(2) {

    animation-delay: .4s;

}

.product:nth-child(3) {

    animation-delay: .8s;

}

.product:nth-child(4) {

    animation-delay: 1.2s;

}

@keyframes productFloat {

    50% {

        transform: translateY(-4px);

    }

}


/*=========================================
    MINI DASHBOARD
=========================================*/

.mini-dashboard {

    display: grid;

    grid-template-columns: 55px 1fr;

    height: 100%;

}

.dash-sidebar {

    padding: 12px 8px;

    background: #161616;

}

.dash-sidebar div {

    height: 10px;

    border-radius: 999px;

    background: #333;

    margin-bottom: 12px;

}

.dash-content {

    padding: 12px;

}

.dash-chart {

    height: 80px;

    border-radius: 10px;

    background: linear-gradient(180deg,
            #FFD40020,
            transparent);

    position: relative;

    overflow: hidden;

}

.dash-chart::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 120%;

    height: 2px;

    background: var(--color-primary);

    transform: translateX(-100%);

    animation: chartMove 4s linear infinite;

}

.dash-cards {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin-top: 14px;

}

.dash-cards div {

    height: 60px;

    border-radius: 10px;

    background: #222;

}

@keyframes chartMove {

    to {

        transform: translateX(100%);

    }

}

/*=========================================
    PORTFOLIO V2
=========================================*/

.portfolio-card{

    position:relative;

}

.portfolio-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:
        radial-gradient(circle at top right,
        rgba(255,212,0,.08),
        transparent 45%);

    opacity:0;

    transition:.4s;

    pointer-events:none;

}

.portfolio-card:hover::before{

    opacity:1;

}

.portfolio-card::after{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:80px;

    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.06),
        transparent
    );

    transform:skewX(-20deg);

    transition:1s;

}

.portfolio-card:hover::after{

    left:130%;

}

.portfolio-card:hover{

    border-color:rgba(255,212,0,.35);

}

.portfolio-content{

    position:relative;

}

.portfolio-content h3{

    transition:.35s;

}

.portfolio-card:hover h3{

    color:var(--color-primary);

}

.portfolio-content p{

    transition:.35s;

}

.portfolio-card:hover p{

    color:var(--color-text);

}

.portfolio-tags{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-top:22px;

}

.portfolio-tag{

    padding:7px 12px;

    border-radius:999px;

    background:rgba(255,212,0,.08);

    border:1px solid rgba(255,212,0,.12);

    color:var(--color-primary);

    font-size:.8rem;

}

/*=========================================
    RESPONSIVE
=========================================*/

@media(max-width:992px){

    .portfolio-grid{

        grid-template-columns:1fr;

        max-width:700px;

        margin:auto;

    }

    .featured{

        transform:none;

    }

    .featured:hover{

        transform:translateY(-10px);

    }

}

@media(max-width:768px){

    .portfolio-content{

        padding:24px;

    }

    .portfolio-tags{

        gap:8px;

    }

    .mini-browser{

        width:94%;

        height:86%;

    }

}

@media(max-width:480px){

    .portfolio-image{

        aspect-ratio:16/11;

    }

    .portfolio-content h3{

        font-size:1.2rem;

    }

    .portfolio-content p{

        font-size:.95rem;

    }

}