/*==================================================
GLOBAL
==================================================*/

.workspace-hero{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:100px 40px;
    overflow:hidden;
    position:relative;
}

/*==================================================
CONTAINER
==================================================*/

.workspace-container{
    width:100%;
    max-width:1450px;

    display:grid;
    grid-template-columns:1fr 1.05fr;
    align-items:center;

    gap:80px;
}

/*==================================================
LEFT CONTENT
==================================================*/

.workspace-content{
    position:relative;
    z-index:2;
}

.workspace-heading{
    font-size:72px;
    line-height:1.05;
    font-weight:800;
    color:#0f172a;
    letter-spacing:-3px;
    margin-bottom:28px;
}

.workspace-heading span{
    position:relative;
    z-index:1;
    display:inline-block;
}

.workspace-heading span::after{
    content:'';
    position:absolute;
    left:0;
    bottom:10px;
    width:100%;
    height:16px;
    background:#d8ebff;
    border-radius:100px;
    z-index:-1;
}

.workspace-desc{
    font-size:20px;
    line-height:1.9;
    color:#5d6471;
    margin-bottom:45px;
    max-width:620px;
}

/*==================================================
BUTTONS
==================================================*/

.hero-buttons{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.hero-btn{
    text-decoration:none;
    padding:18px 34px;
    border-radius:18px;
    font-size:16px;
    font-weight:700;
    transition:.4s ease;

    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.hero-btn.primary{
    background:#0b72ff;
    color:#fff;

    box-shadow:0 12px 30px #ff4d9d;
}

.hero-btn.secondary{
    background:#fff;
    border:2px solid #d8e2ef;
    color:#0f172a;
}

.hero-btn:hover{
    transform:translateY(-6px);
}

/*==================================================
GALLERY
==================================================*/

.workspace-gallery{
    position:relative;

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;

    align-items:start;
}

/*==================================================
CARDS
==================================================*/

.gallery-card{
    position:relative;
    overflow:hidden;
    border-radius:36px;
    cursor:pointer;

    background:#fff;

    transition:
    transform .7s cubic-bezier(.19,1,.22,1),
    box-shadow .7s ease;

    box-shadow:
    0 15px 45px rgba(0,0,0,.06);

    animation:floating 7s ease-in-out infinite;
}

.large-card{
    height:430px;
    margin-top:50px;
}

.small-card{
    height:270px;
}

.tall-card{
    height:530px;
    margin-top:-120px;
}

/*==================================================
IMAGES
==================================================*/

.gallery-card img{
    width:100%;
    height:100%;
    object-fit:cover;

    transition:
    transform 1.3s cubic-bezier(.19,1,.22,1),
    filter .7s ease;
}

.gallery-card:hover img{
    transform:scale(1.12);
}

/*==================================================
OVERLAY
==================================================*/

.gallery-card::before{
    content:'';
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.35) 45%,
        transparent 80%
    );

    z-index:1;
}

/*==================================================
CONTENT
==================================================*/

.card-overlay{
    position:absolute;
    left:28px;
    bottom:28px;
    z-index:3;
    color:#fff;
}

.tag{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:10px 18px;

    border-radius:100px;

    background:rgba(255,255,255,.14);

    backdrop-filter:blur(14px);

    border:1px solid rgba(255,255,255,.15);

    font-size:13px;
    font-weight:600;

    margin-bottom:18px;
}

.card-overlay h3{
    font-size:30px;
    line-height:1.2;
    font-weight:700;

    margin-bottom:12px;
}

.card-overlay p{
    font-size:15px;
    line-height:1.7;
    color:rgba(255,255,255,.82);

    max-width:320px;
}

/*==================================================
HOVER
==================================================*/

.gallery-card:hover{
    transform:
    translateY(-18px)
    scale(1.02);

    box-shadow:
    0 40px 90px rgba(0,0,0,.18);
}

/*==================================================
FLOATING
==================================================*/

.small-card:nth-child(2){
    animation-delay:1s;
}

.small-card:nth-child(3){
    animation-delay:2s;
}

.tall-card{
    animation-delay:3s;
}

@keyframes floating{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-18px);
    }

    100%{
        transform:translateY(0px);
    }
}

/*==================================================
LAPTOP
==================================================*/

@media(max-width:1400px){

    .workspace-heading{
        font-size:60px;
    }

    .workspace-container{
        gap:60px;
    }
}

/*==================================================
TABLET
==================================================*/

@media(max-width:1024px){

    .workspace-hero{
        padding:80px 30px;
    }

    .workspace-container{
        grid-template-columns:1fr;
        gap:70px;
    }

    .workspace-content{
        text-align:center;
    }

    .workspace-desc{
        margin-left:auto;
        margin-right:auto;
    }

    .hero-buttons{
        justify-content:center;
    }

    .workspace-gallery{
        max-width:800px;
        margin:0 auto;
    }

    .large-card{
        height:380px;
        margin-top:0;
    }

    .small-card{
        height:260px;
    }

    .tall-card{
        height:420px;
        margin-top:0;
    }
}

/*==================================================
MOBILE
==================================================*/

@media(max-width:767px){

    .workspace-hero{
        padding:70px 18px;
        min-height:auto;
    }

    .workspace-container{
        gap:50px;
    }

    .workspace-heading{
        font-size:40px;
        line-height:1.15;
        letter-spacing:-1.5px;
        margin-bottom:20px;
    }

    .workspace-heading span::after{
        height:10px;
        bottom:4px;
    }

    .workspace-desc{
        font-size:16px;
        line-height:1.7;
        margin-bottom:35px;
    }

    .hero-buttons{
        flex-direction:column;
        width:100%;
        gap:14px;
    }

    .hero-btn{
        width:100%;
        padding:16px 20px;
        font-size:15px;
    }

    .workspace-gallery{
        grid-template-columns:1fr;
        gap:20px;
    }

    .large-card,
    .small-card,
    .tall-card{
        height:320px;
        margin-top:0;
        animation:none;
    }

    .gallery-card{
        border-radius:26px;
    }

    .card-overlay{
        left:22px;
        bottom:22px;
        right:22px;
    }

    .card-overlay h3{
        font-size:24px;
    }

    .card-overlay p{
        font-size:14px;
        line-height:1.6;
    }

    .tag{
        padding:8px 16px;
        font-size:12px;
        margin-bottom:14px;
    }
}

/*==================================================
SMALL MOBILE
==================================================*/

@media(max-width:480px){

    .workspace-heading{
        font-size:34px;
    }

    .workspace-desc{
        font-size:15px;
    }

    .large-card,
    .small-card,
    .tall-card{
        height:280px;
    }

    .card-overlay h3{
        font-size:21px;
    }
}