:root {
    --primary: #0b2c48;
    --secondary: #f5f5f5;
    --dark: #222;
    --light: #777;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 80px 0;
}

.center {
    text-align: center;
}

header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 60px;
}

.nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

.nav a.active,
.nav a:hover {
    color: var(--primary);
}

.page-title {
    background: var(--secondary);
    padding: 80px 0;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
}

.page-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../assets/project/projectBG.png");
    background-size: cover;
    background-position: center;
    filter: brightness(0.55) contrast(1);
    z-index: 0;
}

.page-title .container {
    position: relative;
    z-index: 1;
}

.page-title h1,
.page-title p {
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Projects hero */
.projects-hero {
    padding: 18px 0 6px;
    margin-bottom: 12px;
}

/* Solution hero inside projects section */
.hero-solution {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: center;
    margin-top: 18px;
    padding: 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(11, 44, 72, 0.03), rgba(11, 44, 72, 0.01));
}

.hero-text h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.hero-text p {
    color: var(--dark);
    margin-bottom: 12px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-list li {
    background: #fff;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(11, 44, 72, 0.06);
}

.hero-image {
    height: 180px;
    border-radius: 8px;
    background-image: url("../assets/project/projectH.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 18px rgba(11, 44, 72, 0.08);
}

.projects-hero .projects-label {
    display: inline-block;
    background: #eeeeee;
    color: #222;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.projects-hero h2 {
    font-size: 34px;
    color: #0b2c48;
    margin: 12px 0 6px;
    font-family: 'Poppins', sans-serif;
}

.projects-hero .muted {
    color: var(--light);
    margin-bottom: 6px;
}

/* Category bar */
.category-bar {
    display: flex;
    gap: 10px;
    margin: 18px 0 24px;
    flex-wrap: wrap
}

.category-btn {
    background: transparent;
    border: 1px solid rgba(11, 44, 72, 0.12);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.category-btn.active {
    background: var(--primary);
    color: #fff
}

/* Project card */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    min-height: 160px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-decoration: none;
    color: inherit
}


.project-overlay::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 30%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.project-meta {
    position: relative;
    padding: 18px;
    color: #fff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}


.project-category {
    font-size: 11px;
    opacity: 0.98;
    margin-bottom: 6px;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    background: #04212ba3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.project-meta h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 992px) {
    .projects-hero h2 {
        font-size: 28px
    }

    .project-card {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 1200px) {
    .hero-solution {
        grid-template-columns: 1fr 260px;
    }
}

@media (max-width: 768px) {
    .page-title {
        padding: 48px 0;
    }

    .hero-solution {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px;
    }

    .hero-image {
        height: 140px;
    }

    .hero-list {
        gap: 8px;
    }

    .project-meta {
        padding: 14px;
    }

    .project-meta h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .projects-hero .projects-label {
        font-size: 11px;
        padding: 5px 10px;
    }

    .project-category {
        padding: 5px 8px;
        font-size: 10px;
    }

    .project-meta h3 {
        font-size: 14px;
    }

    .projects-grid {
        gap: 16px;
    }
}

/* Hidden helper for filtering */
.hidden {
    display: none !important;
}



.site-copy {
    text-align: center;
    padding: 20px 0;
    color: #999
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
    }

    .nav a {
        margin: 10px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}