/* Projects Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    cursor: pointer;
}

.projects-grid article {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.projects-grid article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projects-grid article .project-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    color: #000;
    background: rgba(255, 255, 0, 0.8);
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.projects-grid article:hover img {
    transform: scale(0.9);
}

.projects-grid article:hover .project-info {
    opacity: 1;
    transform: scale(1);
}

/* Optional hover depth */
.projects-grid article:hover {
    transform: translate(-6px, -6px);
    box-shadow: 12px 12px 0 #000;
}

/* Tweak typography inside overlay */
.project-info h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-family: "Asimovian", sans-serif;
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.project-info a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid #000;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.project-info a:hover {
    color: #555;
    border-color: #555;
}
