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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

.container {
    position: relative;
    min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
    position: fixed;
    left: calc(50% - 560px);
    top: 0;
    width: 200px;
    height: 100vh;
    background-color: #fafafa;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
}

.avatar {
    margin-bottom: 40px;
}

.avatar img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: block;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #666;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: #e8e8e8;
}

.nav-item.active {
    background-color: #e0e0e0;
    color: #333;
    font-weight: 500;
}

.nav-item:nth-child(4)::after {
    content: "";
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-item:nth-child(4):hover::after {
    content: " RSS";
    opacity: 1;
}



/* Main Content */
.main-content {
    width: 720px;
    margin: 0 auto;
    padding: 40px 60px;
    background-color: white;
}

.projects {
    margin-bottom: 60px;
}

.projects h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.project-item {
    font-size: 16px;
    line-height: 1.5;
}

.project-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.project-item a:hover {
    text-decoration: underline;
}

.essays h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.essay-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.essay-item {
    display: block;
    color: #2563eb;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    padding: 4px 0;
    transition: color 0.2s;
}

.essay-item:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        left: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }
    
    .avatar {
        margin-bottom: 0;
    }
    
    .avatar img {
        width: 30px;
        height: 30px;
    }
    
    .nav-menu {
        flex-direction: row;
        margin-bottom: 0;
    }
    
    .main-content {
        width: 100%;
        padding: 30px 20px;
    }
}
