/* ==========================================
   VARIABLES
========================================== */

:root {
    --bg: #080b14;

    --panel: #111625;
    --panel-hover: #171d30;

    --text: #f5f7ff;
    --muted: #9aa5bd;

    --line: rgba(255, 255, 255, 0.09);

    --accent: #7c6cff;
    --accent-2: #4dd8ff;

    --success: #52d59b;
}


/* ==========================================
   RESET
========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(124, 108, 255, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(77, 216, 255, 0.10),
            transparent 28%
        ),
        var(--bg);

    min-height: 100vh;
}


a {
    text-decoration: none;
    color: inherit;
}


/* ==========================================
   CONTAINER
========================================== */

.container {
    width: min(
        1080px,
        calc(100% - 40px)
    );

    margin: auto;
}


/* ==========================================
   HEADER
========================================== */

.site-header {
    padding: 28px 0;

    border-bottom:
        1px solid var(--line);

    background:
        rgba(8, 11, 20, 0.55);

    backdrop-filter:
        blur(14px);

    position: sticky;

    top: 0;

    z-index: 10;
}


.nav {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.brand {
    font-weight: 800;

    letter-spacing: -0.04em;

    font-size: 20px;
}


.brand span {
    color: var(--accent-2);
}


.nav-label {
    color: var(--muted);

    font-size: 13px;
}


/* ==========================================
   HERO
========================================== */

.hero {
    text-align: center;

    padding:
        95px
        0
        65px;
}


.badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        8px
        13px;

    border:
        1px solid
        rgba(124, 108, 255, 0.3);

    background:
        rgba(124, 108, 255, 0.08);

    border-radius: 999px;

    color: #c9c4ff;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 24px;
}


.dot {
    width: 7px;

    height: 7px;

    background:
        var(--success);

    border-radius: 50%;

    box-shadow:
        0 0 12px
        rgba(82, 213, 155, 0.7);
}


.hero h1 {
    font-size:
        clamp(
            46px,
            8vw,
            86px
        );

    line-height: 0.95;

    letter-spacing: -0.065em;

    margin-bottom: 24px;
}


.hero h1 span {
    background:
        linear-gradient(
            100deg,
            #fff 20%,
            #9d93ff 58%,
            #58dcff
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.hero p {
    max-width: 650px;

    margin: auto;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.7;
}


/* ==========================================
   SECTION HEADER
========================================== */

.section-head {
    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


.section-head h2 {
    font-size: 24px;

    letter-spacing: -0.03em;
}


.count {
    color: var(--muted);

    font-size: 13px;
}


/* ==========================================
   SEARCH
========================================== */

.search {
    width: 100%;

    margin-bottom: 28px;
}


.search input {
    width: 100%;

    padding:
        16px
        18px;

    border:
        1px solid
        var(--line);

    border-radius: 14px;

    background:
        rgba(17, 22, 37, 0.78);

    color: var(--text);

    outline: none;

    font-size: 15px;

    transition:
        0.2s;
}


.search input::placeholder {
    color: #657087;
}


.search input:focus {
    border-color:
        rgba(124, 108, 255, 0.65);

    box-shadow:
        0 0 0 4px
        rgba(124, 108, 255, 0.08);
}


/* ==========================================
   PROJECT GRID
========================================== */

.projects {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;
}


/* ==========================================
   PROJECT CARD
========================================== */

.card {
    position: relative;

    padding: 24px;

    border:
        1px solid
        var(--line);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 22, 37, 0.95),
            rgba(13, 17, 29, 0.9)
        );

    transition:
        transform 0.25s,
        border-color 0.25s,
        background 0.25s;

    overflow: hidden;
}


.card::before {
    content: "";

    position: absolute;

    width: 150px;

    height: 150px;

    right: -80px;

    top: -80px;

    background:
        rgba(124, 108, 255, 0.12);

    border-radius: 50%;

    filter: blur(20px);
}


.card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(124, 108, 255, 0.4);

    background:
        var(--panel-hover);
}


/* ==========================================
   CARD TOP
========================================== */

.card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;
}


.icon {
    width: 48px;

    height: 48px;

    border-radius: 13px;

    display: grid;

    place-items: center;

    background:
        rgba(124, 108, 255, 0.12);

    color: #aaa2ff;

    font-weight: 800;

    font-size: 18px;

    border:
        1px solid
        rgba(124, 108, 255, 0.16);
}


.status {
    color:
        var(--success);

    font-size: 11px;

    font-weight: 700;

    padding:
        6px
        9px;

    border-radius: 999px;

    background:
        rgba(82, 213, 155, 0.08);

    border:
        1px solid
        rgba(82, 213, 155, 0.16);
}


/* ==========================================
   CARD CONTENT
========================================== */

.card h3 {
    font-size: 21px;

    letter-spacing: -0.025em;

    margin-bottom: 8px;
}


.card p {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;

    min-height: 45px;
}


/* ==========================================
   CARD META
========================================== */

.meta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 22px;

    padding-top: 17px;

    border-top:
        1px solid
        var(--line);
}


.category {
    color: #7f8aa2;

    font-size: 12px;
}


.button {
    color: #fff;

    font-size: 13px;

    font-weight: 700;

    padding:
        9px
        13px;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #6255df
        );

    box-shadow:
        0 7px 20px
        rgba(124, 108, 255, 0.15);
}


/* ==========================================
   EMPTY STATE
========================================== */

.empty {
    display: none;

    text-align: center;

    padding: 45px 20px;

    color: var(--muted);

    border:
        1px dashed
        var(--line);

    border-radius: 18px;
}


/* ==========================================
   FOOTER
========================================== */

.site-footer {
    text-align: center;

    color: #626c81;

    font-size: 12px;

    padding:
        65px
        0
        30px;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 700px) {

    .container {
        width:
            min(
                100% - 28px,
                1080px
            );
    }


    .site-header {
        padding: 20px 0;
    }


    .nav-label {
        display: none;
    }


    .hero {
        padding:
            70px
            0
            50px;
    }


    .hero p {
        font-size: 16px;
    }


    .projects {
        grid-template-columns: 1fr;
    }


    .section-head {
        align-items: start;

        flex-direction: column;

        gap: 6px;
    }

}