/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

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

    color: #ffffff;

    background:
        radial-gradient(
            circle at top,
            #202020,
            #0b0b0b 55%
        );
}


/* =========================
   PAGE
========================= */

.page {
    width:
        min(
            1250px,
            calc(100% - 40px)
        );

    margin: 18px auto;

    overflow: hidden;

    background:
        rgba(14, 14, 14, 0.92);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 24px;

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.4);

    backdrop-filter:
        blur(20px);
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 72px;

    display: flex;

    align-items: center;

    gap: 50px;

    padding:
        0 32px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.logo {
    color: #ffffff;

    font-size: 20px;
    font-weight: 800;

    text-decoration: none;
}


.navbar nav {
    display: flex;

    gap: 30px;
}


.navbar nav a {
    position: relative;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color .2s ease;
}


.navbar nav a:hover,
.navbar nav a.active {
    color: #ffffff;
}


.navbar nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -26px;

    height: 2px;

    background: #ffffff;

    border-radius: 10px;
}


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

.hero {
    padding:
        80px 55px 65px;
}


.hero-label {
    margin-bottom: 12px;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.hero h1 {
    margin: 0;

    font-size:
        clamp(
            72px,
            10vw,
            140px
        );

    line-height: .9;

    letter-spacing: -7px;
}


.hero p {
    max-width: 650px;

    margin-top: 30px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 19px;

    line-height: 1.5;
}


/* =========================
   PROJECT SECTIONS
========================= */

.projects-section {
    padding:
        30px 55px 60px;
}


.section-title {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 30px;

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 2px;
}


.line {
    flex: 1;

    height: 1px;

    background:
        rgba(255, 255, 255, 0.08);
}


/* =========================
   FILTERS
========================= */

.filter-bar {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 30px;
}


.dynamic-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.filter {
    padding:
        9px 15px;

    color:
        rgba(255, 255, 255, 0.55);

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 999px;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}


.filter:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.07);
}


.filter.active {
    color: #111111;

    background: #ffffff;

    border-color: #ffffff;
}


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

.projects-grid {
    display: grid;

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

    gap: 24px;
}


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

.project-card {
    position: relative;

    display: block;

    min-width: 0;

    overflow: hidden;

    color: #ffffff;

    text-decoration: none;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}


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

    border-color:
        rgba(255, 255, 255, 0.18);

    background:
        rgba(255, 255, 255, 0.055);
}


/* =========================
   BANNER
========================= */

.project-banner {
    position: relative;

    width: 100%;

    height: 140px;

    overflow: hidden;

    background: #101010;
}


.project-banner-image {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease,
        filter .3s ease;
}


.project-card:hover
.project-banner-image {
    transform:
        scale(1.025);

    filter:
        brightness(1.06);
}


/* =========================
   PIN
========================= */

.pin {
    position: absolute;

    top: 12px;

    right: 12px;

    z-index: 5;

    padding:
        5px 9px;

    color:
        rgba(255, 255, 255, 0.85);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .7px;

    background:
        rgba(10, 10, 10, 0.72);

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 999px;

    backdrop-filter: blur(10px);
}


/* =========================
   BODY
========================= */

.project-body {
    position: relative;

    min-height: 220px;

    padding:
        34px 18px 22px 106px;
}


/* =========================
   ICON
========================= */

.project-icon {
    position: absolute;

    left: 18px;

    top: -38px;

    width: 78px;

    height: 78px;

    object-fit: cover;

    border-radius: 50%;

    background: #151515;

    border:
        5px solid
        #171717;

    z-index: 4;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.25);

    transition:
        transform .25s ease;
}


.project-card:hover
.project-icon {
    transform:
        scale(1.04);
}


/* =========================
   INFO
========================= */

.project-info {
    min-width: 0;
}


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

.project-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 10px;
}


.project-name {
    min-width: 0;

    color: #ffffff;

    font-size: 20px;

    font-weight: 750;

    line-height: 1.2;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.project-category {
    flex-shrink: 0;

    color:
        rgba(255, 255, 255, 0.28);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1px;

    padding-top: 5px;
}


/* =========================
   DESCRIPTION
========================= */

.project-description {
    margin-top: 12px;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 13px;

    line-height: 1.5;

    min-height: 40px;
}


/* =========================
   BOTTOM
========================= */

.project-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 18px;
}


.status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 11px;

    line-height: 1.2;
}


.status-dot {
    width: 7px;

    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: currentColor;
}


.arrow {
    flex-shrink: 0;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 18px;

    transition:
        color .2s ease,
        transform .2s ease;
}


.project-card:hover
.arrow {
    color: #ffffff;

    transform:
        translateX(4px);
}


/* =========================
   EMPTY / ERROR
========================= */

.load-error,
.projects-empty {
    grid-column:
        1 / -1;

    padding:
        20px;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 14px;

    border:
        1px dashed
        rgba(255, 255, 255, 0.1);

    border-radius: 15px;
}


/* =========================
   TABLET
========================= */

@media
(max-width: 1050px) {

    .projects-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================
   SMALL TABLET
========================= */

@media
(max-width: 760px) {

    .page {
        width:
            calc(100% - 16px);

        margin:
            8px auto;

        border-radius: 18px;
    }


    .navbar {
        padding:
            0 20px;

        gap:
            28px;

        overflow-x: auto;
    }


    .hero {
        padding:
            60px 24px 48px;
    }


    .hero h1 {
        letter-spacing:
            -4px;
    }


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


    .projects-section {
        padding:
            28px 20px 48px;
    }


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


    .project-banner {
        height: 135px;
    }


    .project-body {
        min-height: 200px;

        padding:
            50px 18px 20px;
    }


    .project-icon {
        left: 18px;

        top: -38px;

        width: 76px;

        height: 76px;
    }


    .project-top {
        align-items: center;
    }


    .project-name {
        font-size: 21px;
    }

}


/* =========================
   MOBILE
========================= */

@media
(max-width: 520px) {

    .navbar nav {
        gap: 22px;
    }


    .hero {
        padding-top: 50px;
    }


    .project-banner {
        height: 120px;
    }


    .project-body {
        padding:
            48px 16px 18px;
    }


    .project-icon {
        width: 72px;

        height: 72px;

        top: -36px;
    }


    .project-category {
        font-size: 8px;
    }

}
