/* =================================================================*********
   New Project Card Styles - Polished
   ================================================================********** */

/* Grid Container */
#portfolio,
.project-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Responsive grid */
    gap: 30px;
    width: 100%;
}

/* Grid Item Wrapper */
.mix {
    display: inline-block;
    /* Required for MixItUp but overwritten by grid context typically, keeping safe */
    width: 100%;
}

.project-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    /* Subtle shadow per screenshot */
    padding: 40px;
    /* Generous padding per screenshot */
    margin-bottom: 0;
    /* Margin handled by grid gap */
    height: 100%;
    text-align: left;
    border: 1px solid transparent;
    /* Screenshot has no visible border */
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    /* "Do not shrink anything" */
}

/* Card Title */
.project-card h3 {
    font-size: 28px;
    /* Larger title */
    font-weight: 700;
    margin-bottom: 25px;
    color: #212529;
    line-height: 1.3;
}

/* Description Text */
.project-card .description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* List Items (Features) */
.project-card .features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.project-card .features li {
    position: relative;
    padding-left: 25px;
    /* Space for bullet */
    margin-bottom: 15px;
    /* Spaced out items */
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

/* Custom Blue Bullet */
.project-card .features li:before {
    content: "•";
    color: #00b4d9;
    font-size: 24px;
    /* Larger bullet */
    line-height: 18px;
    /* Vertical align adjustment */
    position: absolute;
    left: 0;
    top: 2px;
}

/* Tech Stack Container */
.project-card .tech-stack {
    margin-bottom: 30px;
}

/* Tech Tags */
.project-card .tech-tag {
    display: inline-block;
    background: #f8f9fa;
    /* Very light grey background */
    color: #212529;
    /* Dark text */
    padding: 8px 16px;
    /* Pill padding */
    border-radius: 4px;
    /* Rounded corners */
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Links Container */
.project-card .links {
    margin-top: auto;
    /* Push to bottom if content is short */
}

/* Links */
.project-card .links a {
    font-size: 15px;
    font-weight: 700;
    color: #00b4d9;
    margin-right: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.project-card .links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.project-card .links i {
    margin-right: 8px;
    font-size: 18px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    #portfolio,
    .project-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 30px;
    }
}