:root {
    --bg-color: #0f0f12;
    --card-bg: #18181b;
    --text-main: #e4e4e7;
    --text-muted: #a1a1aa;
    --accent: #8b5cf6; /* Фиолетовый оттенок */
    --accent-glow: rgba(139, 92, 246, 0.3);
    --border: #27272a;
    
    /* Цвета для тегов */
    --tag-kotlin: #7F52FF;
    --tag-java: #E76F00;
    --tag-cpp: #00599C;
    --tag-lua: #000080;
    --tag-rust: #DEA584;
    --tag-js: #F7DF1E;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.highlight {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
}

/* Buttons */
.socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    text-decoration: none;
    color: var(--text-main);
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: var(--card-bg);
}

.btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Main Content */
.category {
    margin-bottom: 60px;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

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

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s ease, border-color 0.2s;
    
    /* Делаем карточку флекс-контейнером, чтобы прижать ссылку к низу */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card-content {
    margin-bottom: 20px; /* Отступ от текста до ссылки */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

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

/* Repository Link */
.repo-link {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-top: auto; /* Прижимает к низу */
}

.repo-link:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

/* Tags Updated */
.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: #333;
    color: #fff; /* Для темных тегов */
    font-weight: 600;
    white-space: nowrap; /* Чтобы тег не ломался */
}
/* Цвета для тегов */
.tag.kotlin { background: var(--tag-kotlin); }
.tag.java { background: var(--tag-java); }
.tag.cpp { background: var(--tag-cpp); }
.tag.lua { background: var(--tag-lua); }
.tag.rust { background: var(--tag-rust); color: #000; /* Rust светлый, текст темный */ }
.tag.js { background: var(--tag-js); color: #000; }

/* WIP Section Specifics */
.wip-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.wip-card {
    border-style: dashed;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .hero { padding: 60px 0 40px; }
}