/* Basic body styling */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

/* Flexbox container for the cards */
.project-grid {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap to the next line on small screens */
    gap: 20px; /* Space between cards */
    justify-content: center;
}

/* Styling for each individual card */
.project-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 300px;
    min-height: 400px; /* Ensures consistent height for all cards */
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border-left: 5px solid transparent; /* Start with a transparent border */
    transition: transform 0.2s, box-shadow 0.2s, border-left 0.2s;
    display: flex;
    flex-direction: column; /* Arrange items vertically */
}

.project-card:hover {
    transform: translateY(-5px); /* The lift effect you already have */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* A more prominent shadow */
    border-left: 5px solid #007bff; /* An accent color border */
}

.project-card img {
    max-width: 100%; /* Keeps the image responsive */
    height: 170px; /* A fixed height for all images */
    object-fit: cover; /* The magic property! */
    border-radius: 4px;
}

/* Styling for the optional status badge */
.status-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.development {
    background-color: #ffc107; /* Amber color */
    color: #333;
}

/* Styling for the prototype status badge */
.status-badge.prototype {
    background-color: #007bff; /* A clear blue color */
    color: white;
}

.site-header, .site-footer {
    text-align: center;
    padding: 20px;
    background-color: #333; /* Dark background */
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-text {
    flex: 1;
    text-align: left;
}

.header-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.site-header {
    margin-bottom: 40px;
}

.site-footer {
    margin-top: 40px;
}

.site-footer a {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.site-footer a:hover {
    color: #ccc;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    color: #333;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-content hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.project-card.placeholder {
    background-color: #e9ecef; /* A light grey background */
    cursor: not-allowed; /* A "not allowed" mouse cursor on hover */
    color: #6c757d; /* A muted text color */
}

.project-card.placeholder:hover {
    transform: none; /* Disable the hover effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* The default shadow */
    border-left: 5px solid transparent;
}

.project-card .status-badge {
    margin-top: auto; /* The magic property! */
}

.project-card h2 a {
    color: inherit;
    text-decoration: none;
}

.project-card h2 a:hover {
    color: #007bff;
}

.project-card p {
    flex: 1;
}

.inline-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.inline-link:hover {
    text-decoration: underline;
}

