/* PROJECTS — Projects grid, project cards and technology tags. */

.project-card.hidden {
    display: none;
}

.projects {
    background: #f8f8f8;
    position: relative;
}

/* Only ::after carries the accent — ::before stays the shared section divider.
   Overriding ::before here inherited its 200x1px box and dashed background,
   which rendered as a stray diagonal line instead of a pentagon. */
.projects::after {
    content: '⬟';
    position: absolute;
    bottom: 10%;
    right: 5%;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.07);
    transform: rotate(-45deg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 3px solid #000000;
    position: relative;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.08);
    animation: none;
}

.project-img {
    display: block;
    width: 100%;
    /* height:auto is required: the img tags carry width/height attributes,
       and that presentational hint outranks aspect-ratio without it. */
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    background: #000000;
}

.project-content {
    padding: 2.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.project-desc {
    color: #666666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: #f8f8f8;
    color: #000000;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 1px dotted rgba(0, 0, 0, 0.2);
}

/* Kept ready for demo / source links on the project cards -- no project
currently has one, so the markup for these is not in index.html yet. */
.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #000000;
    color: white;
}

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