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

:root {
    --bg: #0d1117;
    --card-bg: #161b22;
    --border: #30363d;
    --text: #c9d1d9;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --green: #3fb950;
    --purple: #a371f7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navigation */
.main-nav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* Main Content */
main {
    padding: 40px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.2s, border-color 0.2s;
}

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

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.btn:hover {
    color: var(--accent-hover);
}

/* For Newbies */
.for-newbies {
    margin-top: 50px;
}

.for-newbies h2 {
    margin-bottom: 20px;
}

.for-newbies ul {
    list-style: none;
}

.for-newbies li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.for-newbies li:last-child {
    border-bottom: none;
}

.for-newbies strong {
    color: var(--accent);
}

/* Project Table */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.projects-table th,
.projects-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.projects-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.projects-table tr:hover {
    background: var(--card-bg);
}

.floor {
    color: var(--green);
}

.collection-name {
    font-weight: 600;
}

/* History Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-year {
    color: var(--purple);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Lore */
.lore-entry {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.lore-entry h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

.lore-entry .project-tag {
    display: inline-block;
    background: var(--purple);
    color: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 600px) {
    .main-nav .container {
        gap: 15px;
        overflow-x: auto;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .categories {
        grid-template-columns: 1fr;
    }
}
