#projects {
    padding-top: 4.5rem;
}

.project-card {
    position: relative;
    border-radius: var(--card-radius);
    min-height: 255px;
    overflow: hidden;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
    isolation: isolate;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.2));
    z-index: -1;
}

.project-card-1 {
    background-image: url("https://images.unsplash.com/photo-1558655146-9f40138edfeb?auto=format&fit=crop&w=1200&q=80");
}

.project-card-2 {
    background-image: url("https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&w=1200&q=80");
}

.project-card-3 {
    background-image: url("https://images.unsplash.com/photo-1550684376-efcbd6e3f031?auto=format&fit=crop&w=1200&q=80");
}

.project-card-4 {
    background-image: url("https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&w=1200&q=80");
}

.project-tags {
    display: flex;
    gap: 1rem;
}

.project-tag {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #1f2937;
    padding: 0.34rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: fit-content;
}

.project-links {
    position: absolute;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    right: 1.25rem;
    bottom: 1.25rem;
}

.icon-link {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.icon-link svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.icon-link img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.icon-link:hover {
    transform: translateY(-1px);
    background: #ffffff;
}

.icon-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.project-content {
    color: #fff;
}

.project-content h3 {
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 1.35rem;
}

.project-content p {
    margin-bottom: 0;
    max-width: 32ch;
}