/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --bg3: #18181f;
    --accent: #c8ff00;
    --accent2: #00ffcc;
    --text: #f0f0e8;
    --text-muted: #888880;
    --text-dim: #3a3a40;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(200,255,0,0.3);
    --card-bg: #13131a;
    --card-hover: #1c1c26;
    --sidebar-w: 280px;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* ===== NOISE TEXTURE ===== */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    border-right: 1px solid var(--border);
    z-index: 10;
    display: flex;
    align-items: flex-start;
    overflow-y: auto;
}

.sidebar-inner {
    padding: 48px 32px;
    width: 100%;
}

/* ===== AVATAR ===== */
.avatar-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.avatar-ring::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(200,255,0,0.25);
}

.avatar-letters {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    color: #0a0a0f;
    letter-spacing: -0.5px;
}

/* ===== NAME & ROLE ===== */
.name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 8px;
}

.role {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}

/* ===== YEAR NAV ===== */
.year-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.year-btn {
    display: block;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.year-btn:hover {
    color: var(--text);
    background: var(--bg3);
    border-color: var(--border);
}

.year-btn.active {
    color: var(--accent);
    background: rgba(200, 255, 0, 0.07);
    border-color: rgba(200, 255, 0, 0.2);
}

/* ===== STATS ===== */
.stats {
    display: flex;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -1.5px;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===== MAIN CONTENT ===== */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 64px 56px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== SECTION HEADER ===== */
.year-section {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    position: relative;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.year-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--bg);
    background: var(--accent);
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--text);
    flex-shrink: 0;
}

/* ===== TASK GRID ===== */
.task-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

/* ===== CARD ===== */
.card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    animation: fadeUp 0.4s both ease-out;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

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

.card:hover::before {
    transform: scaleY(1);
}

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

.card.featured {
    border-color: rgba(200,255,0,0.25);
    background: rgba(200,255,0,0.04);
}

.card.featured::before {
    background: var(--accent2);
}

.card.featured .card-num {
    color: var(--accent);
}

.card-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    min-width: 32px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.card-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    flex: 1;
    letter-spacing: -0.2px;
}

.card-arrow {
    font-size: 14px;
    color: var(--text-dim);
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--bg3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    :root {
        --sidebar-w: 0px;
    }

    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        padding: 40px 24px;
    }

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

@media (max-width: 600px) {
    .main {
        padding: 32px 16px;
    }

    .section-title {
        font-size: 18px;
    }
}
