/* =========================================================
   PRINTMANIA WORKS
   MODERN ANIMATED DESIGN
========================================================= */

*{
    box-sizing:border-box;
}


/* =========================================================
   PAGE
========================================================= */

.works-page{
    min-height:70vh;

    padding:55px 18px 80px;

    background:
        radial-gradient(
            circle at 85% 8%,
            rgba(255,0,170,.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 8% 85%,
            rgba(0,191,255,.11),
            transparent 32%
        ),
        #0f1117;
}


/* =========================================================
   INNER
========================================================= */

.works-page-inner{
    width:min(1280px,100%);

    margin:0 auto;
}


/* =========================================================
   NASLOV
========================================================= */

.works-page-inner > h1{
    margin:0;

    text-align:center;

    font-size:46px;

    line-height:1.05;

    font-weight:900;

    text-transform:uppercase;

    letter-spacing:.5px;

    background:
        linear-gradient(
            90deg,
            #fff,
            #00bfff,
            #ff00aa,
            #fff
        );

    background-size:250% auto;

    -webkit-background-clip:text;
    background-clip:text;

    color:transparent;

    animation:
        worksTitleGradient 5s linear infinite;
}


@keyframes worksTitleGradient{

    0%{
        background-position:0% center;
    }

    100%{
        background-position:250% center;
    }

}


/* =========================================================
   PODNASLOV
========================================================= */

.works-page-subtitle{
    margin:12px auto 40px;

    max-width:650px;

    text-align:center;

    color:#9da7ba;

    font-size:16px;

    line-height:1.5;
}


/* =========================================================
   GRID - 4 U REDU
========================================================= */

.works-grid-page{
    display:grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap:28px;

    width:100%;
}


/* =========================================================
   CARD
========================================================= */

.work-product-card{
    position:relative;

    width:100%;

    overflow:hidden;

    border-radius:22px;

    background:
        linear-gradient(
            145deg,
            rgba(25,30,40,.98),
            rgba(14,18,25,.98)
        );

    border:1px solid #292f3b;

    box-shadow:
        0 18px 40px rgba(0,0,0,.25);

    opacity:0;

    transform:
        translateY(30px)
        scale(.97);

    animation:
        worksCardIn
        .65s
        cubic-bezier(.22,1,.36,1)
        forwards;

    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        border-color .35s ease,
        box-shadow .45s ease;
}


/* =========================================================
   UNUTRAŠNJI GLOW
========================================================= */

.work-product-card::before{
    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(255,0,170,.14),
            transparent 38%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(0,191,255,.12),
            transparent 42%
        );

    opacity:.75;

    transition:
        opacity .4s ease;
}


/* =========================================================
   SVETLEĆA LINIJA
========================================================= */

.work-product-card::after{
    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:80%;
    height:2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #00bfff,
            #ff00aa,
            transparent
        );

    z-index:10;

    transition:left .7s ease;
}


.work-product-card:hover::after{
    left:140%;
}


/* =========================================================
   HOVER KARTICA
========================================================= */

.work-product-card:hover{

    transform:translateY(-10px);

    border-color:
        rgba(0,191,255,.75);

    box-shadow:
        0 0 0 1px rgba(255,0,170,.15),
        0 25px 55px rgba(0,0,0,.40),
        0 0 35px rgba(0,191,255,.10);
}


.work-product-card:hover::before{
    opacity:1;
}


/* =========================================================
   SLIKA LINK
========================================================= */

.work-product-card > a{
    position:relative;

    z-index:2;

    display:block;

    overflow:hidden;

    text-decoration:none;
}


/* =========================================================
   SLIKA PROIZVODA
========================================================= */

.work-product-card > a > img{
    width:100%;

    height:255px;

    display:block;

    object-fit:contain;

    padding:14px;

    transform:scale(1);

    transition:
        transform .55s cubic-bezier(.22,1,.36,1),
        filter .55s ease;
}


.work-product-card:hover > a > img{

    transform:
        scale(1.08)
        rotate(.5deg);

    filter:
        drop-shadow(
            0 18px 27px rgba(0,0,0,.42)
        );
}


/* =========================================================
   NO IMAGE
========================================================= */

.no-product-img{
    height:255px;

    margin:14px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:16px;

    background:#11161f;

    border:1px dashed #303746;

    color:#697386;

    font-size:17px;

    transition:
        border-color .3s ease,
        color .3s ease,
        background .3s ease;
}


.work-product-card:hover .no-product-img{

    border-color:#00bfff;

    color:#00bfff;

    background:#121a24;
}


/* =========================================================
   BODY
========================================================= */

.work-product-body{
    position:relative;

    z-index:3;

    padding:
        0
        18px
        20px;

    text-align:center;
}


/* =========================================================
   NASLOV PROIZVODA
========================================================= */

.work-product-body h3{

    margin:0 0 8px;

    min-height:48px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:20px;

    line-height:1.2;

    font-weight:900;
}


.work-product-body h3 a{

    color:white;

    text-decoration:none;

    transition:
        color .25s ease,
        transform .25s ease;
}


.work-product-body h3 a:hover{

    color:#00bfff;

    transform:translateY(-2px);
}


/* =========================================================
   CENA
========================================================= */

.work-product-body .price{

    margin:10px 0 17px;

    color:#00bfff;

    font-size:24px;

    font-weight:900;

    text-shadow:
        0 0 16px rgba(0,191,255,.25);

    transition:
        transform .3s ease,
        text-shadow .3s ease;
}


.work-product-card:hover .price{

    transform:scale(1.05);

    text-shadow:
        0 0 20px rgba(0,191,255,.45);
}


/* =========================================================
   PORUČI DUGME
========================================================= */

.work-product-body > a:last-child{
    display:block !important;
    width:165px !important;
    max-width:165px !important;
    margin:0 auto !important;
    padding:0 !important;
    text-align:center !important;

    transition:
        transform .3s cubic-bezier(.22,1,.36,1),
        filter .3s ease;
}

.work-product-body > a:last-child .poruci-btn{
    display:block !important;
    width:165px !important;
    max-width:165px !important;
    height:auto !important;
    margin:0 auto !important;
}


.poruci-btn{

    display:block;

    width:165px;

    height:auto;

    transition:
        transform .3s ease,
        filter .3s ease;
}


.work-product-body > a:last-child:hover{

    transform:
        translateY(-4px)
        scale(1.03);

    filter:
        drop-shadow(
            0 8px 15px rgba(0,191,255,.20)
        );
}


.work-product-body > a:last-child:active{

    transform:scale(.96);
}


/* =========================================================
   PRAZNO
========================================================= */

.works-empty{

    grid-column:1/-1;

    width:min(650px,100%);

    margin:20px auto;

    padding:45px 25px;

    text-align:center;

    background:
        linear-gradient(
            145deg,
            #191e28,
            #11151d
        );

    border:1px solid #292f3b;

    border-radius:22px;

    color:#aeb8c9;

    font-size:18px;

    box-shadow:
        0 20px 45px rgba(0,0,0,.25);

    animation:
        worksEmptyIn
        .6s
        ease
        both;
}


/* =========================================================
   ANIMACIJA KARTICA
========================================================= */

@keyframes worksCardIn{

    from{

        opacity:0;

        transform:
            translateY(30px)
            scale(.97);
    }

    to{

        opacity:1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   ANIMACIJA NASLOVA
========================================================= */

@keyframes worksEmptyIn{

    from{

        opacity:0;

        transform:
            translateY(15px);
    }

    to{

        opacity:1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   STAGGER
========================================================= */

.work-product-card:nth-child(1){
    animation-delay:.03s;
}

.work-product-card:nth-child(2){
    animation-delay:.08s;
}

.work-product-card:nth-child(3){
    animation-delay:.13s;
}

.work-product-card:nth-child(4){
    animation-delay:.18s;
}

.work-product-card:nth-child(5){
    animation-delay:.23s;
}

.work-product-card:nth-child(6){
    animation-delay:.28s;
}

.work-product-card:nth-child(7){
    animation-delay:.33s;
}

.work-product-card:nth-child(8){
    animation-delay:.38s;
}

.work-product-card:nth-child(9){
    animation-delay:.43s;
}

.work-product-card:nth-child(10){
    animation-delay:.48s;
}

.work-product-card:nth-child(11){
    animation-delay:.53s;
}

.work-product-card:nth-child(12){
    animation-delay:.58s;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1050px){

    .works-grid-page{

        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap:24px;

        max-width:650px;

        margin:0 auto;
    }

}


/* =========================================================
   MANJI TABLET
========================================================= */

@media(max-width:700px){

    .works-page{

        padding:
            35px
            14px
            55px;
    }

    .works-page-inner > h1{

        font-size:36px;
    }

    .works-page-subtitle{

        font-size:14px;

        margin-bottom:28px;
    }

    .works-grid-page{

        grid-template-columns:
            minmax(0,320px);

        gap:20px;

        justify-content:center;
    }

    .work-product-card{

        max-width:320px;
    }

    .work-product-card > a > img{

        height:260px;
    }

    .no-product-img{

        height:260px;
    }
}


/* =========================================================
   MOBILNI
========================================================= */

@media(max-width:430px){

    .works-page{

        padding:
            28px
            10px
            45px;
    }

    .works-page-inner > h1{

        font-size:29px;
    }

    .works-page-subtitle{

        font-size:13px;

        margin-top:9px;

        margin-bottom:24px;
    }

    .work-product-card{

        max-width:310px;

        border-radius:20px;
    }

    .work-product-card > a > img{

        height:245px;

        padding:14px;
    }

    .no-product-img{

        height:245px;

        margin:14px;
    }

    .work-product-body{

        padding:
            0
            15px
            18px;
    }

    .work-product-body h3{

        font-size:19px;
    }

    .work-product-body .price{

        font-size:23px;
    }

    .poruci-btn,
    .work-product-body > a:last-child{

        width:160px;
    }
}


/* =========================================================
   VEOMA MALI TELEFONI
========================================================= */

@media(max-width:360px){

    .works-page-inner > h1{

        font-size:27px;
    }

    .work-product-card{

        max-width:300px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media(prefers-reduced-motion:reduce){

    .works-page-inner > h1,
    .work-product-card,
    .works-empty{

        animation:none!important;
    }

    .work-product-card,
    .work-product-card:hover{

        transform:none!important;
    }
}

/* =========================================================
   FIX - NAZIV PROIZVODA NA RADOVIMA
========================================================= */

.works-page .works-grid-page .work-product-card .work-product-body h2 {
    margin: 0 0 8px !important;
    min-height: 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;

    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
}

.works-page .works-grid-page .work-product-card .work-product-body h2 > a,
.works-page .works-grid-page .work-product-card .work-product-body h2 > a:link,
.works-page .works-grid-page .work-product-card .work-product-body h2 > a:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;

    text-decoration: none !important;
    text-decoration-line: none !important;

    transition:
        color .25s ease,
        transform .25s ease,
        text-shadow .25s ease !important;
}

.works-page .works-grid-page .work-product-card .work-product-body h2 > a:hover {
    color: #00bfff !important;
    -webkit-text-fill-color: #00bfff !important;

    text-decoration: none !important;

    transform: translateY(-2px);

    text-shadow:
        0 0 12px rgba(0, 191, 255, .35);
}

@media(max-width:430px) {

    .works-page .works-grid-page .work-product-card .work-product-body h2,
    .works-page .works-grid-page .work-product-card .work-product-body h2 > a {
        font-size: 17px !important;
    }

}