/* ==========================================================
   PRODUCTS
========================================================== */

.product{

    position:relative;

    overflow:hidden;

}

/* ==========================================================
   Background
========================================================== */

.product::before{

    content:"";

    position:absolute;

    top:-220px;

    left:-220px;

    width:520px;

    height:520px;

    border-radius:50%;

    background:rgba(37,99,235,.08);

    filter:blur(130px);

    pointer-events:none;

}

.product::after{

    content:"";

    position:absolute;

    right:-180px;

    bottom:-180px;

    width:480px;

    height:480px;

    border-radius:50%;

    background:rgba(6,182,212,.08);

    filter:blur(120px);

    pointer-events:none;

}

/* ==========================================================
   Header
========================================================== */

.product-header{

    max-width:850px;

    margin:0 auto 6rem;

    text-align:center;

}

.product-title{

    margin-top:1.5rem;

    font-size:clamp(2.5rem,5vw,4rem);

    font-weight:800;

    line-height:1.2;

}

.product-title span{

    display:block;

    margin-top:.35rem;

    background:var(--gradient-primary);

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

    background-clip:text;

}

.product-description{

    margin:2rem auto 0;

    max-width:760px;

    color:var(--text-secondary);

    line-height:2;

    font-size:1.05rem;

}

/* ==========================================================
   Product Card
========================================================== */

.product-card{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:5rem;

    align-items:center;

    margin-bottom:2rem;

}

.product-card:last-child{

    margin-bottom:0;

}

.product-card.reverse{

    direction:rtl;

}

.product-card.reverse .product-content{

    direction:rtl;

}

.product-card.reverse .product-image{

    direction:ltr;

}

/* ==========================================================
   Content
========================================================== */

.product-content{

    max-width:600px;

}

.product-badge{

    display:inline-flex;

    align-items:center;

    gap:.5rem;

    padding:.55rem 1rem;

    border-radius:999px;

    background:rgba(6,182,212,.12);

    border:1px solid rgba(6,182,212,.18);

    color:var(--color-primary-light);

    font-size:.82rem;

    font-weight:700;

}

.product-content h3{

    margin:1.5rem 0;

    font-size:2.5rem;

    font-weight:800;

    color:#ffffff;

}

.product-content p{

    margin-bottom:1.4rem;

    color:var(--text-secondary);

    line-height:2;

    font-size:1rem;

}

/* ==========================================================
   Tags
========================================================== */

.product-tags{

    display:flex;

    flex-wrap:wrap;

    gap:.8rem;

    margin-top:2rem;

}

.product-tags span{

    padding:.55rem 1rem;

    border-radius:999px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    color:var(--text-secondary);

    font-size:.88rem;

    transition:.3s;

}

.product-tags span:hover{

    color:#ffffff;

    background:rgba(37,99,235,.16);

    border-color:rgba(37,99,235,.35);

}

/* ==========================================================
   Image
========================================================== */

.product-image{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:2rem;

    min-height:520px;

    overflow:hidden;

}

.product-image img{

    width:120%;

    max-width:none;

    height:auto;

    object-fit:contain;

    filter:drop-shadow(0 30px 60px rgba(0,0,0,.35));

}

.product-image video,

.product-image canvas{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}

/* ==========================================================
   Hover
========================================================== */

.product-image img,

.product-image video{

    transition:transform .7s ease;

}

.product-card:hover img,

.product-card:hover video{

    transform:scale(1.05);

}

.product-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(

        to top,

        rgba(6,11,22,.05),

        transparent 35%

    );

    pointer-events:none;

}

/* ==========================================================
   Canvas
========================================================== */

#scrollMetaverse{

    display:block;

    width:100%;

    height:100%;

    background:transparent;

}

/* ==========================================================
   Reveal
========================================================== */

.product-card.reveal{

    opacity:0;

    transform:translateY(70px);

    transition:

        opacity .8s ease,

        transform .8s ease;

}

.product-card.reveal.active{

    opacity:1;

    transform:none;

}

/* ==========================================================
   Responsive
========================================================== */

@media(max-width:1100px){

    .product-card,

    .product-card.reverse{

        grid-template-columns:1fr;

        gap:0;

    }

    .product-card .product-content {
        order: 1;
    }

    .product-card .product-image {
        order: 2;
    }

    .product-card.reverse .product-content{

        direction:rtl;

    }

    .product-content{

        max-width:none;

    }

    .product-image{

        min-height:420px;

    }

}

@media(max-width:768px){

    .product-card{

        margin-bottom:1rem;

    }

    .product-content h3{

        font-size:2rem;

    }

    .product-image{

        min-height:340px;

    }

}

@media(max-width:576px){

    .product-tags{

        gap:.5rem;

    }

    .product-tags span{

        font-size:.8rem;

        padding:.45rem .8rem;

    }

    .product-image{

        min-height:260px;

        border-radius:20px;

    }

}

.mobile-product-image{
    display:none;
    width:100%;
    height:auto;
    border-radius:20px;
}

/* Desktop */

#scrollMetaverse{
    display:block;
}

/* Mobile */

@media (max-width:768px){

    #scrollMetaverse{
        display:none;
    }

    .mobile-product-image{
        display:block;
    }

}