﻿.project-card-grid-container {
    align-self: center;
    display: grid;
    grid-template-columns: 4px auto 4px;
    grid-template-rows: 4px auto 4px;
    justify-items: center;
    align-items: center;
    transform: scale(0.9); /* smaller card at rest */
    transition: transform 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding: 0.5rem;
    background-color: #0f0f0f;
    box-shadow: none;
    width: 95%;
}

    .project-card-grid-container:hover {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(255, 255, 255, 0.08);
        padding: 1.5rem;
        z-index: 5;
    }

.project-image {
    width: 80%;
    height: 80%;
    margin: 1rem;
    border: 1px solid white;
}

/* Glowing corners */
.project-corner {
    width: 4px;
    height: 4px;
    box-sizing: border-box;
    background-color: transparent;
    transition: box-shadow 0.3s ease;
}


/* === Corners layout === */
.project-corner-one {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    border-right: solid white 1px;
    border-bottom: solid white 1px;
}

.project-corner-two {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    border-bottom: solid white 1px;
    width: 100%;
}

.project-corner-three {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    border-left: solid white 1px;
    border-bottom: solid white 1px;
}

.project-corner-four {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    border-right: solid white 1px;
    height: 100%;
}

.project-corner-five {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    border-left: solid white 1px;
    height: 100%;
}

.project-corner-six {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    border-right: solid white 1px;
    border-top: solid white 1px;
}

.project-corner-seven {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    border-top: solid white 1px;
    width: 100%;
}

.project-corner-eight {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    border-left: solid white 1px;
    border-top: solid white 1px;
}

/* === Mobile-friendly fallback === */
@media (hover: none) and (pointer: coarse) {
    .project-card-grid-container {
        transform: none !important;
    }

    .project-card-content {
        transform: none !important;
        opacity: 1 !important;
    }
}
