@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;700;900&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --card-bg: #16161a;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --border-soft: rgba(255, 255, 255, 0.1);

    /* Category Colors */
    --color-tech: #0078d4;
    --color-ai: #a100ff;
    --color-money: #107c10;
    --color-society: #d83b01;
    --color-science: #00d2ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Public Sans', sans-serif;
    min-height: 100vh;
    padding: 2rem;
    line-height: 1.6;
}

header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

.logo {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--color-ai), var(--color-science));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 300;
}

/* The "Secret" Multi-Column Layout */
.msn-container {
    column-count: 4;
    column-gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    display: inline-block;
    /* Essential for multi-column */
    width: 100%;
    margin-bottom: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.5s ease;
    display: block;
}

.card:hover img {
    opacity: 1;
    transform: scale(1.02);
}

.category-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
}

/* Category Specific Styles */
.card.tech {
    border-top: 5px solid var(--color-tech);
}

.card.tech .category-tag {
    color: var(--color-tech);
    background: rgba(0, 120, 212, 0.1);
}

.card.ai {
    border-top: 5px solid var(--color-ai);
}

.card.ai .category-tag {
    color: var(--color-ai);
    background: rgba(161, 0, 255, 0.1);
}

.card.money {
    border-top: 5px solid var(--color-money);
}

.card.money .category-tag {
    color: var(--color-money);
    background: rgba(16, 124, 16, 0.1);
}

.card.society {
    border-top: 5px solid var(--color-society);
}

.card.society .category-tag {
    color: var(--color-society);
    background: rgba(216, 59, 1, 0.1);
}

.card.science {
    border-top: 5px solid var(--color-science);
}

.card.science .category-tag {
    color: var(--color-science);
    background: rgba(0, 210, 255, 0.1);
}

/* Decorative Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(100px);
    opacity: 0.05;
}

.blob-1 {
    top: -200px;
    left: -200px;
    background: var(--color-ai);
}

.blob-2 {
    bottom: -200px;
    right: -200px;
    background: var(--color-science);
}

/* Responsive */
@media (max-width: 1200px) {
    .msn-container {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .msn-container {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .msn-container {
        column-count: 1;
    }

    .logo {
        font-size: 2.5rem;
    }

    body {
        padding: 1rem;
    }
}