body {
    background-color: #1e1e1e;
    color: #e6e6e6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 40px 10%;
    line-height: 1.6;
}

a {
    color: #4ea1ff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #82cfff;
}

.center {
    text-align: center;
}

.section-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 32px 0;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
}

.project-table td {
    width: 33.33%;
    padding: 16px;
    vertical-align: top;
    background-color: #2a2a2a;
    border-radius: 10px;
}

.project-table td:hover {
    background-color: #333;
    transition: background-color 0.3s ease;
}

.project-table h3 {
    color: #ffffff;
    margin-top: 8px;
}

.project-table p {
    color: #b0b0b0;
}

.stats-img {
    max-width: 100%;
    height: auto;
    filter: brightness(0.9) contrast(1.2);
}

.connect-links a {
    margin: 0 8px;
}

.connect-links img {
    height: 30px;
}

.quote {
    font-style: italic;
    color: #9ca3af;
    margin-top: 24px;
}

h1, h2 {
    color: #ffffff;
}

a img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px rgba(78, 161, 255, 0.5));
    transition: 0.2s;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Subtle note under GIF */
.subtle-note {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Cards + grid (replaces table) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: background 0.25s ease;
}

.card:hover {
    background: #333;
}

.card h3 {
    margin: 10px 0 6px;
    color: #fff;
}

.card p {
    color: #b0b0b0;
    margin: 0;
}

.card img {
    width: 80px;
    height: 80px;
}

/* Responsive layout */
@media (max-width: 1000px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    body {
        padding: 28px 6%;
    }
    .project-table td {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body {
        padding: 20px 5%;
    }
    h1 {
        font-size: 1.6rem;
    }
    h2 {
        font-size: 1.2rem;
    }
}
