:root {
    --bg: #0d1017;
    --sidebar-bg: #090b10;
    --card-bg: #11141d;
    --border: #1c1f2a;
    --text: #b4b9c6;
    --text-muted: #646a7a;
    --accent: #6db392;
    --accent-dim: #4d8368;
    --tag-bg: #151821;
    --tag-text: #7d8799;
    --hover-bg: #151823;
    --green-hover: #8dd4ac;
    --heading: #cdd1db;
}

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

body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', 'Consolas', monospace;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

/* ── Sidebar ── */
.sidebar {
    width: 300px;
    min-width: 300px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
}

/* ── Avatar ── */
.avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-dim);
    transition: border-color 0.2s ease, color 0.2s ease;
    overflow: hidden;
}

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

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.02em;
}

.handle {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: -0.3rem;
    margin-bottom: 0.6rem;
}

.bio {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    border: 1px solid var(--border);
    transition: all 0.15s ease;
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--green-hover);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-item:hover {
    color: var(--green-hover);
}

.contact-icon {
    width: 16px;
    text-align: center;
    color: var(--accent-dim);
    font-size: 0.8rem;
    font-weight: bold;
}

/* ── Status Dropdown ── */
.status-dropdown {
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--card-bg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.status-dropdown:hover {
    border-color: var(--accent-dim);
}

.status-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--border);
}

.status-dropdown-title {
    font-size: 0.8rem;
    color: var(--heading);
    font-weight: 600;
}

.status-dropdown-chevron {
    font-size: 0.55rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.status-dropdown.open .status-dropdown-chevron {
    transform: rotate(180deg);
}

.status-dropdown-body {
    padding: 0.45rem 0.65rem;
    display: none;
    flex-direction: column;
    gap: 0.15rem;
}

.status-dropdown.open .status-dropdown-body {
    display: flex;
}

.status-dropdown.open .status-dropdown-header {
    border-bottom: 1px solid var(--border);
}

.status-dropdown:not(.open) .status-dropdown-header {
    border-bottom: none;
}

.status-line {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.status-year {
    color: var(--accent-dim);
    font-size: 0.68rem;
}

/* ── Main Area ── */
.main {
    margin-left: 300px;
    flex: 1;
    padding: 2.5rem 3rem;
    min-height: 100vh;
}

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.tab {
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    transition: all 0.15s ease;
    background: none;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.tab:hover {
    color: var(--green-hover);
}

.tab.active {
    color: var(--accent);
    border-color: var(--border);
    background: var(--card-bg);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── Blog Cards ── */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.3rem 1.5rem;
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: default;
}

.blog-card:hover {
    border-color: var(--accent-dim);
    background: var(--hover-bg);
}

.blog-title {
    font-size: 1.05rem;
    color: var(--heading);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.blog-date {
    font-size: 0.7rem;
    color: var(--accent-dim);
    margin-bottom: 0.6rem;
}

.blog-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Project Cards ── */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
    transition: border-color 0.15s ease, background 0.15s ease;
    cursor: default;
}

.project-card:hover {
    border-color: var(--accent-dim);
    background: var(--hover-bg);
}

.project-title {
    font-size: 1.05rem;
    color: var(--heading);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.project-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.project-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.lang-tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    border: 1px solid var(--border);
    transition: all 0.15s ease;
}

.lang-tag:hover {
    border-color: var(--accent);
    color: var(--green-hover);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dim);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
        min-width: 240px;
        padding: 1.8rem 1.2rem;
    }
    .main {
        margin-left: 240px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 600px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        position: relative;
        width: 100%;
        min-width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .main {
        margin-left: 0;
        padding: 1.5rem;
    }
}
