/* --- CONTAINER & LAYOUT --- */
.projects-container {
    padding: 40px 5vw;
    margin-top: 40px;
}

.section-title {
    font-size: 3rem;
    color: var(--highlight-gold);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 900;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- THE PROJECT BUBBLE (CARD) --- */
.project-card {
    background: #1e1e1e; /* Matches your sidebar grey */
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-color: var(--accent-pink);
}

.card-header {
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
}

.platform-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--highlight-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 8px;
}

.status-text {
    font-size: 0.85rem;
    color: var(--accent-pink);
    font-weight: 500;
}

.short-desc {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-footer {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-tag {
    background: rgba(216, 115, 127, 0.15);
    color: var(--accent-pink);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- MODAL POPUP WINDOW --- */
.project-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #121212;
    width: 100%;
    max-width: 1000px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.close-btn:hover {
    color: var(--accent-pink);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.modal-grid img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--accent-pink);
}

.modal-text h4 {
    color: var(--highlight-gold);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.modal-text p {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 30px;
}

.modal-btns {
    display: flex;
    gap: 15px;
}

/* Reusing your project button style */
.projects-btn {
    padding: 12px 25px;
    background: rgba(214, 109, 117, 0.1); 
    border: 1px solid var(--accent-pink);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
}

.projects-btn:hover {
    background: var(--accent-pink);
    box-shadow: 0px 0px 15px var(--accent-pink);
}

/* Mobile Responsive */
@media (max-width: 800px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

