.projects-section {
    background: radial-gradient(circle at top, #020617 0, #020617 35%, #00101b 70%, #000000 100%);
    color: #e5e7eb;
}

.projects-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.4rem;
}

.projects-heading {
    font-size: 1.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0;
}

/* Inverted button: gradient by default, plain on hover */
.projects-github-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0b1120;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.55);
    transition:
        background-color 0.18s ease-out,
        color 0.18s ease-out,
        box-shadow 0.18s ease-out,
        transform 0.15s ease-out,
        border-color 0.18s ease-out;
}

.projects-github-button:hover {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.7);
    box-shadow: 0 0 12px rgba(15, 23, 42, 0.8);
    transform: translateY(-1px);
}

/* 3x2 grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem 2rem;
}

.project-card {
    padding: 1.8rem 1.6rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.9),
        0 0 30px rgba(56, 189, 248, 0.12);
    backdrop-filter: blur(14px);
    height: 100%;
}

/* Image / GIF container */
.project-media {
    margin-bottom: 0.9rem;
    border-radius: 14px;
    overflow: hidden;
}

.project-media img {
    display: block;
    width: 100%;
    height: auto;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.project-summary {
    font-size: 0.95rem;
    color: #cbd5f5;
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.project-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.project-tags li {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
}

/* Responsive tweaks */

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .projects-heading {
        font-size: 1.6rem;
        letter-spacing: 0.2em;
    }

    .projects-github-button {
        width: 100%;
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
