/* PROJECTS */
.projects {
    padding: 120px 6vw 140px;
    max-width: 1300px;
    margin: 0 auto;
}

.projects-title {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.95;
    margin-bottom: 56px;
}

.projects-title span {
    color: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* card */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #14141A;
    border: 1px solid #26262E;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 0 32px rgba(255, 90, 31, 0.25);
}

/* screenshot area (shows a big number until your image is added) */
.project-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 90, 31, 0.22), transparent 60%),
        #101015;
}

.project-num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 9vw, 7rem);
    color: rgba(255, 255, 255, 0.07);
}

.project-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
    transform: scale(1.05);
}

/* text */
.project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 28px;
}

.project-name {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.project-full {
    margin-top: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-desc {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.97rem;
}

.project-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.project-tags li {
    padding: 5px 12px;
    border: 1px solid #33333D;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text);
}

.project-link {
    margin-top: auto;
    padding-top: 22px;
    color: var(--accent);
    font-weight: 600;
    transition: letter-spacing 0.2s ease;
}

/* the whole card is clickable through this link */
.project-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.project-card:hover .project-link {
    letter-spacing: 0.03em;
}

.project-link:focus-visible {
    outline: none;
}

.project-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    .project-card,
    .project-media img,
    .project-link {
        transition: none;
    }

    .project-card:hover {
        transform: none;
    }

    .project-card:hover .project-media img {
        transform: none;
    }
}
