/*=========================================
        PORTFOLIO GALLERY
=========================================*/

.portfolio-gallery{
    width:100%;
    padding:80px 15px;
    background:var(--background);
}

.portfolio-grid{
    max-width:1400px;
    margin:auto;
}

/*=========================================
        IMAGE CARD
=========================================*/

.portfolio-item{

    width:100%;
    max-width:220px;       /* Desktop size */

    display:block;

    border-radius:15px;

    margin-bottom:15px;

    cursor:pointer;

    object-fit:cover;

    transition:.45s ease;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    opacity:0;
    transform:translateY(60px) scale(.95);
    filter:blur(8px);

}

/* Reveal */

.portfolio-item.show{

    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);

}

/* Hover */

.portfolio-item:hover{

    transform:translateY(-8px) scale(1.03);

    box-shadow:0 18px 45px rgba(0,0,0,.20);

}

/*=========================
Desktop
=========================*/

@media(max-width:1200px){

.portfolio-item{

max-width:200px;

}

}

/*=========================
Tablet
=========================*/

@media(max-width:768px){

.portfolio-item{

max-width:170px;

}

}

/*=========================
Phone (2 Columns)
=========================*/

@media (max-width:480px){

    .portfolio-gallery{
        padding:50px 10px;
    }

    .portfolio-grid{
        width:100%;
    }

    .portfolio-item{

        width:calc(50% - 8px);   /* Two images in one row */
        max-width:none;

        margin-bottom:10px;

        border-radius:12px;

    }

}
/*=========================================
        SCROLL REVEAL
=========================================*/

.portfolio-item{

    opacity:0;

    transform:translateY(80px) scale(.92);

    filter:blur(8px);

    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.22,1,.36,1),
        filter .8s ease;

    will-change:transform,opacity;

}

.portfolio-item.show{

    opacity:1;

    transform:translateY(0) scale(1);

    filter:blur(0);

}

/*=========================================
            BACK BUTTON
=========================================*/

.back-btn{

    position:fixed;

    top:25px;
    right:25px;      /* Left ki jagah Right */

    display:flex;
    align-items:center;
    gap:10px;

    padding:12px 20px;

    background:var(--dark);
    backdrop-filter:blur(18px);

    color:#fff;
    text-decoration:none;

    border:1px solid rgba(116, 178, 165, 0.12);
    border-radius:50px;

    font-size:15px;
    font-weight:500;

    z-index:9999;

    transition:.35s ease;

    box-shadow:0 10px 30px rgba(172, 235, 233, 0.25);

}

.back-btn i{

    width:36px;
    height:36px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;
    background:rgba(212,175,55,.18);

    color:white;

    transition:.35s ease;

}

.back-btn:hover{

    background:white;

    color:#111;

    transform:translateY(-3px);

    box-shadow:0 15px 35px rgba(212,175,55,.35);

}

.back-btn:hover i{

    background:#111;
    color:white;

}

@media(max-width:768px){

.back-btn{

top:15px;
right:15px;

padding:10px 16px;

font-size:14px;

}

.back-btn i{

width:32px;
height:32px;

}

}

@media(max-width:480px){

.back-btn span{

display:none;

}

.back-btn{

padding:10px;

border-radius:50%;

width:50px;
height:50px;

justify-content:center;

}

.back-btn i{

background:none;
width:auto;
height:auto;

}

}