/* ==========================
   BLACKWHITE DIESEL
   PROJECT HUB
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:
        radial-gradient(circle at top,#1d2635 0%,#0d1117 40%,#090c10 100%);
    color:#fff;
    min-height:100vh;
    overflow-x:hidden;
}

/* Background Glow */

body::before{
    content:"";
    position:fixed;
    width:500px;
    height:500px;
    background:#58a6ff20;
    filter:blur(140px);
    top:-180px;
    left:-180px;
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    width:450px;
    height:450px;
    background:#8b5cf620;
    filter:blur(140px);
    bottom:-150px;
    right:-150px;
    z-index:-2;
}

/* ================= */

header{

    text-align:center;

    padding:70px 20px 45px;

}

header h1{

    font-size:52px;

    font-weight:800;

    letter-spacing:2px;

    margin-bottom:12px;

}

header p{

    color:#9ba3af;

    font-size:18px;

    margin-bottom:30px;

}

/* ================= */

#search{

    width:min(600px,90%);

    padding:16px 22px;

    border:none;

    outline:none;

    border-radius:18px;

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(18px);

    color:white;

    font-size:16px;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

}

#search::placeholder{

    color:#6f7783;

}

#search:focus{

    border-color:#58a6ff;

    box-shadow:
    0 0 0 4px rgba(88,166,255,.15),
    0 15px 35px rgba(0,0,0,.4);

}

/* ================= */

#project-list{

    width:min(1450px,95%);

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:28px;

    padding-bottom:60px;

}

/* ================= */

.card{

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:24px;

    padding:28px;

    text-decoration:none;

    transition:.35s;

    position:relative;

    overflow:hidden;

}

/* Glow */

.card::before{

    content:"";

    position:absolute;

    width:180px;

    height:180px;

    background:#58a6ff25;

    border-radius:50%;

    top:-90px;

    right:-90px;

    filter:blur(60px);

    opacity:0;

    transition:.4s;

}

.card:hover::before{

    opacity:1;

}

.card:hover{

    transform:translateY(-10px);

    border-color:#58a6ff;

    box-shadow:

    0 15px 45px rgba(0,0,0,.45),

    0 0 30px rgba(88,166,255,.18);

}

/* ================= */

.card h2{

    font-size:30px;

    margin-bottom:14px;

}

.subtitle{

    color:#58a6ff;

    font-size:15px;

    font-weight:700;

    margin-bottom:15px;

    text-transform:uppercase;

    letter-spacing:1px;

}

.info{

    color:#c7cdd6;

    line-height:1.8;

    font-size:15px;

    min-height:75px;

}

/* ================= */

.open-btn{

    display:inline-flex;

    align-items:center;

    gap:8px;

    margin-top:24px;

    color:#58a6ff;

    font-weight:700;

    transition:.3s;

}

.card:hover .open-btn{

    transform:translateX(10px);

}

/* ================= */

a{

    color:inherit;

    text-decoration:none;

}

/* ================= */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#2f3b50;

    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:#58a6ff;

}

/* ================= */

/* ==========================
   Mobile
========================== */

@media (max-width: 768px){

    header{
        padding:40px 20px 30px;
    }

    header h1{
        font-size:36px;
        letter-spacing:1px;
    }

    header p{
        font-size:15px;
        margin-bottom:20px;
    }

    #search{
        width:100%;
        max-width:420px;
        font-size:15px;
        padding:14px 18px;
    }

    #project-list{

        width:95%;

        grid-template-columns:1fr;

        gap:18px;

        padding-bottom:40px;

    }

    .card{

        padding:20px;

        border-radius:20px;

    }

    .card h2{
        font-size:24px;
    }

    .subtitle{
        font-size:13px;
    }

    .info{
        font-size:14px;
        line-height:1.6;
        min-height:auto;
    }

    .open-btn{
        margin-top:18px;
        font-size:14px;
    }

}