/* ---------- Project Highlights ---------- */

.project-highlights {
    padding: 36px 48px 48px;

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


/* ---------- Section Heading ---------- */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;

    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.view-all {
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;

    transition: 0.2s ease;
}

.view-all:hover {
    color: var(--text);
}


/* ---------- Highlight Grid ---------- */

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


/* ---------- Project Card ---------- */

.project-card {
    overflow: hidden;

    border: 1px solid var(--border);
    background-color: var(--surface);

    color: var(--text);
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}


/* ---------- Project Card Media ---------- */

.project-card-media {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background-color: var(--surface);
}

.project-card-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}


/* ---------- Static Image ---------- */

.project-card-media .project-image {
    position: absolute;
    inset: 0;

    z-index: 2;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 1;

    transition: opacity 0.25s ease;
}


/* ---------- Hover GIF ---------- */

.project-card-media .project-gif {
    position: absolute;
    inset: 0;

    z-index: 1;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Show GIF when hovering card */

.project-card:hover .project-image {
    opacity: 0;
}


/* ---------- Project Card Info ---------- */

.project-card-info {
    padding: 14px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.project-card-info span:last-child {
    color: var(--accent);
    font-size: 18px;

    transition: transform 0.2s ease;
}


/* ---------- Card Arrow Hover ---------- */

.project-card:hover .project-card-info span:last-child {
    transform: translateX(4px);
}