.hero-bg {
    background-image: url('../assets/projects-hero.png');
}

.hero-bottom {
    margin-top: 0;
    margin-bottom: var(--space-section);
}

.hero-bottom h1 {
    font-family: var(--playfair-display);
    font-size: var(--fs-xxl);
    color: var(--primary-color);
    text-align: center;
    margin-top: var(--space-md);
}

.hero-bottom .top {
    display: grid;
    grid-template-columns: minmax(320px, 1.02fr) minmax(320px, 1fr);
    gap: clamp(1.5rem, 2.6vw, 3rem);
    align-items: stretch;
    /* margin-top: var(--space-lg); */
}

.featured-image {
    position: relative;
    width: 100%;
    height: clamp(460px, 48vw, 640px);
    align-self: start;
    border-radius: var(--space-sm);
    overflow: hidden;
    background-color: #c9c9c9;
}

.featured-image::before {
    content: "Featured";
    position: absolute;
    top: clamp(0.75rem, 1.2vw, 1.25rem);
    left: clamp(0.75rem, 1.2vw, 1.25rem);
    z-index: 2;
    padding: 0.4rem 1.05rem;
    border-radius: 999px;
    border: 1px solid var(--gold);
    background-color: color-mix(in srgb, var(--secondary-color) 92%, transparent);
    color: var(--gold);
    font-family: var(--urbanist);
    font-size: var(--fs-xs);
    line-height: 1;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* object-position: 50% 50%; */
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.9rem, 1.4vw, 1.3rem);
    color: var(--primary-color);
}

.featured-content p:first-child {
    font-family: var(--urbanist);
    font-size: var(--fs-xs);
    color: color-mix(in srgb, var(--primary-color) 72%, white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.featured-content h3 {
    font-family: var(--urbanist);
    font-size: var(--fs-xl);
    line-height: 1.06;
    font-weight: 500;
    color: var(--primary-color);
}

.featured-content p {
    font-family: var(--urbanist);
    font-size: var(--fs-base);
    line-height: 1.45;
    color: var(--primary-color);
}

.featured-content .link-button {
    width: fit-content;
    margin-top: var(--space-xs);
    padding: 0;
    border-radius: 0;
    background: none;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    font-family: var(--urbanist);
    font-size: var(--fs-base);
    color: var(--primary-color);
}

.featured-content .link-button:hover {
    background: none;
    color: var(--gold);
    box-shadow: none;
    padding: 0;
}

.filter-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: var(--space-section);
}

.filter-chip {
    background-color: #d7d7d766;
    padding: var(--space-xs) var(--space-lg);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.filter-chip p {
    font-family: var(--urbanist);
    font-size: var(--fs-xs);
    color: #00306066;
}

.filter-chip.is-active {
    background-color: var(--primary-color);
}

.filter-chip.is-active p {
    color: var(--secondary-color);
}


.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-section) var(--space-xs);
    margin-bottom: calc(var(--space-section) * 2);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.project-card.is-clickable {
    cursor: pointer;
}

.project-card.is-hidden {
    display: none;
}



.project-card .project-image {
    width: 100%;
    max-width: 350px;
    height: clamp(240px, 24vw, 320px);
    overflow: hidden;
    border-radius: var(--space-xs);
}

.project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-description {
    max-width: 100%;
    padding: var(--space-xs);
    background-color: white;
    border-radius: var(--space-xs);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.project-description .project-image {
    margin-left: auto;
    margin-right: auto;
}

.project-description .project-image img {
    object-position: center;
}

.project-description .icons {
    display: flex;
    align-items: center;
    gap: 5px;

    
}

.project-description .icons span {
    font-family: 'JetBrains Mono', monospace;
    font-size: calc(var(--fs-xs) - 4px);
    color: var(--primary-color);
    margin-right: var(--space-sm);
}

.project-description h2 {
    font-family: var(--urbanist);
    font-size: var(--fs-base);
    color: var(--primary-color);
}

.project-description h2 a {
    text-decoration: none;
}

.project-description p {
    font-family: var(--urbanist);
    font-size: var(--fs-base);
    color: var(--primary-color);
}

.project-description .small {
    font-size: var(--fs-xs);
}

.project-description a {
    font-family: var(--urbanist);
    font-size: var(--fs-sm);
    color: var(--primary-color);
}



@media (max-width: 1024px) {

    
    .hero-bottom .top {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .featured-image {
        height: clamp(300px, 55vw, 500px);
    }

    .featured-content {
        gap: var(--space-sm);
    }

    .featured-content h2 {
        font-size: var(--fs-xl);
    }

    .featured-content p {
        font-size: var(--fs-base);
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    .project-card .image {
        max-width: 100%;
    }

    
    .project-card .project-image {
        max-width: 100%;
        height: clamp(220px, 34vw, 320px);
    }
}

@media (max-width: 768px) {
    .featured-image {
        height: clamp(240px, 62vw, 360px);
    }

    .project-card .project-image {
        height: 280px;
    }

    .filter-row {
        flex-wrap: wrap;
        gap: var(--space-xs);
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .project-description h2 {
        font-size: var(--fs-lg);
    }

    .project-description .icons {
        flex-wrap: wrap;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card .project-image,
    .project-description {
        max-width: 100%;
    }
}